Class NodeID
java.lang.Object
org.jivesoftware.openfire.cluster.NodeID
- All Implemented Interfaces:
Externalizable
,Serializable
Class which wraps the byte[] we use to identify cluster members. The main reason
for this class is that byte[] cannot be directly compared so having a collection
of byte[] is not possible since you cannot remove to equivalent byte[] from the
collection.
- Author:
- Pete Matern, Gaston Dombiak
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
deleteInstance
(byte[] nodeIdBytes) boolean
equals
(byte[] anotherID) boolean
static NodeID
getInstance
(byte[] nodeIdBytes) int
hashCode()
void
byte[]
toString()
void
-
Constructor Details
-
NodeID
public NodeID()
-
-
Method Details
-
getInstance
-
deleteInstance
public static void deleteInstance(byte[] nodeIdBytes) -
equals
public boolean equals(byte[] anotherID) -
equals
-
hashCode
public int hashCode() -
toString
-
toByteArray
public byte[] toByteArray() -
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-