|
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
|
+--com.adventnet.tl1.message.TL1InputMessage
This class is used for constructing input commands that can be sent from the TL1 Manager to the TL1 Network Element(device) in order to retrieve some information or to configure the device.
TL1 Input Message block![]()
For example, the input message
RTRV-OC12:FMX117SP:OC12-ALL:12:::STINFO=YES,SSBITINFO=YES;is created as follows,
TL1InputMessage ipmsg = new TL1InputMessage();
ipmsg.setCommandCode("RTRV-OC12");
ipmsg.setTargetId("FMX117SP");
ipmsg.setAccessId(new TL1AccessIdentifier("OC12-ALl"));
ipmsg.setCorrelationTag("12");
ipmsg.setMessagePayloadBlock(new TL1MessagePayloadBlock("::STINFO=YES,SSBITINFO=YES"));
TL1AccessIdentifier,
TL1MessagePayloadBlock,
TL1GeneralBlock, Serialized Form| Fields inherited from class com.adventnet.tl1.message.TL1Message |
ACK_MESSAGE, AUTONOMOUS_MESSAGE, INPUT_MESSAGE, INVALID_TL1_MESSAGE, RESPONSE_MESSAGE |
| Constructor Summary | |
TL1InputMessage()
Default constructor that creates an instance of TL1InputMessage object. |
|
TL1InputMessage(java.lang.String cmdCode)
Constructor that creates an instance of TL1InputMessage object and intializes with the specified CommandCode. |
|
| Method Summary | |
java.lang.Object |
clone()
Creates and returns a copy of this object. |
TL1ParamBlock |
getAccessId()
Gets the TL1AccessIdentifier of the message as a TL1ParamBlock object. |
java.lang.String |
getAppendEnd()
Gets the string appended to the end of each Input Message. |
java.lang.String |
getAppendFront()
Gets the string appended to the front of each Input Message. |
java.lang.String |
getCommandCode()
Gets the command code set on this Input Message. |
java.lang.String |
getCorrelationTag()
Gets the Correlation Tag set on this Input Message. |
TL1ParamBlock |
getGeneralBlock()
Gets the TL1GeneralBlock of the Input message as a TL1ParamBlock. |
TL1ParamGroup |
getMessagePayloadBlock()
Gets the Message Payload Block object of the Input Message as a TL1ParamGroup. |
java.lang.String |
getMessageTag()
Gets the Correlation Tag set on this Input Message. |
int |
getRetries()
Gets the number of retries before timeout. |
java.lang.String[] |
getRetryCodes()
This method is used to get the Retry codes of TL1InputMessage. |
java.lang.String |
getTargetId()
Gets the Target Identifier of the message as a String. |
int |
getTimeout()
Gets the timeout value. |
void |
setAccessId(TL1ParamBlock aID)
Sets the specified Access Identifier on this message as a TL1ParamBlock. |
void |
setAppendEnd(java.lang.String s)
Sets the string to be appended to the end of each Input Message. |
void |
setAppendFront(java.lang.String s)
Sets the string to be appended to the front of each Input Message. |
void |
setCommandCode(java.lang.String tL1CmdCode)
Sets the TL1InputMessage object with the given command code string. |
void |
setCorrelationTag(java.lang.String correlationTag)
Sets the specified Correlation Tag on this Input Message. |
void |
setGeneralBlock(TL1ParamBlock genBlk)
Sets the specified TL1GeneralBlock on this Input Message. |
void |
setMessagePayloadBlock(TL1ParamGroup mpb)
Sets the MessagePayloadBlock in the Input Message as a TL1ParamGroup object. |
void |
setRetries(int count)
Sets the number of retries before timeout. |
void |
setRetryCodes(java.lang.String[] retryCodes)
This method is used to give the Retry codes. |
void |
setTargetId(java.lang.String tID)
Sets the specified Target Identifier on this Input Message. |
void |
setTimeout(int timeout)
Sets the timeout value. |
java.lang.String |
toString()
Returns the string representation of this object. |
| Methods inherited from class com.adventnet.tl1.message.TL1Message |
encode, equals, getMessageClassifier, getMessageString, getSize, getType, setMessageClassifier, setMessageString, setType |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TL1InputMessage()
public TL1InputMessage(java.lang.String cmdCode)
cmdCode - String representing Command Code.| Method Detail |
public int getRetries()
The default value of retries is 0.
public void setRetries(int count)
The default value of retries is 0.
count - The retries value.public void setRetryCodes(java.lang.String[] retryCodes)
retryCodes - String array contains the retrycodes.public java.lang.String[] getRetryCodes()
public int getTimeout()
The default value of timeout is 0 milliseconds.
public void setTimeout(int timeout)
The timeout in the Input Message overrides the timeout value in session. This means, only when the timeout in the Input Message is 0, the session timeout value is used.
The default value of timeout is 0 milliseconds.
The timeout value to be set should be in milliseconds.
timeout - The timeout value to be used for monitoring the request.public void setAppendFront(java.lang.String s)
s - String to be appended.public void setAppendEnd(java.lang.String s)
s - String to be appended.public java.lang.String getAppendFront()
public java.lang.String getAppendEnd()
public void setCommandCode(java.lang.String tL1CmdCode)
tL1CmdCode - String representing CommandCode.
public java.lang.String getCommandCode()
It consists of three parts namely Verb, Modifier1 and Modifier2. The verb part is mandatory while the modifiers are optional. The verb represents the action to be taken at the NE and the modifiers identify the the object of the Verb where the action is to be applied in the NE.
public void setTargetId(java.lang.String tID)
tID - String representing Target Id.public java.lang.String getTargetId()
The target identifier contains a single parameter that identifies the end target NE to which the input message is directed. The presence of TID in all input message is a requirement, but its value may be null. That is, the target identifier is represented by two successive colons.
public TL1ParamBlock getAccessId()
TL1AccessIdentifierpublic void setAccessId(TL1ParamBlock aID)
aID - Instance of TL1ParamBlock.
TL1AccessIdentifierpublic void setCorrelationTag(java.lang.String correlationTag)
correlationTag - String representing ctag.public java.lang.String getMessageTag()
getMessageTag in class TL1Messagepublic java.lang.String getCorrelationTag()
public void setGeneralBlock(TL1ParamBlock genBlk)
genBlk - instance of TL1ParamBlock.
TL1GeneralBlockpublic TL1ParamBlock getGeneralBlock()
TL1GeneralBlockpublic TL1ParamGroup getMessagePayloadBlock()
TL1MessagePayloadBlockpublic void setMessagePayloadBlock(TL1ParamGroup mpb)
mpb - Instance of TL1ParamGroup.
TL1MessagePayloadBlockpublic java.lang.String toString()
toString in class TL1Messagepublic java.lang.Object clone()
clone in class TL1Message
|
WebNMS TL1 API Release 4 Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||