public class TaskManagerProfilerImpl extends TimerTask implements TaskManagerProfiler
| Constructor and Description |
|---|
TaskManagerProfilerImpl(InetAddress jobManagerAddress,
InstanceConnectionInfo instanceConnectionInfo) |
| Modifier and Type | Method and Description |
|---|---|
void |
registerExecutionListener(Task task,
Configuration jobConfiguration)
Registers an
ExecutionListener object for profiling. |
void |
registerMainThreadForCPUProfiling(Environment environment,
Thread thread,
JobVertexID vertexId,
int subtask,
ExecutionAttemptID executionID) |
void |
registerUserThreadForCPUProfiling(Environment environment,
Thread userThread) |
void |
run() |
void |
shutdown()
Shuts done the task manager's profiling component
and stops all its internal processes.
|
void |
unregisterExecutionListener(ExecutionAttemptID id)
Unregisters all previously register
ExecutionListener objects for
the vertex identified by the given ID. |
void |
unregisterMainThreadFromCPUProfiling(Environment environment,
Thread thread) |
void |
unregisterUserThreadFromCPUProfiling(Environment environment,
Thread userThread) |
cancel, scheduledExecutionTimepublic TaskManagerProfilerImpl(InetAddress jobManagerAddress, InstanceConnectionInfo instanceConnectionInfo) throws ProfilingException
ProfilingExceptionpublic void registerExecutionListener(Task task, Configuration jobConfiguration)
TaskManagerProfilerExecutionListener object for profiling.registerExecutionListener in interface TaskManagerProfilertask - task to be register a profiling listener forjobConfiguration - the job configuration sent with the taskpublic void unregisterExecutionListener(ExecutionAttemptID id)
TaskManagerProfilerExecutionListener objects for
the vertex identified by the given ID.unregisterExecutionListener in interface TaskManagerProfilerid - the ID of the vertex to unregister the ExecutionListener objects forpublic void shutdown()
TaskManagerProfilershutdown in interface TaskManagerProfilerpublic void registerMainThreadForCPUProfiling(Environment environment, Thread thread, JobVertexID vertexId, int subtask, ExecutionAttemptID executionID)
public void registerUserThreadForCPUProfiling(Environment environment, Thread userThread)
public void unregisterMainThreadFromCPUProfiling(Environment environment, Thread thread)
public void unregisterUserThreadFromCPUProfiling(Environment environment, Thread userThread)
Copyright © 2015 The Apache Software Foundation. All rights reserved.