dataservices
Class ProxySession

public class ProxySession
implements ProxyConstants

Title: ProxySession

Description: This class is responsible for storing information about a device management consoles (DMCs) that sends requests to the SNMPProxy. It is used by ProtocolHandlers (through the ProxySessionManager) who wish to que data that was intended for use to respond to a DMC SNMP request but was not availible in time to respond. This qued data is then used to respond to a repeated requests for that data and then dequed.

In addition, a Session is responsible for storing a POMESClient so that each DMC may have its commands trancieved by its own connection to the POMES.

Sessions are generally timed out and destroyed by the Session manager after a certain length of time.

Version:
1.1
Author:
Christopher M. King (kingc@uci.edu)
See Also:
ProtocolHandler
ProxySessionManager

Copyright: Copyright (c) 2002

Company: Printronix

Method Detail

tick

public void tick()
Used by the Session manager to decrease the TTL (time-to-live) for this session by 1 second (1000 ms). Only decrements TTL if the POMESClient associated with this session is not being used.

hasExpired

public boolean hasExpired()
Used by the ProxySessionManager to determine if the session has expired.
Returns:
True if the session TTL value has reached 0

toString

public String toString()
Will return a String representation of the Session, used mostly for debug purposes.
Returns:
A String representation of the session contents.