AdventNet Web NMS 4 API Specification

com.adventnet.management.config
Class ConfigPDU

java.lang.Object
  |
  +--com.adventnet.management.config.ConfigPDU
All Implemented Interfaces:
java.io.Serializable

public class ConfigPDU
extends java.lang.Object
implements java.io.Serializable

The ConfigPDU class represents the PDU which encapsulates information like uniqueID, workID and the data which the user wants to transfer across client and configuration server.

See Also:
Serialized Form

Field Summary
 byte[] data
          The data which the user wants to send across client and server.
 int id
          The request type or work type which identifies what work/operation that should be done on the server
 java.lang.String uniqueID
          uniqueID of the registered result listener.
 java.lang.String userName
          Name of the user who sends the data across client and server.
 
Constructor Summary
ConfigPDU(java.lang.String uniqueID, int id, byte[] data)
          Constructor to construct a ConfigPDU.
ConfigPDU(java.lang.String uniqueID, int id, byte[] data, java.lang.String userName)
          Constructor to construct a ConfigPDU with userName.
 
Method Summary
static ConfigPDU deSerializeConfigPDU(byte[] b)
          Deserializes the given byte array and returns a ConfigPDU object.
static byte[] serializeConfigPDU(ConfigPDU pdu)
          Serializes the given ConfigPDU and gives a byte array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

public int id
The request type or work type which identifies what work/operation that should be done on the server

uniqueID

public java.lang.String uniqueID
uniqueID of the registered result listener.

data

public byte[] data
The data which the user wants to send across client and server.

userName

public java.lang.String userName
Name of the user who sends the data across client and server.
Constructor Detail

ConfigPDU

public ConfigPDU(java.lang.String uniqueID,
                 int id,
                 byte[] data)
Constructor to construct a ConfigPDU.
Parameters:
uniqueID - the uniqueID of the registered result listener.
id - the request type or work type which identifies what work/operation that should be done on the server.
data - byte array of data.

ConfigPDU

public ConfigPDU(java.lang.String uniqueID,
                 int id,
                 byte[] data,
                 java.lang.String userName)
Constructor to construct a ConfigPDU with userName.
Parameters:
uniqueID - the uniqueID of the registered result listener.
id - the request type or work type which identifies what work/operation that should be done on the server.
data - byte array of data.
userName - name of the user who wants to send the data across client and server.
Method Detail

serializeConfigPDU

public static byte[] serializeConfigPDU(ConfigPDU pdu)
                                 throws java.io.IOException
Serializes the given ConfigPDU and gives a byte array.

deSerializeConfigPDU

public static ConfigPDU deSerializeConfigPDU(byte[] b)
                                      throws java.io.IOException,
                                             java.lang.ClassNotFoundException
Deserializes the given byte array and returns a ConfigPDU object.

AdventNet Web NMS 4 API Specification