Class semper.util.msgtools.ChannelSetupMessage
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.util.msgtools.ChannelSetupMessage

java.lang.Object
   |
   +----semper.util.msgtools.ChannelSetupMessage

public class ChannelSetupMessage
extends Object
implements Streamable
Message sent while setting up a channel for negotiations. The initial message sets up a common context between the two parties by establishing the following:
  • Identifier of the object on the initiator side where the message originated. By convention, if the manager of the service was the initiator, then this is 0, otherwise it is the transaction/session id. This is just the recommended interpretation -- you can choose a different interpretation.
  • Identifier of the object on the responder side to which the message is destined
  • An external reference string, chosen on the initiator side and given back as return parameter on the responder side.
    Version:
    $Revision: 1.2 $ $Date: 1996/09/03 11:27:41 $
    Author:
    N. Asokan ([email protected])
    See Also:
    openInitiatorChannel, openResponderChannel

    Constructor Index

     o ChannelSetupMessage()
    Constructor without args
     o ChannelSetupMessage(long, long, String)
    Constructor with arguments.

    Method Index

     o getExtRef()
    Get the external reference
     o getInitiatorTransactionID()
    Get the initiator transaction id
     o getResponderTransactionID()
    Get the responder transaction id
     o myStreamSize()
    Implementing the Streamable interface
     o readObject(StreamInputInterface)
    Implementing the Streamable interface
     o writeObject(StreamOutputInterface)
    Implementing the Streamable interface

    Constructors

     o ChannelSetupMessage
      public ChannelSetupMessage()
    
    Constructor without args
     o ChannelSetupMessage
      public ChannelSetupMessage(long initiator_transaction_id,
                                 long responder_transaction_id,
                                 String ext_ref)
    
    Constructor with arguments.
    Parameters:
    initiator_transaction_id - transaction_id at the initiator side
    responder_transaction_id - transaction_id at the responder side
    ext_ref - external reference string
    See Also:
    openInitiatorChannel, openResponderChannel

    Methods

     o getInitiatorTransactionID
      public long getInitiatorTransactionID()
    
    Get the initiator transaction id
     o getResponderTransactionID
      public long getResponderTransactionID()
    
    Get the responder transaction id
     o getExtRef
      public String getExtRef()
    
    Get the external reference
     o writeObject
      public void writeObject(StreamOutputInterface s) throws StreamIOException
    
    Implementing the Streamable interface
    Throws: StreamIOException
    as usual
     o readObject
      public void readObject(StreamInputInterface s) throws StreamIOException
    
    Implementing the Streamable interface
    Throws: StreamIOException
    as usual
     o myStreamSize
      public int myStreamSize() throws StreamIOException
    
    Implementing the Streamable interface

    All Packages  Class Hierarchy  This Package  Previous  Next  Index