public class EnvironmentThreadSet extends Object
| Constructor and Description |
|---|
EnvironmentThreadSet(ThreadMXBean tmx,
Thread mainThread,
JobVertexID vertexId,
int subtask,
ExecutionAttemptID executionId) |
| Modifier and Type | Method and Description |
|---|---|
void |
addUserThread(ThreadMXBean tmx,
Thread thread) |
InternalExecutionVertexThreadProfilingData |
captureCPUUtilization(JobID jobID,
ThreadMXBean tmx,
long timestamp) |
Thread |
getMainThread() |
int |
getNumberOfUserThreads() |
void |
removeUserThread(Thread thread) |
public EnvironmentThreadSet(ThreadMXBean tmx, Thread mainThread, JobVertexID vertexId, int subtask, ExecutionAttemptID executionId)
public Thread getMainThread()
public void addUserThread(ThreadMXBean tmx, Thread thread)
public void removeUserThread(Thread thread)
public int getNumberOfUserThreads()
public InternalExecutionVertexThreadProfilingData captureCPUUtilization(JobID jobID, ThreadMXBean tmx, long timestamp)
Copyright © 2015 The Apache Software Foundation. All rights reserved.