| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ehcache.management.registry.DefaultManagementRegistry
public class DefaultManagementRegistry
| Constructor Summary | |
|---|---|
DefaultManagementRegistry()
 | 
|
DefaultManagementRegistry(ManagementRegistryConfiguration configuration)
 | 
|
| Method Summary | |
|---|---|
 void | 
addManagementProvider(ManagementProvider<?> provider)
Adds to this registry a specific management provider for object types T  | 
 void | 
cacheAdded(java.lang.String alias,
           Cache<?,?> cache)
Fires just after the @{link Cache} was made Status.AVAILABLE, but wasn't yet made available
 to other threads by the CacheManager. | 
 void | 
cacheRemoved(java.lang.String alias,
             Cache<?,?> cache)
Fires just after the @{link Cache} was deregistered with the CacheManager, but wasn't yet made
 Status.UNINITIALIZED. | 
 java.util.Collection<org.terracotta.management.capabilities.Capability> | 
getCapabilities()
Get the management capabilities of the registered objects.  | 
 ManagementRegistryConfiguration | 
getConfiguration()
 | 
 org.terracotta.management.context.ContextContainer | 
getContext()
Get the management context required to make use of the registered objects' capabilities.  | 
 java.util.List<ManagementProvider<?>> | 
getManagementProvidersByCapability(java.lang.String capabilityName)
List all management providers installed for a specific capability across all cache managers  | 
 void | 
register(java.lang.Object managedObject)
Register an object in the management registry.  | 
 void | 
removeManagementProvider(ManagementProvider<?> provider)
Removes from this registry a specific management provider for object types T  | 
 void | 
start(ServiceProvider serviceProvider)
Start this service using the provided configuration and ServiceProvider. | 
 void | 
stateTransition(Status from,
                Status to)
Is notified when a state transition occurred.  | 
 void | 
stop()
Stops this service.  | 
 void | 
unregister(java.lang.Object managedObject)
Unregister an object from the management registry.  | 
 CapabilityManagement | 
withCapability(java.lang.String capabilityName)
Query based on a capability of this management registry, such as collecting statistics or calling some actions  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public DefaultManagementRegistry()
public DefaultManagementRegistry(ManagementRegistryConfiguration configuration)
| Method Detail | 
|---|
public void start(ServiceProvider serviceProvider)
ServiceServiceProvider.
 The goal of the service provider is to allow a service to use other services.
start in interface ServiceserviceProvider - the service provider.public void stop()
Service
stop in interface Service
public void cacheAdded(java.lang.String alias,
                       Cache<?,?> cache)
CacheManagerListenerStatus.AVAILABLE, but wasn't yet made available
 to other threads by the CacheManager. Nonetheless, no other thread can add another Cache
 instance by the same alias.
cacheAdded in interface CacheManagerListeneralias - the alias the Cache is being registered oncache - the actual Cache added
public void cacheRemoved(java.lang.String alias,
                         Cache<?,?> cache)
CacheManagerListenerCacheManager, but wasn't yet made
 Status.UNINITIALIZED. So that no other thread can get a handle to this Cache anymore,
 but the CacheManagerListener can still interact with it
cacheRemoved in interface CacheManagerListeneralias - the alias the Cache is being deregisteredcache - the actual Cache being removed
public void stateTransition(Status from,
                            Status to)
StateChangeListener
stateTransition in interface StateChangeListenerfrom - previous stateto - new statepublic ManagementRegistryConfiguration getConfiguration()
getConfiguration in interface ManagementRegistrypublic void addManagementProvider(ManagementProvider<?> provider)
ManagementRegistry
addManagementProvider in interface ManagementRegistryprovider - The management provider instancepublic void removeManagementProvider(ManagementProvider<?> provider)
ManagementRegistry
removeManagementProvider in interface ManagementRegistryprovider - The management provider instancepublic void register(java.lang.Object managedObject)
ManagementRegistry
register in interface ManagementRegistrymanagedObject - the managed object.public void unregister(java.lang.Object managedObject)
ManagementRegistry
unregister in interface ManagementRegistrymanagedObject - the managed object.public org.terracotta.management.context.ContextContainer getContext()
ManagementRegistry
getContext in interface ManagementRegistrypublic CapabilityManagement withCapability(java.lang.String capabilityName)
CapabilityManagementSupport
withCapability in interface CapabilityManagementSupportcapabilityName - The capability to work with
public java.util.Collection<org.terracotta.management.capabilities.Capability> getCapabilities()
ManagementRegistry
getCapabilities in interface ManagementRegistrypublic java.util.List<ManagementProvider<?>> getManagementProvidersByCapability(java.lang.String capabilityName)
CapabilityManagementSupport
getManagementProvidersByCapability in interface CapabilityManagementSupportcapabilityName - The capability name
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||