org.jboss.messaging.core.remoting.impl.wireformat
Class EmptyPacket

java.lang.Object
  extended by org.jboss.messaging.core.remoting.impl.wireformat.EmptyPacket
All Implemented Interfaces:
Packet
Direct Known Subclasses:
ConnectionCreateSessionMessage, ConnectionCreateSessionResponseMessage, ConsumerFlowCreditMessage, CreateConnectionRequest, CreateConnectionResponse, MessagingExceptionMessage, Ping, Pong, ProducerFlowCreditMessage, ProducerSendMessage, ReceiveMessage, SessionAcknowledgeMessage, SessionAddDestinationMessage, SessionBindingQueryMessage, SessionBindingQueryResponseMessage, SessionBrowserHasNextMessageResponseMessage, SessionCancelMessage, SessionCreateBrowserMessage, SessionCreateBrowserResponseMessage, SessionCreateConsumerMessage, SessionCreateConsumerResponseMessage, SessionCreateProducerMessage, SessionCreateProducerResponseMessage, SessionCreateQueueMessage, SessionDeleteQueueMessage, SessionQueueQueryMessage, SessionQueueQueryResponseMessage, SessionRemoveDestinationMessage, SessionXACommitMessage, SessionXAEndMessage, SessionXAForgetMessage, SessionXAGetInDoubtXidsResponseMessage, SessionXAGetTimeoutResponseMessage, SessionXAJoinMessage, SessionXAPrepareMessage, SessionXAResponseMessage, SessionXAResumeMessage, SessionXARollbackMessage, SessionXASetTimeoutMessage, SessionXASetTimeoutResponseMessage, SessionXAStartMessage

public class EmptyPacket
extends java.lang.Object
implements Packet

Version:
$Revision$
Author:
Jeff Mesnil, Tim Fox

Field Summary
static byte CLOSE
           
static byte CONN_CREATESESSION
           
static byte CONN_CREATESESSION_RESP
           
static byte CONN_START
           
static byte CONN_STOP
           
static byte CONS_FLOWTOKEN
           
static byte CREATECONNECTION
           
static byte CREATECONNECTION_RESP
           
static byte EXCEPTION
           
static byte NULL
           
static byte PING
           
static byte PONG
           
static byte PROD_RECEIVETOKENS
           
static byte PROD_SEND
           
static byte RECEIVE_MSG
           
static byte SESS_ACKNOWLEDGE
           
static byte SESS_ADD_DESTINATION
           
static byte SESS_BINDINGQUERY
           
static byte SESS_BINDINGQUERY_RESP
           
static byte SESS_BROWSER_HASNEXTMESSAGE
           
static byte SESS_BROWSER_HASNEXTMESSAGE_RESP
           
static byte SESS_BROWSER_NEXTMESSAGE
           
static byte SESS_BROWSER_RESET
           
static byte SESS_CANCEL
           
static byte SESS_COMMIT
           
static byte SESS_CREATEBROWSER
           
static byte SESS_CREATEBROWSER_RESP
           
static byte SESS_CREATECONSUMER
           
static byte SESS_CREATECONSUMER_RESP
           
static byte SESS_CREATEPRODUCER
           
static byte SESS_CREATEPRODUCER_RESP
           
static byte SESS_CREATEQUEUE
           
static byte SESS_DELETE_QUEUE
           
static byte SESS_QUEUEQUERY
           
static byte SESS_QUEUEQUERY_RESP
           
static byte SESS_RECOVER
           
static byte SESS_REMOVE_DESTINATION
           
static byte SESS_ROLLBACK
           
static byte SESS_XA_COMMIT
           
static byte SESS_XA_END
           
static byte SESS_XA_FORGET
           
static byte SESS_XA_GET_TIMEOUT
           
static byte SESS_XA_GET_TIMEOUT_RESP
           
static byte SESS_XA_INDOUBT_XIDS
           
static byte SESS_XA_INDOUBT_XIDS_RESP
           
static byte SESS_XA_JOIN
           
static byte SESS_XA_PREPARE
           
static byte SESS_XA_RESP
           
static byte SESS_XA_RESUME
           
static byte SESS_XA_ROLLBACK
           
static byte SESS_XA_SET_TIMEOUT
           
