|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.eclipse.jetty.monitor.thread.ThreadMonitorInfo
public class ThreadMonitorInfo
| 构造方法摘要 | |
|---|---|
ThreadMonitorInfo(Thread thread)
Instantiates a new thread monitor info. |
|
| 方法摘要 | |
|---|---|
long |
getCpuTime()
|
float |
getCpuUtilization()
Gets the CPU utilization. |
long |
getSampleTime()
|
StackTraceElement[] |
getStackTrace()
Gets the stack trace. |
long |
getThreadId()
|
String |
getThreadName()
Gets the thread name. |
String |
getThreadState()
Gets the thread state. |
int |
getTraceCount()
Gets the trace count. |
boolean |
isSpinning()
Checks if is spinning. |
void |
setCpuTime(long ns)
Set the CPU time. |
void |
setSampleTime(long ns)
Sets the sample time. |
void |
setSpinning(boolean value)
Sets the spinning flag. |
void |
setStackTrace(StackTraceElement[] stackTrace)
Sets the stack trace. |
void |
setTraceCount(int traceCount)
Sets the trace count. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public ThreadMonitorInfo(Thread thread)
thread - the thread this object is created for| 方法详细信息 |
|---|
public long getThreadId()
public String getThreadName()
public String getThreadState()
public StackTraceElement[] getStackTrace()
public void setStackTrace(StackTraceElement[] stackTrace)
stackTrace - the new stack tracepublic boolean isSpinning()
public void setSpinning(boolean value)
value - the new valuepublic void setTraceCount(int traceCount)
traceCount - the new trace countpublic int getTraceCount()
public long getCpuTime()
public void setCpuTime(long ns)
ns - new CPU timepublic long getSampleTime()
public void setSampleTime(long ns)
ns - the time of samplepublic float getCpuUtilization()
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||