com.caucho.server.cluster
Class Store

java.lang.Object
  extended by com.caucho.server.cluster.Store

public class Store
extends java.lang.Object

Application view of the store, e.g. a specific session manager.


Field Summary
protected static java.util.logging.Logger log
           
 
Method Summary
 ClusterObject createClusterObject(java.lang.String objectId, int primary, int secondary, int tertiary)
          Returns a ClusterObject.
 long getAccessWindowTime()
          Returns the length of time an idle object can remain in the store before being cleaned.
 HashKey getId()
          Gets the store identifier.
 long getMaxIdleTime()
          Returns the max idle time.
 java.lang.String getName()
          Gets the store name
 ObjectManager getObjectManager()
          Returns the object manager.
 StoreManager getStoreManager()
          Returns the store manager.
 boolean isAlwaysLoad()
          Returns true if the object should always be loaded.
 boolean isAlwaysSave()
          Returns true if the object should always be saved.
 void setAlwaysLoad(boolean isAlwaysLoad)
          Set true if the object should always be loaded.
 void setAlwaysSave(boolean isAlwaysSave)
          Set true if the object should always be saved.
 void setMaxIdleTime(long maxIdleTime)
          Sets the max idle time.
 void setName(java.lang.String name)
          Sets the store name
 void setObjectManager(ObjectManager obj)
          Sets the object manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final java.util.logging.Logger log
Method Detail

getId

public HashKey getId()
Gets the store identifier.


getName

public java.lang.String getName()
Gets the store name


setName

public void setName(java.lang.String name)
Sets the store name


getMaxIdleTime

public long getMaxIdleTime()
Returns the max idle time.


setMaxIdleTime

public void setMaxIdleTime(long maxIdleTime)
Sets the max idle time.


getAccessWindowTime

public long getAccessWindowTime()
Returns the length of time an idle object can remain in the store before being cleaned.


isAlwaysLoad

public boolean isAlwaysLoad()
Returns true if the object should always be loaded.


setAlwaysLoad

public void setAlwaysLoad(boolean isAlwaysLoad)
Set true if the object should always be loaded.


setAlwaysSave

public void setAlwaysSave(boolean isAlwaysSave)
Set true if the object should always be saved.


isAlwaysSave

public boolean isAlwaysSave()
Returns true if the object should always be saved.


getObjectManager

public ObjectManager getObjectManager()
Returns the object manager.


setObjectManager

public void setObjectManager(ObjectManager obj)
Sets the object manager.


getStoreManager

public StoreManager getStoreManager()
Returns the store manager.


createClusterObject

public ClusterObject createClusterObject(java.lang.String objectId,
                                         int primary,
                                         int secondary,
                                         int tertiary)
Returns a ClusterObject.