| java.lang.Object org.sakaiproject.memory.impl.BasicMemoryService
All known Subclasses: org.sakaiproject.memory.impl.MemoryServiceTest,
BasicMemoryService | abstract public class BasicMemoryService implements MemoryService,Observer(Code) | |
MemBasicMemoryServiceoryService is an implementation for the MemoryService which reports memory usage and runs a periodic garbage collection to keep memory available.
|
EVENT_RESET | final protected static String EVENT_RESET(Code) | | Event for the memory reset.
|
m_cacheLogging | protected boolean m_cacheLogging(Code) | | If true, output verbose caching info.
|
m_cachers | protected Set m_cachers(Code) | | Set of registered cachers.
|
destroy | public void destroy()(Code) | | Returns to uninitialized state.
|
doReset | protected void doReset()(Code) | | Do a reset of all cachers
|
getAvailableMemory | public long getAvailableMemory()(Code) | | Return the amount of available memory.
the amount of available memory. |
getCacheLogging | public boolean getCacheLogging()(Code) | | |
getStatus | public String getStatus()(Code) | | Compute a status report on all memory users
|
init | public void init()(Code) | | Final initialization, once all dependencies are set.
|
registerCacher | public void registerCacher(Cacher cacher)(Code) | | Register as a cache user
|
securityService | abstract protected SecurityService securityService()(Code) | | the SecurityService collaborator. |
setCacheLogging | public void setCacheLogging(boolean value)(Code) | | Configuration: cache verbose debug
|
unregisterCacher | public void unregisterCacher(Cacher cacher)(Code) | | Unregister as a cache user
|
update | public void update(Observable o, Object arg)(Code) | | This method is called whenever the observed object is changed. An application calls an Observable object's notifyObservers method to have all the object's observers notified of the change. default implementation is to
cause the courier service to deliver to the interface controlled by my controller. Extensions can override.
Parameters: o - the observable object. Parameters: arg - an argument passed to the notifyObservers method. |
|
|