public class SingletonAddress extends java.lang.Object implements Address
| Modifier and Type | Field and Description |
|---|---|
protected Address |
addr |
protected byte[] |
cluster_name |
| Constructor and Description |
|---|
SingletonAddress() |
SingletonAddress(byte[] cluster_name,
Address addr) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Address o) |
protected static int |
compareTo(byte[] v1,
byte[] v2) |
boolean |
equals(java.lang.Object obj) |
Address |
getAddress() |
byte[] |
getClusterName() |
protected int |
hash() |
int |
hashCode() |
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.
|
protected final byte[] cluster_name
protected final Address addr
public SingletonAddress(byte[] cluster_name,
Address addr)
public SingletonAddress()
public Address getAddress()
public byte[] getClusterName()
public int size()
Addresspublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void writeTo(java.io.DataOutput out)
throws java.lang.Exception
StreamablewriteTo in interface Streamablejava.lang.Exceptionpublic void readFrom(java.io.DataInput in)
throws java.lang.Exception
StreamablereadFrom in interface Streamablejava.lang.Exceptionpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int compareTo(Address o)
compareTo in interface java.lang.Comparable<Address>public java.lang.String toString()
toString in class java.lang.Objectprotected int hash()
protected static int compareTo(byte[] v1,
byte[] v2)
Copyright © 1998-2020 Red Hat. All Rights Reserved.