org.apache.cocoon.monitoring.cache.entry
Class CacheEntrysMonitorInitializer

java.lang.Object
  extended by org.apache.cocoon.monitoring.cache.entry.CacheEntrysMonitorInitializer

@ManagedResource(objectName="org.apache.cocoon:group=Cache,name=CacheEntrysRefresher")
public class CacheEntrysMonitorInitializer
extends Object


Constructor Summary
CacheEntrysMonitorInitializer(Map<String,Cache> caches, org.springframework.jmx.export.MBeanExporter exporter)
           
CacheEntrysMonitorInitializer(Map<String,Cache> caches, org.springframework.jmx.export.MBeanExporter exporter, long refreshTimeOut)
           
 
Method Summary
 void disableAutoRefresh()
          Stops refresh action if there is any refresh action already running.
 void enableAutoRefresh(long refreshTimeOut)
          Enables auto refresh action.
 boolean performRefresh()
          Forces refresh action on CachesEntrys monitor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheEntrysMonitorInitializer

public CacheEntrysMonitorInitializer(Map<String,Cache> caches,
                                     org.springframework.jmx.export.MBeanExporter exporter)

CacheEntrysMonitorInitializer

public CacheEntrysMonitorInitializer(Map<String,Cache> caches,
                                     org.springframework.jmx.export.MBeanExporter exporter,
                                     long refreshTimeOut)
Parameters:
caches -
exporter -
refreshTimeOut - if this value is greater than 0 then would be started an automatic refresh task
Method Detail

performRefresh

@ManagedOperation(description="Forces refresh action on CachesEntrys monitor.")
public final boolean performRefresh()
Forces refresh action on CachesEntrys monitor.

Returns:
true if every useless MBean was successfully unregistered, false after first failed MBean to unregister.

enableAutoRefresh

@ManagedOperation(description="Enables auto refresh action. If there is already refresh action started it would be  stopped and started new refresh action with defined refreshTimeOut parameter.")
@ManagedOperationParameters(value=)
public final void enableAutoRefresh(long refreshTimeOut)
Enables auto refresh action. If there is already refresh action started it would be stopped and started new refresh action with defined refreshTimeOut parameter.

Parameters:
refreshTimeOut - refresh operation time out in milliseconds

disableAutoRefresh

@ManagedOperation(description="Stops refresh action if there is any refresh action already running.")
public final void disableAutoRefresh()
Stops refresh action if there is any refresh action already running.



Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.