static byte SESS_XA_SET_TIMEOUT_RESP
           
static byte SESS_XA_START
           
static byte SESS_XA_SUSPEND
           
 
Fields inherited from interface org.jboss.messaging.core.remoting.Packet
NO_ID_SET
 
Constructor Summary
EmptyPacket(byte type)
           
 
Method Summary
 void decode(MessagingBuffer buffer)
           
 void decodeBody(MessagingBuffer buffer)
           
 void encode(MessagingBuffer buffer)
           
 void encodeBody(MessagingBuffer buffer)
           
 long getExecutorID()
           
protected  java.lang.String getParentString()
           
 long getResponseTargetID()
           
 long getTargetID()
           
 byte getType()
           
 void normalize(Packet other)
           
 void setExecutorID(long executorID)
           
 void setResponseTargetID(long responseTargetID)
           
 void setTargetID(long targetID)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NULL

public static final byte NULL
See Also:
Constant Field Values

PING

public static final byte PING
See Also:
Constant Field Values

PONG

public static final byte PONG
See Also:
Constant Field Values

EXCEPTION

public static final byte EXCEPTION
See Also:
Constant Field Values

CLOSE

public static final byte CLOSE
See Also:
Constant Field Values

CREATECONNECTION

public static final byte CREATECONNECTION
See Also:
Constant Field Values

CREATECONNECTION_RESP

public static final byte CREATECONNECTION_RESP
See Also:
Constant Field Values

CONN_CREATESESSION

public static final byte CONN_CREATESESSION
See Also:
Constant Field Values

CONN_CREATESESSION_RESP

public static final byte CONN_CREATESESSION_RESP
See Also:
Constant Field Values

CONN_START

public static final byte CONN_START
See Also:
Constant Field Values

CONN_STOP

public static final byte CONN_STOP
See Also:
Constant Field Values

SESS_CREATECONSUMER

public static final byte SESS_CREATECONSUMER
See Also:
Constant Field Values

SESS_CREATECONSUMER_RESP

public static final byte SESS_CREATECONSUMER_RESP
See Also:
Constant Field Values

SESS_CREATEPRODUCER

public static final byte SESS_CREATEPRODUCER
See Also:
Constant Field Values

SESS_CREATEPRODUCER_RESP

public static final byte SESS_CREATEPRODUCER_RESP
See Also:
Constant Field Values

SESS_CREATEBROWSER

public static final byte SESS_CREATEBROWSER
See Also:
Constant Field Values

SESS_CREATEBROWSER_RESP

public static final byte SESS_CREATEBROWSER_RESP
See Also:
Constant Field Values

SESS_ACKNOWLEDGE

public static final byte SESS_ACKNOWLEDGE
See Also:
Constant Field Values

SESS_RECOVER

public static final byte SESS_RECOVER
See Also:
Constant Field Values

SESS_COMMIT

public static final byte SESS_COMMIT
See Also:
Constant Field Values

SESS_ROLLBACK

public static final byte SESS_ROLLBACK
See Also:
Constant Field Values

SESS_CANCEL

public static final byte SESS_CANCEL
See Also:
Constant Field Values

SESS_QUEUEQUERY

public static final byte SESS_QUEUEQUERY
See Also:
Constant Field Values

SESS_QUEUEQUERY_RESP

public static final byte SESS_QUEUEQUERY_RESP
See Also:
Constant Field Values

SESS_CREATEQUEUE

public static final byte SESS_CREATEQUEUE
See Also:
Constant Field Values

SESS_DELETE_QUEUE

public static final byte SESS_DELETE_QUEUE
See Also:
Constant Field Values

SESS_ADD_DESTINATION

public static final byte SESS_ADD_DESTINATION
See Also:
Constant Field Values

SESS_REMOVE_DESTINATION

public static final byte SESS_REMOVE_DESTINATION
See Also:
Constant Field Values

SESS_BINDINGQUERY

public static final byte SESS_BINDINGQUERY
See Also:
Constant Field Values

SESS_BINDINGQUERY_RESP

public static final byte SESS_BINDINGQUERY_RESP
See Also:
Constant Field Values

SESS_BROWSER_RESET

public static final byte SESS_BROWSER_RESET
See Also:
Constant Field Values

