|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.rep.impl.node.NameIdPair
public class NameIdPair
The public name and internal id pair used to uniquely identify a node within a replication group.
Field Summary | |
---|---|
static NameIdPair |
NOCHECK
|
static int |
NOCHECK_NODE_ID
|
static NameIdPair |
NULL
|
static int |
NULL_NODE_ID
|
Constructor Summary | |
---|---|
NameIdPair(String name)
Constructor for a pair where the node ID is as yet unknown. |
|
NameIdPair(String name,
int id)
|
Method Summary | |
---|---|
static NameIdPair |
deserialize(ByteBuffer buffer,
BinaryProtocol protocol)
Serializes from a ByteBuffer for a given protocol. |
static NameIdPair |
deserialize(TupleInput buffer)
Serializes from a TupleInput after retrieving from storage. |
boolean |
equals(Object obj)
|
int |
getId()
Returns the internally generated compact id. |
String |
getName()
Returns the application assigned name |
int |
hashCode()
|
boolean |
hasNullId()
|
void |
revertToNull()
|
void |
serialize(ByteBuffer buffer,
BinaryProtocol protocol)
Serializes into a ByteBuffer for a given protocol. |
void |
serialize(TupleOutput buffer)
Serializes into a TupleOutput before storing. |
int |
serializedSize(BinaryProtocol protocol)
Returns serialized for a given protocol. |
void |
setId(int id)
|
String |
toString()
|
void |
update(NameIdPair other)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int NULL_NODE_ID
public static final int NOCHECK_NODE_ID
public static final NameIdPair NULL
public static final NameIdPair NOCHECK
Constructor Detail |
---|
public NameIdPair(String name, int id)
public NameIdPair(String name)
Method Detail |
---|
public static NameIdPair deserialize(ByteBuffer buffer, BinaryProtocol protocol)
public static NameIdPair deserialize(TupleInput buffer)
public void serialize(ByteBuffer buffer, BinaryProtocol protocol)
public void serialize(TupleOutput buffer)
public int serializedSize(BinaryProtocol protocol)
public String getName()
public String toString()
toString
in class Object
public int getId()
public boolean hasNullId()
public void setId(int id)
public void revertToNull()
public void update(NameIdPair other)
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |