public class CanBeSiteMasterTopology extends TopologyUUID
TopologyUUID which adds a boolean as payload. The boolean indicates whether the
current address can ever become a site master, or not.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
can_become_site_master |
machine_id, rack_id, site_idcache, leastSigBits, mostSigBits, numberGenerator, print_function, print_uuids, SIZE| Modifier | Constructor and Description |
|---|---|
|
CanBeSiteMasterTopology() |
protected |
CanBeSiteMasterTopology(TopologyUUID uuid,
boolean can_become_site_master) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBecomeSiteMaster() |
void |
readExternal(ObjectInput in) |
void |
readFrom(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
|
String |
toString() |
void |
writeExternal(ObjectOutput out) |
void |
writeTo(DataOutput out)
Write the entire state of the current object (including superclasses) to outstream.
|
generateRandomBytes, getMachineId, getRackId, getSiteId, isSameMachine, isSameRack, isSameSite, printDetails, randomUUID, randomUUID, setMachineId, setRackId, setSiteId, toStringDetailedadd, add, compareTo, copy, digits, equals, get, getContents, getLeastSignificantBits, getMostSignificantBits, hashCode, printCache, randomUUID, remove, removeAll, retainAll, toStringLongpublic CanBeSiteMasterTopology()
protected CanBeSiteMasterTopology(TopologyUUID uuid, boolean can_become_site_master)
public boolean canBecomeSiteMaster()
public int size()
Addresssize in interface Addresssize in class TopologyUUIDpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class TopologyUUIDIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class TopologyUUIDIOExceptionpublic void writeTo(DataOutput out) throws Exception
StreamablewriteTo in interface StreamablewriteTo in class TopologyUUIDExceptionpublic void readFrom(DataInput in) throws Exception
StreamablereadFrom in interface StreamablereadFrom in class TopologyUUIDExceptionpublic String toString()
toString in class TopologyUUIDCopyright © 2016 JBoss, a division of Red Hat. All rights reserved.