|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ehcache.management.registry.DefaultCollectorService
public class DefaultCollectorService
| Constructor Summary | |
|---|---|
DefaultCollectorService(org.terracotta.management.registry.MessageConsumer messageConsumer)
|
|
| Method Summary | |
|---|---|
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. |
void |
start(ServiceProvider<Service> serviceProvider)
Start this service using the provided configuration and ServiceProvider. |
void |
startStatisticCollector()
|
void |
stateTransition(Status from,
Status to)
Is notified when a state transition occurred. |
void |
stop()
Stops this service. |
void |
stopStatisticCollector()
|
void |
updateCollectedStatistics(java.lang.String capabilityName,
java.util.Collection<java.lang.String> statisticNames)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultCollectorService(org.terracotta.management.registry.MessageConsumer messageConsumer)
| Method Detail |
|---|
public void start(ServiceProvider<Service> 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 void startStatisticCollector()
startStatisticCollector in interface org.terracotta.management.registry.collect.StatisticCollectorpublic void stopStatisticCollector()
stopStatisticCollector in interface org.terracotta.management.registry.collect.StatisticCollector
public void updateCollectedStatistics(java.lang.String capabilityName,
java.util.Collection<java.lang.String> statisticNames)
updateCollectedStatistics in interface org.terracotta.management.registry.collect.StatisticCollector
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||