Package org.jboss.byteman.sample.helper
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
FieldsModifier and TypeFieldDescriptionprivate ThreadMonitored
private String
private static final long
private int
private long
private String
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ThreadMonitored
(String threadName, long threadId, int threadHashCode) -
Method Summary
Modifier and TypeMethodDescriptionboolean
long
int
hashCode()
static ThreadMonitored
newMonitoredThread
(Thread thread) Creating new instance ofThreadMonitored
.void
setCreatedBy
(ThreadMonitored createdBy) void
setRunnableClass
(Class<?> runnableClass) toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
threadName
-
threadId
private long threadId -
threadHashCode
private int threadHashCode -
runnableClass
-
createdBy
-
-
Constructor Details
-
ThreadMonitored
-
-
Method Details
-
newMonitoredThread
Creating new instance ofThreadMonitored
. Data is drained from the suppliedThread
instance. -
getThreadName
-
getThreadId
public long getThreadId() -
getRunnableClass
-
setRunnableClass
-
setCreatedBy
-
getCreatedBy
-
toString
-
hashCode
public int hashCode() -
equals
-