Joram 5.2.5

org.objectweb.joram.shared.client
Class AbstractJmsRequest

java.lang.Object
  extended by org.objectweb.joram.shared.client.AbstractJmsMessage
      extended by org.objectweb.joram.shared.client.AbstractJmsRequest
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, Streamable
Direct Known Subclasses:
ActivateConsumerRequest, CnxCloseRequest, CnxConnectRequest, CnxStartRequest, CnxStopRequest, CommitRequest, ConsumerAckRequest, ConsumerCloseSubRequest, ConsumerDenyRequest, ConsumerReceiveRequest, ConsumerSetListRequest, ConsumerSubRequest, ConsumerUnsetListRequest, ConsumerUnsubRequest, GetAdminTopicRequest, JmsRequestGroup, PingRequest, ProducerMessages, QBrowseRequest, SessAckRequest, SessCreateTQRequest, SessCreateTTRequest, SessDenyRequest, TempDestDeleteRequest, XACnxCommit, XACnxPrepare, XACnxRecoverRequest, XACnxRollback

public abstract class AbstractJmsRequest
extends AbstractJmsMessage

An AbstractJmsRequest is a request sent by a Joram client to its proxy.

See Also:
Serialized Form

Field Summary
protected  int requestId
          Identifier of the request.
protected  java.lang.String target
          The request target is either a destination agent name, or a subscription name.
 
Fields inherited from class org.objectweb.joram.shared.client.AbstractJmsMessage
ACTIVATE_CONSUMER_REQUEST, classid, classnames, CNX_CLOSE_REPLY, CNX_CLOSE_REQUEST, CNX_CONNECT_REPLY, CNX_CONNECT_REQUEST, CNX_START_REQUEST, CNX_STOP_REQUEST, COMMIT_REQUEST, CONSUMER_ACK_REQUEST, CONSUMER_CLOSE_SUB_REQUEST, CONSUMER_DENY_REQUEST, CONSUMER_MESSAGES, CONSUMER_RECEIVE_REQUEST, CONSUMER_SET_LIST_REQUEST, CONSUMER_SUB_REQUEST, CONSUMER_UNSET_LIST_REQUEST, CONSUMER_UNSUB_REQUEST, GET_ADMIN_TOPIC_REPLY, GET_ADMIN_TOPIC_REQUEST, JMS_REQUEST_GROUP, logger, MOM_EXCEPTION_REPLY, NULL_CLASS_ID, PING_REQUEST, PRODUCER_MESSAGES, QBROWSE_REPLY, QBROWSE_REQUEST, SERVER_REPLY, SESS_ACK_REQUEST, SESS_CREATE_TDREPLY, SESS_CREATE_TQREQUEST, SESS_CREATE_TTREQUEST, SESS_DENY_REQUEST, TEMP_DEST_DELETE_REQUEST, XA_CNX_COMMIT, XA_CNX_PREPARE, XA_CNX_RECOVER_REPLY, XA_CNX_RECOVER_REQUEST, XA_CNX_ROLLBACK
 
Constructor Summary
AbstractJmsRequest()
          Constructs an AbstractJmsRequest.
AbstractJmsRequest(java.lang.String target)
          Constructs an AbstractJmsRequest.
 
Method Summary
 int getRequestId()
          Returns the request identifier.
 java.lang.String getTarget()
          Returns the request target name.
 void readFrom(java.io.InputStream is)
          The object implements the readFrom method to restore its contents from the input stream.
 void setRequestId(int requestId)
          Sets the request identifier.
 void setTarget(java.lang.String target)
          Sets the request target name.
 java.lang.String toString()
           
 void toString(java.lang.StringBuffer strbuf)
           
 void writeTo(java.io.OutputStream os)
          The object implements the writeTo method to write its contents to the output stream.
 
Methods inherited from class org.objectweb.joram.shared.client.AbstractJmsMessage
getClassId, read, readExternal, soapCode, soapDecode, write, writeExternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

requestId

protected volatile int requestId
Identifier of the request. Declared volatile to allow a thread that is not the thread sending the request to get the identifier in order to cancel it during a close.


target

protected java.lang.String target
The request target is either a destination agent name, or a subscription name.

Constructor Detail

AbstractJmsRequest

public AbstractJmsRequest()
Constructs an AbstractJmsRequest.


AbstractJmsRequest

public AbstractJmsRequest(java.lang.String target)
Constructs an AbstractJmsRequest.

Parameters:
target - String identifier of the request target, either a queue name, or a subscription name.
Method Detail

setRequestId

public final void setRequestId(int requestId)
Sets the request identifier.


getRequestId

public final int getRequestId()
Returns the request identifier.


setTarget

public final void setTarget(java.lang.String target)
Sets the request target name.


getTarget

public final java.lang.String getTarget()
Returns the request target name.


toString

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

toString

public void toString(java.lang.StringBuffer strbuf)

writeTo

public void writeTo(java.io.OutputStream os)
             throws java.io.IOException
The object implements the writeTo method to write its contents to the output stream.

Parameters:
os - the stream to write the object to
Throws:
java.io.IOException

readFrom

public void readFrom(java.io.InputStream is)
              throws java.io.IOException
The object implements the readFrom method to restore its contents from the input stream.

Parameters:
is - the stream to read data from in order to restore the object
Throws:
java.io.IOException

Joram 5.2.5

Copyright © 2000 - 2009 Scalagent D.T. - All rights reserved