org.gridkit.jvmtool.stacktrace
Class ThreadCapture

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

public class ThreadCapture
extends Object
implements ThreadSnapshot


Field Summary
 CounterArray counters
           
 StackTraceElement[] elements
           
 Thread.State state
           
 long threadId
           
 String threadName
           
 long timestamp
           
 
Constructor Summary
ThreadCapture()
           
 
Method Summary
 void copyFrom(ThreadInfo info)
           
 CounterCollection counters()
           
 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
 

Field Detail

threadId

public long threadId

threadName

public String threadName

timestamp

public long timestamp

elements

public StackTraceElement[] elements

counters

public CounterArray counters

state

public Thread.State state
Constructor Detail

ThreadCapture

public ThreadCapture()
Method Detail

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

copyFrom

public void copyFrom(ThreadInfo info)

reset

public void reset()


Copyright © 2019. All Rights Reserved.