IBM WebSphere Application ServerTM
Release 8

com.ibm.wsspi.cache
Class ESIStats

java.lang.Object
  extended by com.ibm.wsspi.cache.ESIStats

public class ESIStats
extends java.lang.Object

This is the mechanism to provide Edge cache statistics to the CacheMonitor.


Nested Class Summary
 class ESIStats.ESIServerStats
          An ESIServerStats is a logical grouping of ESIProcessorStats objects, grouped by hostname.
 
Constructor Summary
ESIStats()
           
 
Method Summary
 void clear()
          Release the references to the ESIServerStats objects.
 void clearCaches()
          Clear the caches in all of the ESI processors.
 void gather()
          Gather a snap shot of the statistics from all of the ESI processors.
 boolean getGatherEntries()
          Return the current setting for gathering entries as part of the statistics.
 ESIStats.ESIServerStats[] getServerStats()
          Return all ESIServerStats objects gathered.
 void resetCounters()
          Resets the counters in all of the ESI processors.
 void setGatherEntries(boolean gatherEntries)
          Set the current setting for gathering entries as part of the statistics.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ESIStats

public ESIStats()
Method Detail

getGatherEntries

public boolean getGatherEntries()
Return the current setting for gathering entries as part of the statistics.

Returns:
gather entry setting

setGatherEntries

public void setGatherEntries(boolean gatherEntries)
Set the current setting for gathering entries as part of the statistics.

Parameters:
gatherEntries - gather entry setting

gather

public void gather()
            throws java.io.IOException
Gather a snap shot of the statistics from all of the ESI processors. NOTE: This sends a message to all of the ESI processors currently running and gathers the statistics.

Throws:
java.io.IOException

getServerStats

public ESIStats.ESIServerStats[] getServerStats()
Return all ESIServerStats objects gathered.

Returns:
The ESIServerStats objects resulting from calling gather().

clear

public void clear()
Release the references to the ESIServerStats objects. NOTE: No message is sent to the remote ESI processors.


resetCounters

public void resetCounters()
                   throws java.io.IOException
Resets the counters in all of the ESI processors. NOTE: This sends a "reset counters" message to all of the ESI processors currently running.

Throws:
java.io.IOException

clearCaches

public void clearCaches()
                 throws java.io.IOException
Clear the caches in all of the ESI processors. NOTE: This sends a "clear cache" message to all of the ESI processors currently running.

Throws:
java.io.IOException

IBM WebSphere Application ServerTM
Release 8