Class SingletonAddress
java.lang.Object
org.jgroups.util.SingletonAddress
- All Implemented Interfaces:
Externalizable, Serializable, Cloneable, Comparable<Address>, Address, Streamable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleaninthashCode()booleanChecks whether this is an address that represents multiple destinations; e.g., a class D address in the Internet.voidvoidRead the state of the current object (including superclasses) from instream Note that the input stream must not be closedintsize()Returns serialized size of this addresstoString()voidvoidwriteTo(DataOutputStream out) Write the entire state of the current object (including superclasses) to outstream.
-
Field Details
-
cluster_name
-
addr
-
-
Constructor Details
-
SingletonAddress
-
SingletonAddress
public SingletonAddress()
-
-
Method Details
-
getAddress
-
getClusterName
-
isMulticastAddress
public boolean isMulticastAddress()Description copied from interface:AddressChecks whether this is an address that represents multiple destinations; e.g., a class D address in the Internet.- Specified by:
isMulticastAddressin interfaceAddress- Returns:
- true if this is a multicast address, false if it is a unicast address
-
size
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeTo
Description copied from interface:StreamableWrite the entire state of the current object (including superclasses) to outstream. Note that the output stream must not be closed- Specified by:
writeToin interfaceStreamable- Throws:
IOException
-
readFrom
public void readFrom(DataInputStream in) throws IOException, IllegalAccessException, InstantiationException Description copied from interface:StreamableRead the state of the current object (including superclasses) from instream Note that the input stream must not be closed- Specified by:
readFromin interfaceStreamable- Throws:
IOExceptionIllegalAccessExceptionInstantiationException
-
hashCode
-
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<Address>
-
toString
-