Class PmessageBase

java.lang.Object
pygar.communication.PmessageBase
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Pmessage, PmessageJMSv0

@ThreadSafe
public class PmessageBase
extends java.lang.Object
implements java.io.Serializable
The PmessageBase class describes simple messages passed between applications to serve as protocol events. Derived classes of this class are used for a richer message content. The message object contains sufficient identification that a event distributor (not defined here) is able to route the event to the relevant state machine object.

The identification specifies the broker who is running the market, the market that the broker runs, the particular session in that market, the owner of the application sending the message, owner of the application that should receive the message and the subject of the message. The subject of the message is generally the event name associated with the Pmessage.

See Also:
Serialized Form
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected java.lang.String brokerId  
    protected java.lang.String marketId  
    protected java.lang.String recipientId  
    protected java.lang.String senderId  
    protected java.lang.String sessionId  
    protected java.lang.String subject  
  • Constructor Summary

    Constructors 
    Constructor Description
    PmessageBase()  
    PmessageBase​(java.lang.String myID, java.lang.String recipient, java.lang.String eventName)  
    PmessageBase​(PmessageBase msg)
    copy constructor
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getBrokerId()  
    java.lang.String getMarketId()  
    java.lang.String getRecipientId()  
    java.lang.String getSenderId()  
    java.lang.String getSessionId()  
    java.lang.String getSubject()  
    void partialPrint()  
    void setBrokerId​(java.lang.String brokerId)  
    void setMarketId​(java.lang.String marketId)  
    void setRecipientId​(java.lang.String recipientId)  
    void setSenderId​(java.lang.String senderId)  
    void setSessionId​(java.lang.String sessionId)  
    void setSubject​(java.lang.String subject)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • senderId

      protected java.lang.String senderId
    • recipientId

      protected java.lang.String recipientId
    • brokerId

      protected java.lang.String brokerId
    • marketId

      protected java.lang.String marketId
    • sessionId

      protected java.lang.String sessionId
    • subject

      protected java.lang.String subject
  • Constructor Details

    • PmessageBase

      public PmessageBase​(PmessageBase msg)
      copy constructor
      Parameters:
      msg -
    • PmessageBase

      public PmessageBase()
    • PmessageBase

      public PmessageBase​(java.lang.String myID, java.lang.String recipient, java.lang.String eventName)
  • Method Details

    • getSenderId

      public java.lang.String getSenderId()
    • setSenderId

      public void setSenderId​(java.lang.String senderId)
    • getRecipientId

      public java.lang.String getRecipientId()
    • setRecipientId

      public void setRecipientId​(java.lang.String recipientId)
    • getBrokerId

      public java.lang.String getBrokerId()
    • setBrokerId

      public void setBrokerId​(java.lang.String brokerId)
    • getMarketId

      public java.lang.String getMarketId()
    • setMarketId

      public void setMarketId​(java.lang.String marketId)
    • getSessionId

      public java.lang.String getSessionId()
    • setSessionId

      public void setSessionId​(java.lang.String sessionId)
    • getSubject

      public java.lang.String getSubject()
    • setSubject

      public void setSubject​(java.lang.String subject)
    • partialPrint

      public void partialPrint()