All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface advent.sas.SASessionClient

public interface interface SASessionClient
This is the interface implemented by client programs that wish to use one class instance per applet session to implement custom extensins to the SAS.


Method Index

 o clientCall(byte[])
This function is to allow the applet client to invoke a method on the server.
 o closeSession()
This function is called when the session is closed.
 o init(InetAddress, int)
This function will be called when a new applet session is opened
 o open(int)
This function will be called when the client opens a UDP port.
 o requestPDU(SnmpPDU)
This function is called when the PDU being sent to the agent.
 o responsePDU(SnmpPDU)
This function is the response PDU from the agent, which can be modified as required.

Methods

 o init
 public abstract void init(InetAddress applet_addr,
                           int applet_port)
This function will be called when a new applet session is opened

 o open
 public abstract int open(int port)
This function will be called when the client opens a UDP port. Typically, the port is 0, which implies a system assigned UDP port. For exceptional cases, if listening for TRAP or SNMP PDUs, a specific port can be specified. The return value will be used, to allow for custom port assignment if needed.

 o requestPDU
 public abstract SnmpPDU requestPDU(SnmpPDU pdu)
This function is called when the PDU being sent to the agent. The PDU can be modified as required by the custom class.

 o responsePDU
 public abstract SnmpPDU responsePDU(SnmpPDU pdu)
This function is the response PDU from the agent, which can be modified as required.

 o clientCall
 public abstract byte[] clientCall(byte data[])
This function is to allow the applet client to invoke a method on the server. A corresponding method will be provided in the SASClient class. Any arguments and return values, will need to be serialized.

 o closeSession
 public abstract void closeSession()
This function is called when the session is closed. The object will be de-referenced and garbage collected after this, if all of it's threads are stopped.


All Packages  Class Hierarchy  This Package  Previous  Next  Index