com.caucho.server.distcache
Class DistCacheSystem
java.lang.Object
com.caucho.env.service.AbstractResinSubSystem
com.caucho.server.distcache.DistCacheSystem
- All Implemented Interfaces:
- ResinSubSystem
public class DistCacheSystem
- extends AbstractResinSubSystem
The local cache repository.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
START_PRIORITY
public static final int START_PRIORITY
- See Also:
- Constant Field Values
DistCacheSystem
public DistCacheSystem(CacheStoreManager distCacheManager)
createAndAddService
public static DistCacheSystem createAndAddService(CacheStoreManager distCacheManager)
getCurrent
public static DistCacheSystem getCurrent()
getMatchingCache
public static CacheImpl getMatchingCache(java.lang.String name)
getDistCacheManager
public CacheStoreManager getDistCacheManager()
getCacheManager
public CacheManagerImpl getCacheManager()
getCacheManager
public CacheManagerImpl getCacheManager(java.lang.String name)
getCacheManager
public CacheManagerImpl getCacheManager(java.lang.String name,
java.lang.ClassLoader loader)
getCacheConfig
public CacheConfig getCacheConfig(byte[] cacheHash)
- Parameters:
cacheHash
-
- Returns:
getStartPriority
public int getStartPriority()
- Description copied from interface:
ResinSubSystem
- Returns the start priority of the service, used to determine which
services to start first.
- Specified by:
getStartPriority
in interface ResinSubSystem
- Overrides:
getStartPriority
in class AbstractResinSubSystem
start
public void start()
- Description copied from interface:
ResinSubSystem
- Starts the service.
- Specified by:
start
in interface ResinSubSystem
- Overrides:
start
in class AbstractResinSubSystem
stop
public void stop()
- Description copied from interface:
ResinSubSystem
- Stops the service.
- Specified by:
stop
in interface ResinSubSystem
- Overrides:
stop
in class AbstractResinSubSystem
toString
public java.lang.String toString()
- Overrides:
toString
in class AbstractResinSubSystem