com.caucho.server.cluster
Interface ObjectManager

All Known Implementing Classes:
ProSessionManager, SessionObjectManager

public interface ObjectManager

Base class for the distributed objects


Method Summary
 ClusterObject createClusterObject(java.lang.String id)
          Creates the cluster object
 long getMaxIdleTime()
          Returns the maximum idle time.
 boolean isEmpty(java.lang.Object object)
          Returns true if the object is empty.
 void load(java.io.InputStream in, java.lang.Object object)
          Loads the object from the input stream.
 void notifyRemove(java.lang.Object key)
          Notifies an object has been removed.
 void notifyUpdate(java.lang.Object key)
          Notifies that an object is updated.
 void store(java.io.OutputStream out, java.lang.Object object)
          Stores the object in the output stream.
 

Method Detail

getMaxIdleTime

long getMaxIdleTime()
Returns the maximum idle time.


createClusterObject

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


load

void load(java.io.InputStream in,
          java.lang.Object object)
          throws java.io.IOException
Loads the object from the input stream.

Throws:
java.io.IOException

isEmpty

boolean isEmpty(java.lang.Object object)
                throws java.io.IOException
Returns true if the object is empty.

Throws:
java.io.IOException

store

void store(java.io.OutputStream out,
           java.lang.Object object)
           throws java.io.IOException
Stores the object in the output stream.

Throws:
java.io.IOException

notifyUpdate

void notifyUpdate(java.lang.Object key)
Notifies that an object is updated.


notifyRemove

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