|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ehcache.management.ManagementServerLoader
public class ManagementServerLoader
ManagementServerLoader is a facility class to access the rest management interface One would use it form EhCache or QuartzScheduler to start or stop a new rest management interface or to simply register a cache or a scheduler to an already started management interface. It uses internally a ResourceClassLoader to load classes from a rest agent jar.
Constructor Summary | |
---|---|
ManagementServerLoader()
|
Method Summary | |
---|---|
static boolean |
isManagementAvailable()
Check if the ehcache-rest-agent jar is on the classpath |
static void |
register(CacheManager cacheManager,
String clientUUID,
ManagementRESTServiceConfiguration managementRESTServiceConfiguration)
Register a cacheManager to management rest server. |
static void |
registerMBean(String registeredMgmtSvrBind,
String clientUUID)
Register the ManagementServer with an MBean, if not already done |
static void |
unregister(String registeredMgmtSvrBind,
CacheManager cacheManager)
Unregister a cache manager from a management rest server If it is the last cache manager bound to this server, stops the server too. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ManagementServerLoader()
Method Detail |
---|
public static boolean isManagementAvailable()
public static void register(CacheManager cacheManager, String clientUUID, ManagementRESTServiceConfiguration managementRESTServiceConfiguration)
cacheManager
- the cacheManager to registerclientUUID
- the client UUIDmanagementRESTServiceConfiguration
- the management configurationpublic static void unregister(String registeredMgmtSvrBind, CacheManager cacheManager)
registeredMgmtSvrBind
- the bind identifying what to un-register fromcacheManager
- the cacheManager to un-registerpublic static void registerMBean(String registeredMgmtSvrBind, String clientUUID)
registeredMgmtSvrBind
- the bind identifying what to registerclientUUID
- the client UUID to use
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |