public interface ExtendedManagementProtocol extends JobManagementProtocol
JobManagementProtocol. It can be used to retrieve
internal scheduling information, the network topology, or profiling
information about thread or instance utilization.| Modifier and Type | Method and Description |
|---|---|
int |
getAvailableSlots()
Returns the number of available slots among the registered task managers
|
List<AbstractEvent> |
getEvents(JobID jobID)
Retrieves the collected events for the job with the given job ID.
|
ManagementGraph |
getManagementGraph(JobID jobID)
Retrieves the management graph for the job
with the given ID.
|
NetworkTopology |
getNetworkTopology(JobID jobID)
Retrieves the current network topology for the job with
the given ID.
|
List<RecentJobEvent> |
getRecentJobs()
Retrieves a list of jobs which have either running or have been started recently.
|
void |
killInstance(StringRecord instanceName)
Kills the instance with the given name (i.e.
|
void |
killTask(JobID jobID,
ManagementVertexID id)
Kills the task with the given vertex ID.
|
void |
logBufferUtilization(JobID jobID)
Triggers all task managers involved in processing the job with the given job ID to write the utilization of
their read and write buffers to their log files.
|
cancelJob, getJobProgress, getRecommendedPollingInterval, submitJobManagementGraph getManagementGraph(JobID jobID) throws IOException
jobID - the ID identifying the jobIOException - thrown if an error occurs while retrieving the management graphNetworkTopology getNetworkTopology(JobID jobID) throws IOException
jobID - the ID identifying the jobIOException - thrown if an error occurs while retrieving the network topologyList<RecentJobEvent> getRecentJobs() throws IOException
IOException - thrown if an error occurs while retrieving the job listList<AbstractEvent> getEvents(JobID jobID) throws IOException
jobID - the ID of the job to retrieve the events forIOException - thrown if an error occurs while retrieving the list of eventsvoid killTask(JobID jobID, ManagementVertexID id) throws IOException
jobID - the ID of the job the vertex to be killed belongs toid - the vertex ID which identified the task be killedIOException - thrown if an error occurs while transmitting the kill requestvoid killInstance(StringRecord instanceName) throws IOException
instanceName - the name of the instance to be killedIOException - thrown if an error occurs while transmitting the kill requestvoid logBufferUtilization(JobID jobID) throws IOException
jobID - the ID of the job to print the buffer distribution forIOException - throws if an error occurs while transmitting the requestint getAvailableSlots()
throws IOException
IOExceptionCopyright © 2014 The Apache Software Foundation. All rights reserved.