public class DistCacheSystem extends AbstractResinSubSystem
Modifier and Type | Field and Description |
---|---|
static int |
START_PRIORITY |
START_PRIORITY_CACHE_SERVICE, START_PRIORITY_CLASSLOADER, START_PRIORITY_CLUSTER_SERVICE, START_PRIORITY_DATABASE_SYSTEM, START_PRIORITY_DEFAULT, START_PRIORITY_ENV_SYSTEM, START_PRIORITY_NETWORK_CLUSTER, STOP_PRIORITY_CLASSLOADER
Constructor and Description |
---|
DistCacheSystem(CacheStoreManager distCacheManager) |
Modifier and Type | Method and Description |
---|---|
static DistCacheSystem |
createAndAddService(CacheStoreManager distCacheManager) |
CacheConfig |
getCacheConfig(byte[] cacheHash) |
CacheManagerImpl |
getCacheManager() |
CacheManagerImpl |
getCacheManager(java.lang.String name) |
CacheManagerImpl |
getCacheManager(java.lang.String name,
java.lang.ClassLoader loader) |
static DistCacheSystem |
getCurrent() |
CacheStoreManager |
getDistCacheManager() |
static CacheImpl |
getMatchingCache(java.lang.String name) |
int |
getStartPriority()
Returns the start priority of the service, used to determine which
services to start first.
|
void |
start()
Starts the service.
|
void |
stop()
Stops the service.
|
java.lang.String |
toString() |
destroy, getStopPriority, isActive, preCreate
public static final int START_PRIORITY
public DistCacheSystem(CacheStoreManager distCacheManager)
public static DistCacheSystem createAndAddService(CacheStoreManager distCacheManager)
public static DistCacheSystem getCurrent()
public static CacheImpl getMatchingCache(java.lang.String name)
public CacheStoreManager getDistCacheManager()
public CacheManagerImpl getCacheManager()
public CacheManagerImpl getCacheManager(java.lang.String name)
public CacheManagerImpl getCacheManager(java.lang.String name, java.lang.ClassLoader loader)
public CacheConfig getCacheConfig(byte[] cacheHash)
cacheHash
- public int getStartPriority()
ResinSubSystem
getStartPriority
in interface ResinSubSystem
getStartPriority
in class AbstractResinSubSystem
public void start()
ResinSubSystem
start
in interface ResinSubSystem
start
in class AbstractResinSubSystem
public void stop()
ResinSubSystem
stop
in interface ResinSubSystem
stop
in class AbstractResinSubSystem
public java.lang.String toString()
toString
in class AbstractResinSubSystem