|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjgroup.relacs.types.ViewId
public final class ViewId
The ViewId class wraps a value of the relacs daemon
type "group id" in an object. A group id uniquely identifies
groups. An object of type ViewId contains a single
field whose type is long.
| Field Summary | |
|---|---|
static int |
SIZE
Size of this object in bytes (when marshalled) |
| Constructor Summary | |
|---|---|
ViewId(long value)
Creates a ViewId object containing the specified
value. |
|
| Method Summary | |
|---|---|
static long |
create(EndPoint host,
int counter)
Returns a new complete view identifier obtained from the host identifier and a sequence number. |
static long |
createPartial(long cvid,
int counter)
Returns a new partial view identifier obtained by a complete view identifier and an additional sequence number. |
long |
getValue()
Returned the wrapped value. |
static void |
marshal(java.io.ObjectOutput msg,
long value)
Write the specified message id to an outgoing message. |
static long |
unmarshal(java.io.ObjectInput msg)
Unmarshals a view id from an incoming message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SIZE
| Constructor Detail |
|---|
public ViewId(long value)
ViewId object containing the specified
value.
| Method Detail |
|---|
public long getValue()
public static void marshal(java.io.ObjectOutput msg,
long value)
throws java.io.IOException
java.io.IOException
public static long unmarshal(java.io.ObjectInput msg)
throws java.io.IOException
java.io.IOException
public static long create(EndPoint host,
int counter)
host - the host idientifer.counter - sequence number.
public static long createPartial(long cvid,
int counter)
cvid - the complete view identifier.counter - the additional counter.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||