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_id
cache, 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, toStringDetailed
add, add, compareTo, copy, digits, equals, get, getContents, getLeastSignificantBits, getMostSignificantBits, hashCode, printCache, randomUUID, remove, removeAll, retainAll, toStringLong
public CanBeSiteMasterTopology()
protected CanBeSiteMasterTopology(TopologyUUID uuid, boolean can_become_site_master)
public boolean canBecomeSiteMaster()
public int size()
Address
size
in interface Address
size
in class TopologyUUID
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class TopologyUUID
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class TopologyUUID
IOException
public void writeTo(DataOutput out) throws Exception
Streamable
writeTo
in interface Streamable
writeTo
in class TopologyUUID
Exception
public void readFrom(DataInput in) throws Exception
Streamable
readFrom
in interface Streamable
readFrom
in class TopologyUUID
Exception
public String toString()
toString
in class TopologyUUID
Copyright © 2014 JBoss, a division of Red Hat. All rights reserved.