org.jgroups.protocols.relay
Class CanBeSiteMasterTopology
java.lang.Object
org.jgroups.util.UUID
org.jgroups.util.TopologyUUID
org.jgroups.protocols.relay.CanBeSiteMasterTopology
- All Implemented Interfaces:
- java.io.Externalizable, java.io.Serializable, java.lang.Comparable<Address>, Address, Streamable
public class CanBeSiteMasterTopology
- extends TopologyUUID
Subclass of TopologyUUID
which adds a boolean as payload. The boolean indicates whether the
current address can ever become a site master, or not.
- Since:
- 3.2
- Author:
- Bela Ban
- See Also:
- Serialized Form
Method Summary |
boolean |
canBecomeSiteMaster()
|
void |
readExternal(java.io.ObjectInput in)
|
void |
readFrom(java.io.DataInput in)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed |
int |
size()
Returns serialized size of this address |
java.lang.String |
toString()
|
void |
writeExternal(java.io.ObjectOutput out)
|
void |
writeTo(java.io.DataOutput out)
Write the entire state of the current object (including superclasses) to outstream. |
Methods inherited from class org.jgroups.util.TopologyUUID |
generateRandomBytes, getMachineId, getRackId, getSiteId, isSameMachine, isSameRack, isSameSite, printDetails, randomUUID, randomUUID, setMachineId, setRackId, setSiteId, toStringDetailed |
Methods inherited from class org.jgroups.util.UUID |
add, add, compareTo, copy, digits, equals, get, getContents, getLeastSignificantBits, getMostSignificantBits, hashCode, printCache, randomUUID, remove, removeAll, retainAll, toStringLong |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
can_become_site_master
protected boolean can_become_site_master
CanBeSiteMasterTopology
public CanBeSiteMasterTopology()
CanBeSiteMasterTopology
protected CanBeSiteMasterTopology(TopologyUUID uuid,
boolean can_become_site_master)
canBecomeSiteMaster
public boolean canBecomeSiteMaster()
size
public int size()
- Description copied from interface:
Address
- Returns serialized size of this address
- Specified by:
size
in interface Address
- Overrides:
size
in class TopologyUUID
readExternal
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Specified by:
readExternal
in interface java.io.Externalizable
- Overrides:
readExternal
in class TopologyUUID
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
writeExternal
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
- Specified by:
writeExternal
in interface java.io.Externalizable
- Overrides:
writeExternal
in class TopologyUUID
- Throws:
java.io.IOException
writeTo
public void writeTo(java.io.DataOutput out)
throws java.lang.Exception
- Description copied from interface:
Streamable
- Write the entire state of the current object (including superclasses) to outstream.
Note that the output stream must not be closed
- Specified by:
writeTo
in interface Streamable
- Overrides:
writeTo
in class TopologyUUID
- Throws:
java.lang.Exception
readFrom
public void readFrom(java.io.DataInput in)
throws java.lang.Exception
- Description copied from interface:
Streamable
- Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
- Specified by:
readFrom
in interface Streamable
- Overrides:
readFrom
in class TopologyUUID
- Throws:
java.lang.Exception
toString
public java.lang.String toString()
- Overrides:
toString
in class TopologyUUID
Copyright © 1998-2012 Bela Ban / Red Hat. All Rights Reserved.