Method Summary |
|
public void | access(String uniqueId) Updates the object's access time. |
public void | access(Store store, String id) Updates the object's access time. |
abstract public void | accessImpl(String uniqueId) Updates the object's access time in the persistent store. |
public void | classLoaderDestroy(DynamicClassLoader loader) Handles the case where the environment loader is dropped. |
public void | classLoaderInit(DynamicClassLoader loader) Handles the case where the environment is activated. |
public void | clearOldObjects() Cleans old objects. |
ClusterObject | create(Store store, String id) Creates the cluster object. |
ClusterObject | createClusterObject(Store store, String id) Returns the cluster object. |
public Store | createStore(String storeId, ObjectManager objectManager) Creates a Store. |
static int | decode(int code) |
public void | destroy() Called at end of life. |
public void | environmentConfig(EnvironmentClassLoader loader) Handles the case where the environment is activated. |
public void | environmentStart(EnvironmentClassLoader loader) Handles the case where the environment is activated. |
public void | environmentStop(EnvironmentClassLoader loader) |
public long | getAccessWindowTime() Returns the length of time an idle object can remain in the store before
being cleaned. |
public PersistentStoreMXBean | getAdmin() Returns the admin. |
public Cluster | getCluster() Gets the cluster. |
ClusterObject | getClusterObject(Store store, String id) Returns the cluster object. |
ClusterObject | getClusterObject(String storeId, String id) Returns the cluster object. |
ClusterObject | getClusterObject(String uniqueId) Returns the cluster object. |
public long | getIdleCheckTime() Sets the idle check interval for the alarm. |
public long | getLoadCount() Returns the total objects loaded. |
public long | getLoadFailCount() Returns the objects which failed to load. |
public long | getMaxIdleTime() Returns the length of time an idle object can remain in the store before
being cleaned. |
public long | getObjectCount() |
protected ServerConnector | getOwningServer(String objectId) |
public int | getPrimaryIndex(String id, int offset) Returns the owning index. |
public long | getSaveCount() Returns the total objects saved. |
public long | getSaveFailCount() Returns the objects which failed to save. |
public int | getSecondaryIndex(String id, int offset) Returns the backup index. |
protected int | getSelfIndex() Returns the self servers. |
protected ServerConnector[] | getServerList() Returns the list of cluster servers. |
public Store | getStore(String storeId) Creates a ClusterObjectManager. |
public int | getTertiaryIndex(String id, int offset) Returns the backup index. |
public void | handleAlarm(Alarm alarm) Handles a callback from an alarm, scheduling the timeout. |
public boolean | init() Called after any factory settings. |
public boolean | isAlwaysLoad() Set true if the store should always try to load the object. |
public boolean | isAlwaysSave() Set true if the store should always try to store the object. |
protected boolean | isPrimary(String id) Returns true if this server is a primary for the given object id. |
abstract protected boolean | load(ClusterObject clusterObject, Object obj) Loads object access time. |
public void | remove(ClusterObject obj) When the object is no longer valid, remove it from the backing store. |
public void | remove(Store store, String objectId) When the object is no longer valid, remove it from the backing store. |
ClusterObject | removeClusterObject(String storeId, String id) Returns the cluster object. |
public Store | removeStore(String storeId) Removes a Store. |
public void | setAlwaysLoad(boolean alwaysLoad) Set true if the store should always try to load the object. |
public void | setAlwaysSave(boolean alwaysSave) Set true if the store should always try to store the object. |
public void | setCluster(Cluster cluster) Sets the cluster. |
public void | setExpireInterval(String uniqueId, long expires) Sets the timef for the expires interval.
Parameters: uniqueId - the identifier of the object. |
public void | setMaxIdleTime(Period maxIdleTime) Sets the length of time an idle object can remain in the store before
being cleaned. |
public boolean | start() Called to start the store. |
public void | store(Store store, String id, Object obj) Saves the object to the cluster. |
abstract protected void | store(ClusterObject clusterObject, TempStream tempStream, long crc) Save the object to the store. |
public String | toString() |
public void | update(String storeId, String objectId) When the object is no longer valid, remove it from the backing store. |
public void | updateIdleCheckInterval(long idleCheckInterval) Sets the idle check interval for the alarm. |
public void | updateOwner(String objectId, String uniqueId) Updates the owner object. |