Class OldLockssRepositoryImpl

java.lang.Object
org.lockss.app.BaseLockssManager
org.lockss.app.BaseLockssDaemonManager
org.lockss.repository.OldLockssRepositoryImpl
All Implemented Interfaces:
org.lockss.app.LockssAuManager, org.lockss.app.LockssManager, OldLockssRepository

public class OldLockssRepositoryImpl extends org.lockss.app.BaseLockssDaemonManager implements OldLockssRepository
LockssRepository is used to organize the urls being cached. It keeps a memory cache of the most recently used nodes as a least-recently-used map, and also caches weak references to the instances as they're doled out. This ensures that two instances of the same node are never created, as the weak references only disappear when the object is finalized (they go to null when the last hard reference is gone, then are removed from the cache on finalize()).
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.lockss.app.BaseLockssManager

    org.lockss.app.BaseLockssManager.MapMessageListener

    Nested classes/interfaces inherited from interface org.lockss.app.LockssAuManager

    org.lockss.app.LockssAuManager.Factory

    Nested classes/interfaces inherited from interface org.lockss.repository.OldLockssRepository

    OldLockssRepository.RepositoryStateException
  • Field Summary

    Fields inherited from class org.lockss.app.BaseLockssManager

    isInited, isStarted, jmsConsumer, jmsProducer, shuttingDown, startedSem, theApp
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates a new RepositoryNode for the purposes of writing a new leaf to the cache.
    void
    Deactivate the node.
    void
    Delete the node.
    Returns a RepositoryNode which represents the url in question.
    void
    Traverses the node hierarchy and tests internal state consistency for each node.
    void
    setAuConfig(org.lockss.config.Configuration auConfig)
     

    Methods inherited from class org.lockss.app.BaseLockssDaemonManager

    getDaemon, initService, initService, isDaemonInited

    Methods inherited from class org.lockss.app.BaseLockssManager

    getAlertManager, getApp, getClassName, getConfigManager, getDefaultTempRootDirectory, getJMSManager, getManagerByType, isAppInited, isInited, isRepoReady, isShuttingDown, isStarted, receiveMessage, resetConfig, serviceStarted, setUpJmsReceive, setUpJmsReceive, setUpJmsSend, startService, stopJms, stopService, waitForRepo, waitForRepo, waitStarted, waitStarted

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.lockss.app.LockssManager

    getApp, initService, isInited, isStarted, serviceStarted, startService, stopService