Class ThreadMonitored
java.lang.Object
org.jboss.byteman.sample.helper.ThreadMonitored
- All Implemented Interfaces:
Serializable
This is a DTO object which contains an identity of a real
Thread object.
This one is used for monitoring of thread creation and termination.
Additional stack trace data are gathered by ThreadMonitorEvent objects
and processed in ThreadHistoryMonitorHelper.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateThreadMonitored(String threadName, long threadId, int threadHashCode) -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonginthashCode()static ThreadMonitorednewMonitoredThread(Thread thread) Creating new instance ofThreadMonitored.voidsetCallableClass(Class<?> callableClass) voidsetCreatedBy(ThreadMonitored createdBy) voidsetRunnableClass(Class<?> runnableClass) toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
threadName
-
threadId
private final long threadId -
threadHashCode
private final int threadHashCode -
runnableClass
-
callableClass
-
createdBy
-
-
Constructor Details
-
ThreadMonitored
-
-
Method Details
-
newMonitoredThread
Creating new instance ofThreadMonitored. Data is drained from the suppliedThreadinstance. -
getThreadName
-
getThreadId
public long getThreadId() -
getRunnableClass
-
setRunnableClass
-
getCallableClass
-
setCallableClass
-
setCreatedBy
-
getCreatedBy
-
toString
-
hashCode
-
equals
-