Package pygar.communication
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
-
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)
-
Field Details
-
Constructor Details
-
PmessageBase
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()
-