|
|||||||||
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 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 serviceProvider)
Service
ServiceProvider
.
The goal of the service provider is to allow a service to use other services.
start
in interface Service
serviceProvider
- the service provider.public void stop()
Service
stop
in interface Service
public void cacheAdded(java.lang.String alias, Cache<?,?> cache)
CacheManagerListener
Status.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 CacheManagerListener
alias
- the alias the Cache
is being registered oncache
- the actual Cache
addedpublic void cacheRemoved(java.lang.String alias, Cache<?,?> cache)
CacheManagerListener
CacheManager
, 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 CacheManagerListener
alias
- the alias the Cache
is being deregisteredcache
- the actual Cache
being removedpublic void stateTransition(Status from, Status to)
StateChangeListener
stateTransition
in interface StateChangeListener
from
- previous stateto
- new statepublic void startStatisticCollector()
startStatisticCollector
in interface org.terracotta.management.registry.collect.StatisticCollector
public 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 |