public class ThreadDetail
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
UNKNOWN_AGENT_CLASSNAME |
static java.lang.String |
UNKNOWN_THREAD_CLASSNAME |
Constructor and Description |
---|
ThreadDetail()
Instantiates a new thread detail.
|
ThreadDetail(java.lang.String threadName,
long systemTime,
long userTime)
Instantiates a new thread detail.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClassName()
Gets the class name.
|
double |
getPredictiveMetric()
Gets the predictive metric.
|
double |
getRealMetric()
Gets the real metric.
|
long |
getSystemTime()
Gets the system cpu time.
|
java.lang.String |
getThreadName()
Gets the thread name.
|
long |
getUserTime()
Gets the user time.
|
boolean |
isAgent()
Checks if is agent.
|
void |
setClassName(java.lang.String className)
Sets the class name.
|
void |
setIsAgent(boolean isAgent)
Sets the checks if is agent.
|
void |
setPredictiveMetric(double predictiveMetric)
Sets the predictive metric.
|
void |
setRealMetric(double realMetric)
Sets the real metric.
|
void |
setSystemTime(long systemTime)
Sets the system cpu time.
|
void |
setThreadName(java.lang.String threadName)
Sets the thread name.
|
void |
setUserTime(long userTime)
Sets the user time.
|
java.lang.String |
toString() |
public static final java.lang.String UNKNOWN_THREAD_CLASSNAME
public static final java.lang.String UNKNOWN_AGENT_CLASSNAME
public ThreadDetail()
public ThreadDetail(java.lang.String threadName, long systemTime, long userTime)
threadName
- the thread namesystemTime
- the system timeuserTime
- the user timepublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getThreadName()
public void setThreadName(java.lang.String threadName)
threadName
- the new thread namepublic java.lang.String getClassName()
public void setClassName(java.lang.String className)
className
- the new class namepublic boolean isAgent()
public void setIsAgent(boolean isAgent)
isAgent
- the new checks if is agentpublic long getSystemTime()
public void setSystemTime(long systemTime)
systemTime
- the new cpu timepublic long getUserTime()
public void setUserTime(long userTime)
userTime
- the new user timepublic double getPredictiveMetric()
public double getRealMetric()
public void setPredictiveMetric(double predictiveMetric)
predictiveMetric
- the predictiveMetric to setpublic void setRealMetric(double realMetric)
realMetric
- the realMetric to set