SESS_BROWSER_HASNEXTMESSAGE

public static final byte SESS_BROWSER_HASNEXTMESSAGE
See Also:
Constant Field Values

SESS_BROWSER_HASNEXTMESSAGE_RESP

public static final byte SESS_BROWSER_HASNEXTMESSAGE_RESP
See Also:
Constant Field Values

SESS_BROWSER_NEXTMESSAGE

public static final byte SESS_BROWSER_NEXTMESSAGE
See Also:
Constant Field Values

SESS_XA_START

public static final byte SESS_XA_START
See Also:
Constant Field Values

SESS_XA_END

public static final byte SESS_XA_END
See Also:
Constant Field Values

SESS_XA_COMMIT

public static final byte SESS_XA_COMMIT
See Also:
Constant Field Values

SESS_XA_PREPARE

public static final byte SESS_XA_PREPARE
See Also:
Constant Field Values

SESS_XA_RESP

public static final byte SESS_XA_RESP
See Also:
Constant Field Values

SESS_XA_ROLLBACK

public static final byte SESS_XA_ROLLBACK
See Also:
Constant Field Values

SESS_XA_JOIN

public static final byte SESS_XA_JOIN
See Also:
Constant Field Values

SESS_XA_SUSPEND

public static final byte SESS_XA_SUSPEND
See Also:
Constant Field Values

SESS_XA_RESUME

public static final byte SESS_XA_RESUME
See Also:
Constant Field Values

SESS_XA_FORGET

public static final byte SESS_XA_FORGET
See Also:
Constant Field Values

SESS_XA_INDOUBT_XIDS

public static final byte SESS_XA_INDOUBT_XIDS
See Also:
Constant Field Values

SESS_XA_INDOUBT_XIDS_RESP

public static final byte SESS_XA_INDOUBT_XIDS_RESP
See Also:
Constant Field Values

SESS_XA_SET_TIMEOUT

public static final byte SESS_XA_SET_TIMEOUT
See Also:
Constant Field Values

SESS_XA_SET_TIMEOUT_RESP

public static final byte SESS_XA_SET_TIMEOUT_RESP
See Also:
Constant Field Values

SESS_XA_GET_TIMEOUT

public static final byte SESS_XA_GET_TIMEOUT
See Also:
Constant Field Values

SESS_XA_GET_TIMEOUT_RESP

public static final byte SESS_XA_GET_TIMEOUT_RESP
See Also:
Constant Field Values

CONS_FLOWTOKEN

public static final byte CONS_FLOWTOKEN
See Also:
Constant Field Values

PROD_SEND

public static final byte PROD_SEND
See Also:
Constant Field Values

PROD_RECEIVETOKENS

public static final byte PROD_RECEIVETOKENS
See Also:
Constant Field Values

RECEIVE_MSG

public static final byte RECEIVE_MSG
See Also:
Constant Field Values
Constructor Detail

EmptyPacket

public EmptyPacket(byte type)
Method Detail

getType

public byte getType()
Specified by:
getType in interface Packet

setResponseTargetID

public void setResponseTargetID(long responseTargetID)
Specified by:
setResponseTargetID in interface Packet

getResponseTargetID

public long getResponseTargetID()
Specified by:
getResponseTargetID in interface Packet

getTargetID

public long getTargetID()
Specified by:
getTargetID in interface Packet

setTargetID

public void setTargetID(long targetID)
Specified by:
setTargetID in interface Packet

getExecutorID

public long getExecutorID()
Specified by:
getExecutorID in interface Packet

setExecutorID

public void setExecutorID(long executorID)
Specified by:
setExecutorID in interface Packet

normalize

public void normalize(Packet other)
Specified by:
normalize in interface Packet

encode

public void encode(MessagingBuffer buffer)
Specified by:
encode in interface Packet

decode

public void decode(MessagingBuffer buffer)
            throws java.lang.Exception
Specified by:
decode in interface Packet
Throws:
java.lang.Exception

encodeBody

public void encodeBody(MessagingBuffer buffer)

decodeBody

public void decodeBody(MessagingBuffer buffer)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getParentString

protected java.lang.String getParentString()


Copyright © 2006 JBoss Inc. All Rights Reserved.