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.
-
clientCall(byte[])
- This function is to allow the applet client to invoke a method
on the server.
-
closeSession()
- This function is called when the session is closed.
-
init(InetAddress, int)
- This function will be called when a new applet session is opened
-
open(int)
- This function will be called when the client opens a UDP port.
-
requestPDU(SnmpPDU)
- This function is called when the PDU being sent to the agent.
-
responsePDU(SnmpPDU)
- This function is the response PDU from the agent, which can be
modified as required.
init
public abstract void init(InetAddress applet_addr,
int applet_port)
- This function will be called when a new applet session is opened
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.
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.
responsePDU
public abstract SnmpPDU responsePDU(SnmpPDU pdu)
- This function is the response PDU from the agent, which can be
modified as required.
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.
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