org.gridkit.jvmtool.stacktrace
Class ThreadRecord

java.lang.Object
  extended by org.gridkit.jvmtool.stacktrace.ThreadRecord
All Implemented Interfaces:
ThreadSnapshot

public class ThreadRecord
extends Object
implements ThreadSnapshot


Constructor Summary
ThreadRecord()
           
ThreadRecord(StackFrameList trace)
           
ThreadRecord(StackFrameList trace, Thread.State state)
           
 
Method Summary
 CounterCollection counters()
           
 void load(StackTraceReader reader)
           
 void reset()
           
 StackFrameList stackTrace()
           
 long threadId()
           
 String threadName()
          may be null
 Thread.State threadState()
          may be null
 long timestamp()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadRecord

public ThreadRecord()

ThreadRecord

public ThreadRecord(StackFrameList trace)

ThreadRecord

public ThreadRecord(StackFrameList trace,
                    Thread.State state)
Method Detail

reset

public void reset()

load

public void load(StackTraceReader reader)

threadId

public long threadId()
Specified by:
threadId in interface ThreadSnapshot

threadName

public String threadName()
Description copied from interface: ThreadSnapshot
may be null

Specified by:
threadName in interface ThreadSnapshot

timestamp

public long timestamp()
Specified by:
timestamp in interface ThreadSnapshot

stackTrace

public StackFrameList stackTrace()
Specified by:
stackTrace in interface ThreadSnapshot

threadState

public Thread.State threadState()
Description copied from interface: ThreadSnapshot
may be null

Specified by:
threadState in interface ThreadSnapshot

counters

public CounterCollection counters()
Specified by:
counters in interface ThreadSnapshot


Copyright © 2019. All Rights Reserved.