|
WebNMS TL1 API Release 4 Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.adventnet.tl1.message.TL1Message
This abstract class is the base class for TL1InputMessage, TL1ResponseMessage, TL1AckMessage and TL1AutonomousMessage. This class represent the messages that are exchanged between the TL1 Manager and the TL1 Agent.
TL1InputMessage,
TL1ResponseMessage,
TL1AckMessage,
TL1AutonomousMessage, Serialized Form| Field Summary | |
static byte |
ACK_MESSAGE
Constant for TL1AckMessage type |
static byte |
AUTONOMOUS_MESSAGE
Constant for TL1AutoMessage type |
static byte |
INPUT_MESSAGE
Constant for TL1InputMessage type |
static byte |
INVALID_TL1_MESSAGE
Constant for Invalid TL1 Message type |
static byte |
RESPONSE_MESSAGE
Constant for TL1ResponseMessage type |
| Method Summary | |
abstract java.lang.Object |
clone()
Creates and returns a copy of this message object. |
byte[] |
encode()
Returns the byte array of this message object. |
boolean |
equals(TL1Message mesg)
Compare the specified message object with this message object for equality. |
java.lang.Object |
getMessageClassifier()
Gets the details set on this TL1Message using the setMessageClassifier method. |
java.lang.String |
getMessageString()
Gets the String representation of the message that came from the agent. |
abstract java.lang.String |
getMessageTag()
Gets the MessageTag of this object. |
int |
getSize()
Gets the size of this message object. |
byte |
getType()
Returns the message type as a byte constant. |
void |
setMessageClassifier(java.lang.Object obj)
Stores application specific details. |
void |
setMessageString(java.lang.String messageString)
Sets the specified string coming from the agent on this Message. |
void |
setType(byte type)
Sets the TL1 message type. |
abstract java.lang.String |
toString()
Returns the string representation of this object. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final byte INPUT_MESSAGE
public static final byte ACK_MESSAGE
public static final byte RESPONSE_MESSAGE
public static final byte AUTONOMOUS_MESSAGE
public static final byte INVALID_TL1_MESSAGE
| Method Detail |
public byte getType()
The byte constant represents any of the four TL1 message types namely, TL1InputMessage, TL1AckMessage, TL1ResponseMessage and TL1AutonomousMessage.
It can be one of these,
public void setType(byte type)
It can be any one of the four byte types,
type - message type as byte constant.public boolean equals(TL1Message mesg)
mesg - TL1Message object to compare.
true if this message object is the same as the mesg
argument; false otherwise.
public byte[] encode()
Note : This method must not be invoked by the user. This is used internally by the TL1 API.
public abstract java.lang.String toString()
toString in class java.lang.Objectpublic abstract java.lang.String getMessageTag()
It can be a Correlation tag in the case of Input Message and Autonomous tag in the case of Autonomous Message.
public void setMessageString(java.lang.String messageString)
messageString - String representing message.public java.lang.String getMessageString()
public void setMessageClassifier(java.lang.Object obj)
obj - Object instance.public java.lang.Object getMessageClassifier()
public int getSize()
public abstract java.lang.Object clone()
|
WebNMS TL1 API Release 4 Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||