public interface TaskOperationProtocol extends VersionedProtocol
| Modifier and Type | Method and Description |
|---|---|
TaskCancelResult |
cancelTask(ExecutionVertexID id)
Advises the task manager to cancel the task with the given ID.
|
LibraryCacheProfileResponse |
getLibraryCacheProfile(LibraryCacheProfileRequest request)
Queries the task manager about the cache status of the libraries stated in the
LibraryCacheProfileRequest
object. |
void |
invalidateLookupCacheEntries(Set<ChannelID> channelIDs)
Invalidates the entries identified by the given channel IDs from the task manager's receiver lookup cache.
|
TaskKillResult |
killTask(ExecutionVertexID id)
Advises the task manager to kill the task with the given ID.
|
void |
killTaskManager()
Kills the task manager.
|
void |
logBufferUtilization()
Triggers the task manager write the current utilization of its read and write buffers to its logs.
|
List<TaskSubmissionResult> |
submitTasks(List<TaskDeploymentDescriptor> tasks)
Submits a list of tasks to the task manager.
|
void |
updateLibraryCache(LibraryCacheUpdate update)
Updates the task manager's library cache.
|
List<TaskSubmissionResult> submitTasks(List<TaskDeploymentDescriptor> tasks) throws IOException
tasks - the tasks to be submittedIOException - thrown if an error occurs during this remote procedure callTaskCancelResult cancelTask(ExecutionVertexID id) throws IOException
id - the ID of the task to cancelIOException - thrown if an error occurs during this remote procedure callTaskKillResult killTask(ExecutionVertexID id) throws IOException
id - the ID of the task to killIOException - thrown if an error occurs during this remote procedure callLibraryCacheProfileResponse getLibraryCacheProfile(LibraryCacheProfileRequest request) throws IOException
LibraryCacheProfileRequest
object.request - a LibraryCacheProfileRequest containing a list of libraries whose cache status is to be determinedLibraryCacheProfileResponse containing the cache status for each library included in the
requestIOException - thrown if an error occurs during this remote procedure callvoid updateLibraryCache(LibraryCacheUpdate update) throws IOException
update - a LibraryCacheUpdate object used to transmit the library dataIOException - thrown if an error occurs during this remote procedure callvoid invalidateLookupCacheEntries(Set<ChannelID> channelIDs) throws IOException
channelIDs - the channel IDs identifying the cache entries to invalidateIOException - thrown if an error occurs during this remote procedure callvoid logBufferUtilization()
IOException - thrown if an error occurs while transmitting the requestvoid killTaskManager()
throws IOException
IOException - thrown if an error occurs during this remote procedure callCopyright © 2014 The Apache Software Foundation. All rights reserved.