|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.server.cluster.StoreManager
com.caucho.server.cluster.AbstractClusterStoreManager
public abstract class AbstractClusterStoreManager
Base class for distributed stores.
| Field Summary |
|---|
| Fields inherited from class com.caucho.server.cluster.StoreManager |
|---|
_clusterObjects, _idleCheckInterval, _isAlwaysLoad, _isAlwaysSave, _loadCount, _loadFailCount, _maxIdleTime, _saveCount, _saveFailCount, _selfIndex, _storeMap |
| Constructor Summary | |
|---|---|
AbstractClusterStoreManager()
|
|
| Method Summary | |
|---|---|
int |
getPrimaryIndex(java.lang.String id,
int offset)
Returns the owner index for the id. |
ClusterServer |
getPrimaryServer(java.lang.String id,
int offset)
Returns the primary server for the id. |
int |
getSecondaryIndex(java.lang.String id,
int offset)
Returns the secondary index for the id. |
ClusterServer |
getSecondaryServer(java.lang.String id,
int offset)
Returns the secondary server for the id. |
int |
getTertiaryIndex(java.lang.String id,
int offset)
Returns the tertiary index for the id. |
ClusterServer |
getTertiaryServer(java.lang.String id,
int offset)
Returns the tertiary server for the id. |
protected void |
ping(ServerPool server)
Updates the cached object value on the target server. |
void |
updateOwner(ClusterObject obj)
Updates the owner object. |
| Methods inherited from class com.caucho.server.cluster.StoreManager |
|---|
access, access, accessImpl, accessImpl, classLoaderDestroy, classLoaderInit, clearOldObjects, create, createStore, destroy, environmentBind, environmentConfigure, environmentStart, environmentStop, getAccessWindowTime, getAdmin, getCluster, getIdleCheckTime, getLoadCount, getLoadFailCount, getMaxIdleTime, getObjectCount, getOwningServer, getSaveCount, getSaveFailCount, getSelfIndex, getServerList, getStore, handleAlarm, init, invalidate, isAlwaysLoad, isAlwaysSave, isPrimary, load, remove, remove, removeStore, setAlwaysLoad, setAlwaysSave, setCluster, setExpireInterval, setMaxIdleTime, start, startUpdate, store, toString, updateIdleCheckInterval |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractClusterStoreManager()
| Method Detail |
|---|
public void updateOwner(ClusterObject obj)
throws java.lang.Exception
updateOwner in class StoreManageruniqueId - the identifier of the storage group
java.lang.Exception
public int getPrimaryIndex(java.lang.String id,
int offset)
getPrimaryIndex in class StoreManager
public ClusterServer getPrimaryServer(java.lang.String id,
int offset)
public int getSecondaryIndex(java.lang.String id,
int offset)
getSecondaryIndex in class StoreManager
public ClusterServer getSecondaryServer(java.lang.String id,
int offset)
public int getTertiaryIndex(java.lang.String id,
int offset)
getTertiaryIndex in class StoreManager
public ClusterServer getTertiaryServer(java.lang.String id,
int offset)
protected void ping(ServerPool server)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||