Joram 5.0.7

org.objectweb.joram.kclient
Class AbstractRequest

java.lang.Object
  extended by org.objectweb.joram.kclient.AbstractMessage
      extended by org.objectweb.joram.kclient.AbstractRequest
All Implemented Interfaces:
Streamable
Direct Known Subclasses:
CnxCloseRequest, CnxConnectRequest, CnxStartRequest, CnxStopRequest, ConsumerAckRequest, ConsumerCloseSubRequest, ConsumerDenyRequest, ConsumerReceiveRequest, ConsumerSubRequest, ConsumerUnsubRequest, ProducerMessages, SessAckRequest, SessDenyRequest

public abstract class AbstractRequest
extends AbstractMessage

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


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.kclient.AbstractMessage
ACTIVATE_CONSUMER_REQUEST, classid, classnames, CNX_CLOSE_REPLY, CNX_CLOSE_REQUEST, CNX_CONNECT_REPLY, CNX_CONNECT_REQUEST, CNX_START_REQUEST, CNX_STOP_REQUEST, CONSUMER_ACK_REQUEST, CONSUMER_CLOSE_SUB_REQUEST, CONSUMER_DENY_REQUEST, CONSUMER_MESSAGES, CONSUMER_RECEIVE_REQUEST, CONSUMER_SUB_REQUEST, CONSUMER_UNSUB_REQUEST, MOM_EXCEPTION_REPLY, NULL_CLASS_ID, PRODUCER_MESSAGES, SERVER_REPLY, SESS_ACK_REQUEST, SESS_DENY_REQUEST
 
Constructor Summary
AbstractRequest()
          Constructs an AbstractRequest.
AbstractRequest(java.lang.String target)
          Constructs an AbstractRequest.
 
Method Summary
 int getRequestId()
          Returns the request identifier.
 void readFrom(InputXStream is)
          The object implements the readFrom method to restore its contents from the input stream.
 void setRequestId(int requestId)
          Sets the request identifier.
 void toString(java.lang.StringBuffer strbuf)
           
 void writeTo(OutputXStream os)
          The object implements the writeTo method to write its contents to the output stream.
 
Methods inherited from class org.objectweb.joram.kclient.AbstractMessage
getClassId, read, toString, write
 
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.


target

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

Constructor Detail

AbstractRequest

public AbstractRequest()
Constructs an AbstractRequest.


AbstractRequest

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

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.


toString

public void toString(java.lang.StringBuffer strbuf)
Specified by:
toString in class AbstractMessage

writeTo

public void writeTo(OutputXStream 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 final void readFrom(InputXStream 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.0.7

Copyright © 2005 Scalagent - All rights reserved