|
|||||||||
| 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 represents a TL1 Input Message block that is sent from the TL1 Manager to the TL1 Network Element(device) in order to manage it. On the NE, this Message translates to a certain action getting executed on the NE.
TL1 Input Message block![]()
TL1CommandCode,
TL1AccessIdentifier,
TL1MessagePayloadBlock,
TL1GeneralBlock| Field Summary | |
(package private) java.lang.String |
message
|
(package private) static char |
sep
|
| Constructor Summary | |
TL1InputMessage()
Default constructor creates an instance of TL1InputMessage object. |
|
TL1InputMessage(TL1CommandCode cmdCode)
Constructor that create an instance of TL1InputMessage object intialized with the specified Command Code. |
|
TL1InputMessage(TL1CommandCode cmdCode,
TL1AccessIdentifier aID)
Constructor that create an instance of TL1InputMessage object intialized with the specified Command Code and Access Identifier. |
|
TL1InputMessage(TL1CommandCode cmdCode,
TL1AccessIdentifier aID,
java.lang.String cTag)
Constructor that create an instance of TL1InputMessage object intialized with the specified Command Code, Access Identifier and Correlation Tag. |
|
| Method Summary | |
byte[] |
encode()
Encodes the TL1InputMessage.Not to be invoked by the user.This is used internally by the API. |
TL1AccessIdentifier |
getAccessId()
Get the TL1AccessIdentifier object of the message. |
java.lang.String |
getAppendEndString()
Get the string that is to be appended to the end of each Input Message. |
java.lang.String |
getAppendFrontString()
Get the string that is to be appended to the front of each Input Message. |
TL1CommandCode |
getCommandCode()
Get the TL1CommandCode object set on this Input Message. |
java.lang.String |
getCorrelationTag()
Get the Correlation Tag set on this Input Message. |
TL1GeneralBlock |
getGeneralBlock()
Get the TL1GeneralBlock object of the message. |
java.util.Vector |
getMessagePayloadBlock()
Get the Message Payload Block set on this Input Message as a vector. |
java.lang.String |
getMPBString()
Get the String format of the Message Payload Block set on this Input Message. |
int |
getRetries()
Get number of retries before timeout. |
int |
getSize()
Return the length of this Input Message. |
java.lang.String |
getTargetId()
Get the Target Identifier of the message as a String. |
long |
getTimeExpires()
Get the time when request should time out.This method should not be invoked by the user.This is used internally by the API. |
int |
getTimeout()
To get the timeout value. |
long |
getTimeSent()
Get the time, when request was sent.This method should not be invoked by the user.This is used internally by the API. |
boolean |
isAppendEnd()
Checks if the append end flag is set or not. |
boolean |
isAppendFront()
Checks if the append front flag is set or not. |
void |
setAccessId(TL1AccessIdentifier aID)
Set the specified Access Identifier on this Input Message. |
void |
setAppendEnd(boolean value)
Set the append end flag. |
void |
setAppendEndString(java.lang.String s)
Set the string that is to be appended to the end of each Input Message. |
void |
setAppendFront(boolean value)
Set the append front flag. |
void |
setAppendFrontString(java.lang.String s)
Set the string that is to be appended to the front of each Input Message. |
void |
setCommandCode(TL1CommandCode tL1CmdCode)
Set the command code on this Input Message with the specified value. |
void |
setCorrelationTag(java.lang.String correlationTag)
Set the specified Correlation Tag on this Input Message. |
void |
setGeneralBlock(TL1GeneralBlock genBlk)
Set the specified TL1GeneralBlock on this Input Message. |
void |
setMessagePayloadBlock(java.util.Vector mpb)
set the vector of MessagePayloadBlock objects with the given vector. |
void |
setRetries(int count)
Set number of retries before timeout. |
void |
setTargetId(java.lang.String tID)
Set the specified Target Identifier on this Input Message. |
void |
setTimeExpires(long t)
Set the time when request should timeout.This method should not be invoked by the user.This is used internally by the API. |
void |
setTimeout(int timeout)
Set the timeout value. |
void |
setTimeSent(long t)
Set the time when request should timeout.This method should not be invoked by the user.This is used internally by the API. |
| Methods inherited from class com.adventnet.tl1.message.TL1Message |
getType,
isSetSplCharParsing,
setSplCharParsing,
setType,
toString |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
static final char sep
java.lang.String message
| Constructor Detail |
public TL1InputMessage()
public TL1InputMessage(TL1CommandCode cmdCode)
cmdCode - TL1CommandCode object.TL1CommandCode
public TL1InputMessage(TL1CommandCode cmdCode,
TL1AccessIdentifier aID)
cmdCode - TL1CommandCode object.aID - TL1AccessIdentifier.TL1CommandCode,
TL1AccessIdentifier
public TL1InputMessage(TL1CommandCode cmdCode,
TL1AccessIdentifier aID,
java.lang.String cTag)
cmdCode - TL1CommandCode object.aID - TL1AccessIdentifier object.cTag - String representing correlation tag.TL1CommandCode,
TL1AccessIdentifier| Method Detail |
public void setTimeSent(long t)
t - Time value in longpublic void setTimeExpires(long t)
t - Time value in longpublic long getTimeSent()
public long getTimeExpires()
public int getRetries()
public void setRetries(int count)
count - The retries value.public int getTimeout()
public void setTimeout(int timeout)
timeout - The timeout value to be used for monitoring the requestpublic void setAppendFront(boolean value)
value - boolean value to set.
true - if the input message has to be appended with some string
at the beginning of message.
false - otherwise.public void setAppendEnd(boolean value)
value - boolean value to set.
True - if the input message has to be appended with some string
at the end of message.
false - otherwise.public boolean isAppendFront()
public boolean isAppendEnd()
public void setAppendFrontString(java.lang.String s)
s - String to be appended.public void setAppendEndString(java.lang.String s)
s - String to be appended.public java.lang.String getAppendFrontString()
public java.lang.String getAppendEndString()
public void setCommandCode(TL1CommandCode tL1CmdCode)
tL1CmdCode - TL1CommandCode object.TL1CommandCodepublic TL1CommandCode getCommandCode()
TL1CommandCodepublic void setTargetId(java.lang.String tID)
tID - String representing Target Id.public java.lang.String getTargetId()
public TL1AccessIdentifier getAccessId()
TL1AccessIdentifierpublic void setAccessId(TL1AccessIdentifier aID)
aID - TL1AccessIdentifier object.TL1AccessIdentifierpublic void setCorrelationTag(java.lang.String correlationTag)
correlationTag - String representing ctag.public java.lang.String getCorrelationTag()
public void setGeneralBlock(TL1GeneralBlock genBlk)
genBlk - instance of TL1GeneralBlock.TL1GeneralBlockpublic TL1GeneralBlock getGeneralBlock()
TL1GeneralBlockpublic java.util.Vector getMessagePayloadBlock()
TL1MessagePayloadBlockpublic java.lang.String getMPBString()
TL1MessagePayloadBlockpublic void setMessagePayloadBlock(java.util.Vector mpb)
mpb - Vector of TL1MessagePayloadBlock objects.TL1MessagePayloadBlockpublic int getSize()
public byte[] encode()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||