Class ThreadInformations

java.lang.Object
net.bull.javamelody.internal.model.ThreadInformations
All Implemented Interfaces:
Serializable

public class ThreadInformations extends Object implements Serializable
Informations sur un thread java, sans code html de présentation. L'état d'une instance est initialisé à son instanciation et non mutable; il est donc de fait thread-safe. Cet état est celui d'un thread java à un instant t. Les instances sont sérialisables pour pouvoir être transmises au serveur de collecte.
Author:
Emeric Vernat
See Also:
  • Constructor Details

    • ThreadInformations

      public ThreadInformations(Thread thread, List<StackTraceElement> stackTrace, long cpuTimeMillis, long userTimeMillis, boolean deadlocked, String hostAddress)
  • Method Details

    • getCurrentThreadCpuTime

      public static long getCurrentThreadCpuTime()
    • getCurrentThreadAllocatedBytes

      public static long getCurrentThreadAllocatedBytes()
    • getName

      public String getName()
    • getId

      public long getId()
    • getPriority

      public int getPriority()
    • isDaemon

      public boolean isDaemon()
    • getState

      public Thread.State getState()
    • getStackTrace

      public List<StackTraceElement> getStackTrace()
    • getExecutedMethod

      public String getExecutedMethod()
    • getCpuTimeMillis

      public long getCpuTimeMillis()
    • getUserTimeMillis

      public long getUserTimeMillis()
    • isDeadlocked

      public boolean isDeadlocked()
    • getGlobalThreadId

      public String getGlobalThreadId()
    • toString

      public String toString()
      Overrides:
      toString in class Object