com.caucho.server.session
Class SessionObjectManager

java.lang.Object
  extended by com.caucho.server.session.SessionObjectManager
All Implemented Interfaces:
ObjectManager

public final class SessionObjectManager
extends java.lang.Object
implements ObjectManager

Persistence object manager for sessions


Constructor Summary
SessionObjectManager(SessionManager sessionManager)
          Creates and initializes a new session object manager
 
Method Summary
 ClusterObject createClusterObject(java.lang.String id)
          Creates the cluster object
 long getMaxIdleTime()
          Returns the maximum idle time.
 boolean isEmpty(java.lang.Object obj)
          Checks if the session is empty.
 void load(java.io.InputStream is, java.lang.Object obj)
          Loads the session.
 void notifyRemove(java.lang.Object objectId)
          Notifies an object has been removed.
 void notifyUpdate(java.lang.Object objectId)
          Notification from the cluster.
 void setStore(Store store)
          Sets the store
 void store(java.io.OutputStream os, java.lang.Object obj)
          Saves the session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionObjectManager

public SessionObjectManager(SessionManager sessionManager)
Creates and initializes a new session object manager

Method Detail

setStore

public void setStore(Store store)
Sets the store


getMaxIdleTime

public long getMaxIdleTime()
Returns the maximum idle time.

Specified by:
getMaxIdleTime in interface ObjectManager

createClusterObject

public ClusterObject createClusterObject(java.lang.String id)
Creates the cluster object

Specified by:
createClusterObject in interface ObjectManager

load

public void load(java.io.InputStream is,
                 java.lang.Object obj)
          throws java.io.IOException
Loads the session.

Specified by:
load in interface ObjectManager
Parameters:
in - the input stream containing the serialized session
obj - the session object to be deserialized
Throws:
java.io.IOException

isEmpty

public boolean isEmpty(java.lang.Object obj)
Checks if the session is empty.

Specified by:
isEmpty in interface ObjectManager

store

public void store(java.io.OutputStream os,
                  java.lang.Object obj)
           throws java.io.IOException
Saves the session.

Specified by:
store in interface ObjectManager
Throws:
java.io.IOException

notifyUpdate

public void notifyUpdate(java.lang.Object objectId)
Notification from the cluster.

Specified by:
notifyUpdate in interface ObjectManager

notifyRemove

public void notifyRemove(java.lang.Object objectId)
Notifies an object has been removed.

Specified by:
notifyRemove in interface ObjectManager