com.netflix.servo.util
Class ThreadCpuStats.CpuUsage

java.lang.Object
  extended by com.netflix.servo.util.ThreadCpuStats.CpuUsage
Enclosing class:
ThreadCpuStats

public static final class ThreadCpuStats.CpuUsage
extends java.lang.Object

Keeps track of the cpu usage for a single thread.


Method Summary
 long getFifteenMinute()
          Returns the usage for the last fifteen minutes.
 long getFiveMinute()
          Returns the usage for the last five minutes.
 long getLastUpdateTime()
          Last time the stats for this object were updated.
 java.lang.String getName()
          Name of the thread.
 long getOneMinute()
          Returns the usage for the last one minute.
 long getOverall()
          Returns the overall usage for the lifetime of the thread.
 long getThreadId()
          The thread id that is being tracked.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getThreadId

public long getThreadId()
The thread id that is being tracked. If the id is less than 0 it is for the jvm process rather than a single thread.


getName

public java.lang.String getName()
Name of the thread.


getLastUpdateTime

public long getLastUpdateTime()
Last time the stats for this object were updated.


getOverall

public long getOverall()
Returns the overall usage for the lifetime of the thread.


getOneMinute

public long getOneMinute()
Returns the usage for the last one minute.


getFiveMinute

public long getFiveMinute()
Returns the usage for the last five minutes.


getFifteenMinute

public long getFifteenMinute()
Returns the usage for the last fifteen minutes.