|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmx.udlap.kjProtocol.packets.BasicPacket
mx.udlap.kjProtocol.packets.AdminKMessage
Kannel's protocol admin message.
| Field Summary | |
static int |
CMD_IDENTIFY
Identify command |
static int |
CMD_RESTART
Restart command |
static int |
CMD_RESUME
Resume command |
static int |
CMD_SHUTDOWN
Shutdown command |
static int |
CMD_SUSPEND
Suspend command |
| Fields inherited from class mx.udlap.kjProtocol.packets.BasicPacket |
ACK_PKT, ADMIN_PKT, HEARTBEAT_PKT, length, NODATA, SMS_PKT, type, WDP_PKT |
| Constructor Summary | |
AdminKMessage()
Constructor for the AdminKMessage object |
|
AdminKMessage(byte[] data)
Constructor for the AdminKMessage object |
|
AdminKMessage(int command,
java.lang.String boxc_id)
Constructor for the AdminKMessage object |
|
| Method Summary | |
KInteger |
getAdm_command()
Gets the adm_command attribute of the AdminKMessage object |
KString |
getBoxc_id()
Gets the boxc_id attribute of the AdminKMessage object |
byte[] |
getMessage()
Gets the message bytes of the AdminKMessage object |
static void |
main(java.lang.String[] args)
Class testing |
void |
setAdm_command(KInteger adm_command)
Sets the adm_command attribute of the AdminKMessage object |
void |
setBoxc_id(KString boxc_id)
Sets the boxc_id attribute of the AdminKMessage object |
void |
setMessage(byte[] data)
Sets the message attribute of the HeartBeatKMessage object |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int CMD_SHUTDOWN
public static final int CMD_SUSPEND
public static final int CMD_RESUME
public static final int CMD_IDENTIFY
public static final int CMD_RESTART
| Constructor Detail |
public AdminKMessage()
public AdminKMessage(int command,
java.lang.String boxc_id)
command - Commandboxc_id - Name of the box
public AdminKMessage(byte[] data)
throws PacketParseException
data - byte array containing an Admin packet as it was received over a tcp link
PacketParseException - Exception thrown when parsing fails| Method Detail |
public byte[] getMessage()
This is the actual message package to be sent over a tco link.
getMessage in interface BasicKannelProtocolMessage
public void setMessage(byte[] data)
throws PacketParseException
This is the way to parse a packet received from a tcp link.
setMessage in interface BasicKannelProtocolMessagedata - The new message value
PacketParseException - Exception thrown when parsing failspublic void setAdm_command(KInteger adm_command)
adm_command - The new adm_command valuepublic void setBoxc_id(KString boxc_id)
boxc_id - The new boxc_id valuepublic KInteger getAdm_command()
public KString getBoxc_id()
public static void main(java.lang.String[] args)
throws java.lang.Exception
args - Description of the Parameter
java.lang.Exception - Exception thrown when
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||