Class ThreadInfoSample
java.lang.Object
org.apache.flink.runtime.messages.ThreadInfoSample
- All Implemented Interfaces:
Serializable
A serializable wrapper container for transferring parts of the
ThreadInfo.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<ThreadInfoSample>from(ThreadInfo threadInfo) Constructs aThreadInfoSamplefromThreadInfo.static Map<Long,ThreadInfoSample> from(Collection<ThreadInfo> threadInfos) Constructs a collection ofThreadInfoSamples from a collection ofThreadInfosamples.
-
Method Details
-
from
Constructs aThreadInfoSamplefromThreadInfo.- Parameters:
threadInfo-ThreadInfowhere the data will be copied from.- Returns:
- an Optional containing the
ThreadInfoSampleif thethreadInfois not null and an empty Optional otherwise.
-
from
Constructs a collection ofThreadInfoSamples from a collection ofThreadInfosamples.- Parameters:
threadInfos- the collection ofThreadInfo.- Returns:
- the collection of the corresponding
ThreadInfoSamples.
-
getThreadState
-
getStackTrace
-