com.andreani.xtol.util
Class SessionEntry

java.lang.Object
  |
  +--net.jini.entry.AbstractEntry
        |
        +--com.andreani.xtol.util.SessionEntry
All Implemented Interfaces:
Entry, Serializable

public class SessionEntry
extends AbstractEntry

This class is the Entry object contained into Session Spaces that stores user state and his bound server address.

Version:
1.0
Author:
Stefano Andreani
See Also:
Serialized Form

Field Summary
 Boolean fail
          Fail is true if the server which was servicing has failed and the new one assigned hasn't yet copied this session into its cache.
 String id
          This is the Global Unique Id that identify user session.
 String serverAddr
          The address of destination server
 Hashtable session
          This Hashtable contains all objects representing user state.
 
Constructor Summary
SessionEntry()
          Empty Constructor for the SessionEntry object
SessionEntry(String id_p, String serverAddr_p, Hashtable obj, Boolean fail_p)
          Constructor for the SessionEntry object
 
Method Summary
 String toString()
          Formatted output, useful for debugging
 
Methods inherited from class net.jini.entry.AbstractEntry
equals, equals, hashCode, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

id

public String id
This is the Global Unique Id that identify user session.

serverAddr

public String serverAddr
The address of destination server

session

public Hashtable session
This Hashtable contains all objects representing user state.

fail

public Boolean fail
Fail is true if the server which was servicing has failed and the new one assigned hasn't yet copied this session into its cache.
Constructor Detail

SessionEntry

public SessionEntry()
Empty Constructor for the SessionEntry object

SessionEntry

public SessionEntry(String id_p,
                    String serverAddr_p,
                    Hashtable obj,
                    Boolean fail_p)
Constructor for the SessionEntry object
Parameters:
id_p - Session GUID
serverAddr_p - IP and port
obj - user state
fail_p - fail flag
Method Detail

toString

public String toString()
Formatted output, useful for debugging
Overrides:
toString in class AbstractEntry
Returns:
String representation of this object


Copyright © 2001 Stefano Andreani - No Rights Reserved ;-)