org.datamanager.kernel
Class MemoryManager

java.lang.Object
  |
  +--org.datamanager.kernel.MemoryManager

public class MemoryManager
extends Object


Field Summary
protected  KernelMemory kernelMemory
           
 
Constructor Summary
MemoryManager()
           
 
Method Summary
protected  Entity findEntity(org.datamanager.kernel.Identifier identifier)
          Finds the Entity associated with the given Identifier.
protected  org.datamanager.kernel.Identifier findFromStorage(Entity entity)
           
protected  Entity findFromStorage(org.datamanager.kernel.Identifier identifier)
           
protected  org.datamanager.kernel.Identifier findIdentifier(Entity entity)
          Finds the Identifier for the given Entity.
protected  org.datamanager.kernel.EntityProxy findProxy(org.datamanager.kernel.Identifier identifier)
          Finds the EntityProxy for the given Identifier.
protected  void loadEntityToMemory(org.datamanager.kernel.Identifier identifier, org.datamanager.kernel.VerySimpleEntity entity, org.datamanager.kernel.EntityProxy entityProxy)
          Loads the given triple into the KernelMemory.
protected  void persistEntity(org.datamanager.kernel.Identifier identifier, Entity entity)
           
protected  void readPersistedEntity()
           
protected  void removeEntityFromMemory()
          Removes the oldest entity from the KernelMemory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

kernelMemory

protected KernelMemory kernelMemory
Constructor Detail

MemoryManager

public MemoryManager()
Method Detail

findIdentifier

protected org.datamanager.kernel.Identifier findIdentifier(Entity entity)
                                                    throws NoSuchIdentifierException
Finds the Identifier for the given Entity.

Parameters:
entity - The Entity for which to find an Identifier.
Returns:
The Indentifier for the specified Entity.
NoSuchIdentifierException

findProxy

protected org.datamanager.kernel.EntityProxy findProxy(org.datamanager.kernel.Identifier identifier)
                                                throws NoSuchEntityException
Finds the EntityProxy for the given Identifier.

Parameters:
identifier - The Identitifer for which to find an EntityProxy.
Returns:
The EntityProxy associated with the given Identifier.
NoSuchEntityException

findEntity

protected Entity findEntity(org.datamanager.kernel.Identifier identifier)
                     throws NoSuchEntityException
Finds the Entity associated with the given Identifier.

Parameters:
identifier - The Identifier for which to find an Entity.
Returns:
The Entity associated with the Identifier.
NoSuchEntityException

loadEntityToMemory

protected void loadEntityToMemory(org.datamanager.kernel.Identifier identifier,
                                  org.datamanager.kernel.VerySimpleEntity entity,
                                  org.datamanager.kernel.EntityProxy entityProxy)
                           throws Exception
Loads the given triple into the KernelMemory.

Exception

removeEntityFromMemory

protected void removeEntityFromMemory()
                               throws DataManagerException
Removes the oldest entity from the KernelMemory.

DataManagerException

persistEntity

protected void persistEntity(org.datamanager.kernel.Identifier identifier,
                             Entity entity)
                      throws DataManagerException
DataManagerException

readPersistedEntity

protected void readPersistedEntity()

findFromStorage

protected Entity findFromStorage(org.datamanager.kernel.Identifier identifier)

findFromStorage

protected org.datamanager.kernel.Identifier findFromStorage(Entity entity)


See the Helium Website