com.caucho.server.admin
Class JniCpuStat

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

public class JniCpuStat
extends java.lang.Object

Statistics gathering attribute. Each time period, the attribute is polled.


Nested Class Summary
 class JniCpuStat.ContextSwitchProbe
           
 class JniCpuStat.CpuActiveProbe
           
 class JniCpuStat.CpuIdleProbe
           
 class JniCpuStat.CpuSystemProbe
           
 class JniCpuStat.CpuUserProbe
           
 
Method Summary
static JniCpuStat create()
           
 AbstractMeter createActiveProbe(java.lang.String name, int cpu, double scale)
           
 AbstractMeter createContextSwitchProbe(java.lang.String name)
           
 AbstractMeter createIdleProbe(java.lang.String name, int cpu, double scale)
           
 AbstractMeter createSystemProbe(java.lang.String name, int cpu, double scale)
           
 AbstractMeter createUserProbe(java.lang.String name, int cpu, double scale)
           
 int getCpuMax()
           
static boolean isEnabled()
           
 double sampleContextSwitch()
           
 double sampleCpuActive(int cpu)
           
 double sampleCpuIdle(int cpu)
           
 double sampleCpuSystem(int cpu)
           
 double sampleCpuUser(int cpu)
           
 void setSamplePeriod(long period)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static JniCpuStat create()

isEnabled

public static boolean isEnabled()

getCpuMax

public int getCpuMax()

setSamplePeriod

public void setSamplePeriod(long period)

createActiveProbe

public AbstractMeter createActiveProbe(java.lang.String name,
                                       int cpu,
                                       double scale)

createUserProbe

public AbstractMeter createUserProbe(java.lang.String name,
                                     int cpu,
                                     double scale)

createSystemProbe

public AbstractMeter createSystemProbe(java.lang.String name,
                                       int cpu,
                                       double scale)

createIdleProbe

public AbstractMeter createIdleProbe(java.lang.String name,
                                     int cpu,
                                     double scale)

createContextSwitchProbe

public AbstractMeter createContextSwitchProbe(java.lang.String name)

sampleCpuActive

public double sampleCpuActive(int cpu)

sampleCpuIdle

public double sampleCpuIdle(int cpu)

sampleCpuUser

public double sampleCpuUser(int cpu)

sampleCpuSystem

public double sampleCpuSystem(int cpu)

sampleContextSwitch

public double sampleContextSwitch()