com.caucho.server.admin
Class StatService

java.lang.Object
  extended by com.caucho.server.admin.StatService

public class StatService
extends java.lang.Object

statistics


Nested Class Summary
 class StatService.Admin
           
static class StatService.StatItem
           
 
Method Summary
 void addStatItem(StatService.StatItem item)
          Adds a stat item
 long getSamplePeriod()
          Sets the statistics threshold
 void sample()
           
 void setCpuLoadExitThreshold(double threshold)
          Sets the cpu load threshold to exit the server
 void setCpuLoadLogInfoThreshold(double threshold)
          Sets the cpu load threshold to generate an info log entry
 void setCpuLoadLogWarningThreshold(double threshold)
          Sets the cpu load threshold to generate a warning log entry
 void setCpuLoadThreadDumpThreshold(double threshold)
          Sets the cpu load threshold to generate a thread dump
 void setSamplePeriod(Period period)
          Sets the statistics threshold
 void setThreadDumpInterval(Period period)
          Sets the minimum time between thread dumps
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

setCpuLoadLogInfoThreshold

public void setCpuLoadLogInfoThreshold(double threshold)
Sets the cpu load threshold to generate an info log entry


setCpuLoadLogWarningThreshold

public void setCpuLoadLogWarningThreshold(double threshold)
Sets the cpu load threshold to generate a warning log entry


setCpuLoadThreadDumpThreshold

public void setCpuLoadThreadDumpThreshold(double threshold)
Sets the cpu load threshold to generate a thread dump


setCpuLoadExitThreshold

public void setCpuLoadExitThreshold(double threshold)
Sets the cpu load threshold to exit the server


setSamplePeriod

public void setSamplePeriod(Period period)
Sets the statistics threshold


getSamplePeriod

public long getSamplePeriod()
Sets the statistics threshold


setThreadDumpInterval

public void setThreadDumpInterval(Period period)
Sets the minimum time between thread dumps


addStatItem

public void addStatItem(StatService.StatItem item)
Adds a stat item


sample

public void sample()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object