|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.activecluster.ClusterEvent
A cluster event
Field Summary | |
static int |
ADD_NODE
A node has joined the cluster |
static int |
ELECTED_COORDINATOR
this node has been elected Coordinator |
static int |
FAILED_NODE
A node has failed due to a system/network error |
static int |
REMOVE_NODE
A node has left the Cluster |
static int |
UPDATE_NODE
existing node has updated it's state |
Constructor Summary | |
ClusterEvent()
empty constructor |
|
ClusterEvent(Cluster source,
Node node,
int type)
|
Method Summary | |
Cluster |
getCluster()
|
Node |
getNode()
|
int |
getType()
|
void |
readExternal(ObjectInput in)
read from stream |
void |
setCluster(Cluster source)
set the cluster |
String |
toString()
|
void |
writeExternal(ObjectOutput out)
dump on to a stream |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int ADD_NODE
public static final int UPDATE_NODE
public static final int REMOVE_NODE
public static final int FAILED_NODE
public static final int ELECTED_COORDINATOR
Constructor Detail |
public ClusterEvent()
public ClusterEvent(Cluster source, Node node, int type)
source
- node
- type
- Method Detail |
public Cluster getCluster()
public void setCluster(Cluster source)
source
- public Node getNode()
public int getType()
public String toString()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
out
-
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
in
-
IOException
ClassNotFoundException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |