KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > fr > dyade > aaa > agent > HAStateRequest


1 /*
2  * Copyright (C) 2004 - France Telecom R&D
3  * Copyright (C) 2004 - ScalAgent Distributed Technologies
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
18  * USA.
19  *
20  * Initial developer(s): ScalAgent Distributed Technologies
21  * Contributor(s):
22  */

23 package fr.dyade.aaa.agent;
24
25 import java.io.Serializable JavaDoc;
26 import org.jgroups.Address;
27
28 /**
29  * Message used by a slave component to request the server state.
30  */

31 public class HAStateRequest implements Serializable JavaDoc {
32   /**
33    * The requestor address. This address is actually unused as the
34    * reply is broadcasted to all components (to keep order with other
35    * messages).
36    */

37   private Address addr = null;
38
39   public HAStateRequest(Address addr) {
40     this.addr = addr;
41   }
42
43   public Address getAddress() {
44     return addr;
45   }
46
47   public String JavaDoc toString() {
48     StringBuffer JavaDoc buf = new StringBuffer JavaDoc();
49
50     buf.append("(HAStateRequest(").append(super.toString());
51     buf.append(",addr=").append(addr).append("))");
52
53     return buf.toString();
54   }
55 }
56
Popular Tags