|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.neeve.util.UtlListElement
com.neeve.pkt.PktSerializable
com.neeve.pkt.PktBody
com.neeve.pkt.PktSubheader
com.neeve.pkt.PktSubheaderVariable
com.neeve.pkt.PktSubheaderHSpace
public final class PktSubheaderHSpace
The Hierarchical Space packet subheader.
This class is the subheader used to contain control information exchanged between an hspace client and a data server and between communicating data servers.
This packet subheader header is a versioned entity. The subheader version defines the format of the subheader i.e. what fields comprise the subheader and their relative locations when serialized. A crucial aspect of subheader versioning is that a version N subheader will always be a subset of a version M subheader where N < M i.e. all fields in version N of a subheader will be present and in the same position as fields in version M of the subheader. i.e. a subheader never shrinks or moves fields around. With time, the subheader can only grow. See the setter/getter method documentation for information on which subheader version the fields that they affect belong to.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.neeve.pkt.PktSerializable |
---|
PktSerializable.DeserializeContext, PktSerializable.SerializeContext |
Field Summary | |
---|---|
static int |
FLAG_KEYONLY
Specifies to only get the key. |
static int |
FLAG_NO_INITIAL_IMAGE
Specifies not to return an initial image. |
static int |
FLAG_REMOVE
Specifies to remove an object. |
static byte |
OPCODE_GET
Identifies a GET request or reply. |
static byte |
OPCODE_GETCANCEL
Identifies a GETCANCEL request |
static byte |
OPCODE_NONE
Identifies a NULL opcode. |
static byte |
OPCODE_NOTIFY
Identifies a POST change notification. |
static byte |
OPCODE_POST
Identifies a POST request or initial image |
static byte |
OPCODE_POSTCANCEL
Identifies a POSTCANCEL request |
static byte |
OPCODE_PUT
Identifies a PUT request. |
static byte |
OPCODE_REMOVE
Identifies a REMOVE request |
static byte |
SEMANTIC_ASYNC
Denotes the ASYNC semantic |
static byte |
SEMANTIC_NONE
Denotes no semantic |
static byte |
SEMANTIC_NOREPLY
Denotes the NOREPLY semantic |
static byte |
SEMANTIC_PIPELINED
Denotes the PIPELINED semantic |
static byte |
SEMANTIC_SYNC
Denotes the SYNC semantic |
static byte |
TRIGGER_ADD
Denotes the ADD trigger |
static byte |
TRIGGER_NONE
Denotes no trigger |
static byte |
TRIGGER_REMOVE
Denotes the REMOVE trigger |
static byte |
TRIGGER_UPDATE
Denotes the UPDATE trigger |
Fields inherited from class com.neeve.pkt.PktSubheader |
---|
PREAMBLE_LENGTH, PREAMBLE_LENGTH_V1 |
Fields inherited from class com.neeve.util.UtlListElement |
---|
count, head, next, prev |
Method Summary | |
---|---|
static PktBody |
create()
Creates a default HSPACE subheader |
static PktBody |
create(Properties props)
Creates an HSPACE subheader |
int |
doGetSerializedLength()
Implementation of PktBody.doGetSerializedLength() |
boolean |
equals(Object obj)
Indicates whether some other object is equal to this one. |
boolean |
getFlagKeyOnly()
Get the 'keyonly' flag (V1 Subheader Field). |
boolean |
getFlagNoInitialImage()
Get the 'no initial image' flag (V1 Subheader Field). |
boolean |
getFlagRemove()
Get the 'remove' flag (V1 Subheader Field). |
int |
getFlags()
Get the flags (V1 Subheader Field). |
String |
getKey()
Get the key (V1 Subheader Field). |
static short |
getLatestSubheaderVersion()
Get the latest subheader version. |
byte |
getOpCode()
Get the opcode (V1 Subheader Field). |
byte |
getSemantic()
Get the operation semantic (V1 Subheader Field). |
int |
getSerializedLength(ByteBuffer buffer)
Implementation of PktSubheader.getSerializedLength(ByteBuffer) |
short |
getSubheaderVersion()
Get the header format version (V1 Subheader Field). |
int |
getTimeout()
Get the timeout (V1 Subheader Field). |
byte |
getTriggers()
Get the notification triggers (V1 Subheader Field). |
int |
hashCode()
Returns the hashcode for this object |
void |
initialize()
Implementation of PktBody.initialize() |
void |
initializeBuffer()
Implementation of PktBuffer.Initializer.initializeBuffer() |
void |
setAddTrigger(boolean val)
Set the 'add' notification trigger (V1 Subheader Field). |
void |
setFlagKeyOnly(boolean val)
Set the 'keyonly' flag (V1 Subheader Field). |
void |
setFlagNoInitialImage(boolean val)
Set the 'no initial mage' flag (V1 Subheader Field). |
void |
setFlagRemove(boolean val)
Set the 'remove' flag (V1 Subheader Field). |
void |
setFlags(int flags)
Set the flags (V1 Subheader Field). |
void |
setKey(String key)
Set the key (V1 Subheader Field). |
void |
setOpCode(byte opcode)
Set the opcode (V1 Subheader Field). |
void |
setRemoveTrigger(boolean val)
Set the 'remove' notification trigger (V1 Subheader Field). |
void |
setSemantic(byte semantic)
Set the operation semantic (V1 Subheader Field). |
void |
setTimeout(int timeout)
Set the timeout (V1 Subheader Field). |
void |
setTriggers(byte triggers)
Set the notification triggers (V1 Subheader Field). |
void |
setUpdateTrigger(boolean val)
Set the 'update' notification trigger (V1 Subheader Field). |
String |
toString()
Returns a string representation of the object |
Methods inherited from class com.neeve.pkt.PktSubheader |
---|
getType |
Methods inherited from class com.neeve.pkt.PktBody |
---|
deserialize, getBuffer, getSerializedLength, getType, isNative, reset, serialize |
Methods inherited from class com.neeve.pkt.PktSerializable |
---|
deserialize, getDeserializationPolicy, getSerializationPolicy, isValidDeserializationPolicy, isValidSerializationPolicy, serialize, setDeserializationPolicy, setSerializationPolicy |
Methods inherited from class com.neeve.util.UtlListElement |
---|
count, insertAfter, insertBefore, isLinked, next, previous, unlink, wipe |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final byte OPCODE_NONE
public static final byte OPCODE_PUT
public static final byte OPCODE_GET
public static final byte OPCODE_GETCANCEL
public static final byte OPCODE_POST
public static final byte OPCODE_POSTCANCEL
public static final byte OPCODE_REMOVE
public static final byte OPCODE_NOTIFY
public static final byte SEMANTIC_NONE
public static final byte SEMANTIC_SYNC
public static final byte SEMANTIC_PIPELINED
public static final byte SEMANTIC_ASYNC
public static final byte SEMANTIC_NOREPLY
public static final byte TRIGGER_NONE
public static final byte TRIGGER_ADD
public static final byte TRIGGER_UPDATE
public static final byte TRIGGER_REMOVE
public static final int FLAG_REMOVE
public static final int FLAG_NO_INITIAL_IMAGE
public static final int FLAG_KEYONLY
Method Detail |
---|
public static PktBody create(Properties props)
props
- The property set to use to qualify creation of the body.public static PktBody create()
public final void initialize()
PktBody.initialize()
public final int doGetSerializedLength()
PktBody.doGetSerializedLength()
public final int getSerializedLength(ByteBuffer buffer)
PktSubheader.getSerializedLength(ByteBuffer)
getSerializedLength
in class PktSubheader
public static final short getLatestSubheaderVersion()
This method returns the latest subheader version i.e. the version used when subheaders are created explicitly i.e. not through deserialization
public final short getSubheaderVersion()
public final void setOpCode(byte opcode)
opcode
- The opcode to set.public final byte getOpCode()
public final void setSemantic(byte semantic)
semantic
- The semantic to set.public final byte getSemantic()
public final void setAddTrigger(boolean val)
public final void setUpdateTrigger(boolean val)
public final void setRemoveTrigger(boolean val)
public final void setTriggers(byte triggers)
triggers
- The triggers to set.public final byte getTriggers()
public final void setTimeout(int timeout)
timeout
- The timeout to set.public final int getTimeout()
public final void setFlagRemove(boolean val)
public final void setFlagNoInitialImage(boolean val)
public final void setFlagKeyOnly(boolean val)
public final void setFlags(int flags)
flags
- The flags to set.public final boolean getFlagRemove()
public final boolean getFlagNoInitialImage()
public final boolean getFlagKeyOnly()
public final int getFlags()
public final void setKey(String key)
public final String getKey()
The key returned by this method can be null.
public final void initializeBuffer()
PktBuffer.Initializer.initializeBuffer()
initializeBuffer
in interface PktBuffer.Initializer
initializeBuffer
in class PktBody
public final String toString()
toString
in class Object
public final boolean equals(Object obj)
equals
in class Object
public final int hashCode()
hashCode
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |