|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.qpid.management.messages.ManagementMessage
public abstract class ManagementMessage
Message implementation used for specific management purposes.
Field Summary | |
---|---|
protected org.apache.qpid.transport.codec.BBEncoder |
_codec
|
protected ByteBuffer |
_data
|
(package private) org.apache.qpid.management.messages.ManagementMessage.IDataBuilderStrategy |
ACCUMULATING
Strategy used for retrieving raw data from this message when it hasn't been already encoded. |
(package private) org.apache.qpid.management.messages.ManagementMessage.IDataBuilderStrategy |
READING
Strategy used for retrieving raw data from this message when it has been already encoded. |
Constructor Summary | |
---|---|
ManagementMessage()
Builds an empty management message. |
Method Summary | |
---|---|
void |
appendData(byte[] src)
|
void |
appendData(ByteBuffer src)
|
void |
clearData()
|
org.apache.qpid.transport.DeliveryProperties |
getDeliveryProperties()
Returns the delivery properties of this message. |
org.apache.qpid.transport.Header |
getHeader()
Returns the header of this message. |
org.apache.qpid.transport.MessageProperties |
getMessageProperties()
Returns the messages header properties of this message. |
int |
getMessageTransferId()
Returns the transfer Id of this message. |
(package private) abstract char |
opcode()
Returns the opcode that will be used for this message. |
ByteBuffer |
readData()
Returns the encoded data of this message. |
void |
readData(byte[] target)
|
protected int |
sequenceNumber()
Returns the sequence number that will be used for this message. |
void |
setHeader(org.apache.qpid.transport.Header header)
Sets the header for this message. |
(package private) abstract void |
specificMessageEncoding()
Concrete subclasses (message implementations) must define here their specific data encoding. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
org.apache.qpid.management.messages.ManagementMessage.IDataBuilderStrategy READING
org.apache.qpid.management.messages.ManagementMessage.IDataBuilderStrategy ACCUMULATING
protected org.apache.qpid.transport.codec.BBEncoder _codec
protected ByteBuffer _data
Constructor Detail |
---|
ManagementMessage()
Method Detail |
---|
protected int sequenceNumber()
abstract char opcode()
public org.apache.qpid.transport.DeliveryProperties getDeliveryProperties()
getDeliveryProperties
in interface org.apache.qpid.api.Message
public org.apache.qpid.transport.Header getHeader()
getHeader
in interface org.apache.qpid.api.Message
public org.apache.qpid.transport.MessageProperties getMessageProperties()
getMessageProperties
in interface org.apache.qpid.api.Message
public int getMessageTransferId()
getMessageTransferId
in interface org.apache.qpid.api.Message
public ByteBuffer readData() throws IOException
readData
in interface org.apache.qpid.api.Message
IOException
public void setHeader(org.apache.qpid.transport.Header header)
setHeader
in interface org.apache.qpid.api.Message
header
- the new message header.public void appendData(byte[] src) throws IOException
appendData
in interface org.apache.qpid.api.Message
IOException
public void appendData(ByteBuffer src) throws IOException
appendData
in interface org.apache.qpid.api.Message
IOException
public void clearData()
clearData
in interface org.apache.qpid.api.Message
public void readData(byte[] target) throws IOException
readData
in interface org.apache.qpid.api.Message
IOException
abstract void specificMessageEncoding()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |