Package org.jboss.byteman.sample.helper
Class ThreadMonitored
- java.lang.Object
-
- org.jboss.byteman.sample.helper.ThreadMonitored
-
- All Implemented Interfaces:
Serializable
public class ThreadMonitored extends Object implements Serializable
This is a DTO object which contains an identity of a realThreadobject. This one is used for monitoring of thread creation and termination. Additional stack trace data are gathered byThreadMonitorEventobjects and processed inThreadHistoryMonitorHelper.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)ThreadMonitoredgetCreatedBy()StringgetRunnableClass()longgetThreadId()StringgetThreadName()inthashCode()static ThreadMonitorednewMonitoredThread(Thread thread)Creating new instance ofThreadMonitored.voidsetCreatedBy(ThreadMonitored createdBy)voidsetRunnableClass(Class<?> runnableClass)StringtoString()
-
-
-
Method Detail
-
newMonitoredThread
public static ThreadMonitored newMonitoredThread(Thread thread)
Creating new instance ofThreadMonitored. Data is drained from the suppliedThreadinstance.
-
getThreadName
public String getThreadName()
-
getThreadId
public long getThreadId()
-
getRunnableClass
public String getRunnableClass()
-
setRunnableClass
public void setRunnableClass(Class<?> runnableClass)
-
setCreatedBy
public void setCreatedBy(ThreadMonitored createdBy)
-
getCreatedBy
public ThreadMonitored getCreatedBy()
-
-