Class ThreadInformations
java.lang.Object
net.bull.javamelody.internal.model.ThreadInformations
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionThreadInformations(Thread thread, List<StackTraceElement> stackTrace, long cpuTimeMillis, long userTimeMillis, boolean deadlocked, String hostAddress) -
Method Summary
-
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
-
getId
public long getId() -
getPriority
public int getPriority() -
isDaemon
public boolean isDaemon() -
getState
-
getStackTrace
-
getExecutedMethod
-
getCpuTimeMillis
public long getCpuTimeMillis() -
getUserTimeMillis
public long getUserTimeMillis() -
isDeadlocked
public boolean isDeadlocked() -
getGlobalThreadId
-
toString
-