|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.server.cluster.ClusterObject
public class ClusterObject
Data for the cluster's object.
| Method Summary | |
|---|---|
void |
accessImpl()
Called when the object is accessed to updateImpl the objectAccess time. |
long |
getAccessWindow()
Returns the objectAccess window. |
long |
getExpireInterval()
Sets the max objectAccess time. |
long |
getMaxIdleTime()
Returns the max idle time. |
HashKey |
getObjectId()
Returns the object id. |
java.lang.Object |
getObjectManagerKey()
Returns the object manager key |
int |
getPrimaryIndex()
Returns the primary index for the object |
ClusterServer |
getPrimaryServer()
Returns the primary server for the object |
int |
getSecondaryIndex()
Returns the secondary server for the object |
ClusterServer |
getSecondaryServer()
Returns the secondary server for the object |
Store |
getStore()
Returns the objectStore. |
HashKey |
getStoreId()
Returns the objectStore id. |
StoreManager |
getStoreManager()
Returns the objectStore manager. |
int |
getTertiaryIndex()
Returns the tertiary server for the object |
ClusterServer |
getTertiaryServer()
Returns the tertiary server for the object |
boolean |
isPrimary()
|
void |
objectAccess()
Called by the object when it is accessed to invalidate the access time. |
void |
objectCreate()
Called when the object is newly created. |
void |
objectInvalidated()
Marks that the object no longer contains valid data |
boolean |
objectLoad(java.lang.Object obj)
Called by the object to load itself from the cluster. |
void |
objectModified()
Signals that the object has been changed by the application, i.e. |
void |
objectRemove()
Called by the object to remove itself from the cluster. |
void |
objectStore(java.lang.Object obj)
Called by the object to save itself to the cluster. |
void |
removeImpl()
Removes the object from the cluster. |
void |
setAccessTime(long accessTime)
Sets the objectAccess time. |
void |
setExpireInterval(long expireInterval)
Sets the max objectAccess time. |
void |
setMaxIdleTime(long maxIdleTime)
Sets the max idle time. |
void |
setObjectManager(ObjectManager objectManager)
|
void |
setObjectManagerKey(java.lang.Object key)
Sets the object manager key |
java.lang.String |
toString()
|
void |
updateImpl()
Signals that the object has been updated externally, i.e. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public void setObjectManager(ObjectManager objectManager)
public boolean isPrimary()
public Store getStore()
public StoreManager getStoreManager()
public HashKey getStoreId()
public HashKey getObjectId()
public java.lang.Object getObjectManagerKey()
public void setObjectManagerKey(java.lang.Object key)
public void setAccessTime(long accessTime)
public long getExpireInterval()
public void setExpireInterval(long expireInterval)
public long getMaxIdleTime()
public void setMaxIdleTime(long maxIdleTime)
public long getAccessWindow()
public int getPrimaryIndex()
public int getSecondaryIndex()
public int getTertiaryIndex()
public ClusterServer getPrimaryServer()
public ClusterServer getSecondaryServer()
public ClusterServer getTertiaryServer()
public void objectAccess()
public void objectCreate()
public void objectInvalidated()
public boolean objectLoad(java.lang.Object obj)
public void objectModified()
public void objectRemove()
public void objectStore(java.lang.Object obj)
throws java.io.IOException
java.io.IOExceptionpublic void updateImpl()
public void accessImpl()
public void removeImpl()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||