Package net.sf.ehcache.management
Interface ManagementServer
-
public interface ManagementServerInterface implemented by management servers.- Author:
- Ludovic Orban, brandony
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhasRegistered()Returns true if thisManagementServerhas any resources registered.voidinitialize(ManagementRESTServiceConfiguration configuration)Initialize method to call just after instantiating the classvoidregister(CacheManager managedResource)Puts the submitted resource under the purview of thisManagementServer.voidregisterClusterRemoteEndpoint(java.lang.String clientUUID)Register a cluster endpoint of a specific client to enable clustered monitoring.voidstart()Start the management servervoidstop()Stop the management servervoidunregister(CacheManager managedResource)Removes the submitted resource under the purview of thisManagementServer.voidunregisterClusterRemoteEndpoint(java.lang.String clientUUID)Unregister a previously registered cluster endpoint.
-
-
-
Method Detail
-
start
void start()
Start the management server
-
stop
void stop()
Stop the management server
-
register
void register(CacheManager managedResource)
Puts the submitted resource under the purview of thisManagementServer.- Parameters:
managedResource- the resource to be managed
-
unregister
void unregister(CacheManager managedResource)
Removes the submitted resource under the purview of thisManagementServer.- Parameters:
managedResource- the resource to be managed
-
hasRegistered
boolean hasRegistered()
Returns true if thisManagementServerhas any resources registered.- Returns:
- true if actively managing resources, false if not.
-
initialize
void initialize(ManagementRESTServiceConfiguration configuration)
Initialize method to call just after instantiating the class- Parameters:
configuration- the configuration of the rest agent
-
registerClusterRemoteEndpoint
void registerClusterRemoteEndpoint(java.lang.String clientUUID)
Register a cluster endpoint of a specific client to enable clustered monitoring.- Parameters:
clientUUID- the client UUID
-
unregisterClusterRemoteEndpoint
void unregisterClusterRemoteEndpoint(java.lang.String clientUUID)
Unregister a previously registered cluster endpoint.- Parameters:
clientUUID- the client UUID
-
-