It uses internally a ResourceClassLoader to load classes from a rest agent jar.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| private static final Class | |
| pack-priv static final Map | |
| private static final String | |
| private static final ClassLoader |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | Returns: true if ehcache-rest-agent is available, false otherwise.Check if the ehcache-rest-agent jar is on the classpath |
| private static Object | Returns: aManagementServer instanceThis method instantiates the ManagementServer implementation found in META-INF/services/net.sf.ehcache.management.ManagementServer |
| public static void | register(CacheManager
the cacheManager to register cacheManager, String the client UUID clientUUID, ManagementRESTServiceConfiguration the management configuration managementRESTServiceConfiguration)Register a cacheManager to management rest server. |
| public static void | unregister(String
the bind identifying what to un-register from registeredMgmtSvrBind, CacheManager the cacheManager to un-register 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. |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| MANAGEMENT_SERVER_CLASS | back to summary |
|---|---|
| private static final Class<?> MANAGEMENT_SERVER_CLASS | |
| MGMT_SVR_BY_BIND | back to summary |
|---|---|
| pack-priv static final Map<String, ManagementServerLoader. | |
| PRIVATE_CLASSPATH | back to summary |
|---|---|
| private static final String PRIVATE_CLASSPATH | |
| RESOURCE_CLASS_LOADER | back to summary |
|---|---|
| private static final ClassLoader RESOURCE_CLASS_LOADER | |
| ManagementServerLoader | back to summary |
|---|---|
| public ManagementServerLoader() | |
| isManagementAvailable | back to summary |
|---|---|
| public static boolean isManagementAvailable() Check if the ehcache-rest-agent jar is on the classpath
| |
| loadOSorEEManagementServer | back to summary |
|---|---|
| private static Object loadOSorEEManagementServer() throws Exception This method instantiates the ManagementServer implementation found in META-INF/services/net.sf.ehcache.management.ManagementServer
| |
| register | back to summary |
|---|---|
| public static void register(CacheManager cacheManager, String clientUUID, ManagementRESTServiceConfiguration managementRESTServiceConfiguration) Register a cacheManager to management rest server. If the server does not exist, starts it.
| |
| unregister | back to summary |
|---|---|
| public 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.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private Object |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| pack-priv boolean | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void |
| clientUUIDs | back to summary |
|---|---|
| private final Map<String, String> clientUUIDs | |
| managementServer | back to summary |
|---|---|
| private Object managementServer | |
| ManagementServerHolder | back to summary |
|---|---|
| pack-priv ManagementServerHolder(Object managementServer) | |
| getManagementServer | back to summary |
|---|---|
| public Object getManagementServer() | |
| hasRegistered | back to summary |
|---|---|
| pack-priv boolean hasRegistered() throws Exception | |
| register | back to summary |
|---|---|
| pack-priv void register(CacheManager cacheManager, String clientUUID) throws Exception | |
| start | back to summary |
|---|---|
| pack-priv void start(ManagementRESTServiceConfiguration managementRESTServiceConfiguration) throws Exception | |
| stop | back to summary |
|---|---|
| pack-priv void stop(String bind) throws Exception | |
| unregister | back to summary |
|---|---|
| pack-priv void unregister(CacheManager cacheManager) throws Exception | |