@NotStorableClass public class ObjectStateMgr extends Object
ObjectPersistenceState
of objects in memory, doing this
accessing ObjectStateMap
Constructor and Description |
---|
ObjectStateMgr() |
public void setTrackingOfAccessedObjectEnabled(boolean trackingOfAccessedObjectEnabled, int maintainedInMemoryQuota)
trackingOfAccessedObjectEnabled
- true if track object accessmaintainedInMemoryQuota
- public void setExclusiveAccessSession(boolean exclusiveAccessSession)
public void setMaintainedInMemoryQuota(int maintainedInMemoryQuota)
public ObjectAndPersistInfo getObjectAndPersistInfoByIdentifier(DataRecordIdentifier identifier)
identifier
- data record identifierpublic ObjectAndPersistInfo getObjectAndPersistInfoOfObject(Object object) throws ObjectIOException
ObjectIOException
public ObjectAndPersistInfo createObjectAndPersistInfoOfObject(Object object, boolean proxyInstance, ClassInfo objectClassInfo) throws ObjectIOException
ObjectIOException
public ObjectAndPersistInfo createSubstitutedObjectAndPersistInfoOfObject(Object object, ClassInfo objectClassInfo, ObjectAndPersistInfo substituteObjectAndPersistInfo) throws ObjectIOException
ObjectIOException
public void clear() throws ObjectIOException
ObjectIOException
public void weakReferenceOnObject() throws ObjectIOException
ObjectIOException
public boolean objectHasPersistenceState(ObjectAndPersistInfo objectAndPersistInfo)
objectAndPersistInfo
- object info which for persistence state looking forpublic void clearObjectAndPersistInfoByDataRecordIdentifier(DataRecordIdentifier dataRecordIdentifier)
public void dataRecordIdentifierAssociatedToObjectSetted(ObjectAndPersistInfo objectAndPersistInfo) throws ObjectIOException
objectAndPersistInfo
- ObjectIOException
- try to change object associated data record identifierpublic int getNnumberOfObjectState()
public int getNumberOfWeakReference()
public int getNumberOfReferenced()
public void objectIsAccessed(ObjectAndPersistInfo proxyObjectAndPersistInfo)
public Collection<ObjectAndPersistInfo> getObjectHavingStateSet()
public Set<ObjectAndPersistInfo> mostAccessedObject()
public void closeObjectState()
@Fortest public ObjectStateMap getObjectStateMap()
@Fortest public ObjectAndPersistInfo getObjectAndPersistInfoOfObjectFromQueue(Object object)
@Fortest public List<ObjectAndPersistInfo> getObjectAndPersistInfoOfObjectFromQueue()
@Fortest public void listenStateMapClean(IObjectStateMapCLeanListener listener)
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.