Interface IThreadOnCpuProvider
public interface IThreadOnCpuProvider
Interface to be implemented by analyses who has information about the thread
running on a CPU at a given time.
NOTE to developers: this interface is used with the composite host model but
won't be necessary anymore once the analyses populate the model directly.
-
Method Summary
Modifier and TypeMethodDescriptionThe list of host IDs for which this object providers information on thread on the CPUdefault @Nullable Integer
getThreadOnCpuAtTime
(int cpu, long time) Gets the current thread ID on a given CPU for a given time@Nullable Integer
getThreadOnCpuAtTime
(int cpu, long time, boolean block) Gets the current thread ID on a given CPU for a given time, but may blocks if the answer is not available yet but may come later
-
Method Details
-
getThreadOnCpuAtTime
Gets the current thread ID on a given CPU for a given time- Parameters:
cpu
- the CPUtime
- the time in nanoseconds- Returns:
- the current TID at the time on the CPU or
null
if not known
-
getThreadOnCpuAtTime
Gets the current thread ID on a given CPU for a given time, but may blocks if the answer is not available yet but may come later- Parameters:
cpu
- the CPUtime
- the time in nanosecondsblock
- Iftrue
, the method will block until the providers have the data available.- Returns:
- the current TID at the time on the CPU or
null
if not known
-
getHostIds
Collection<String> getHostIds()The list of host IDs for which this object providers information on thread on the CPU- Returns:
- The list of host IDs
-