Package org.jppf.server.nio.client
Class CompletionListener
java.lang.Object
org.jppf.server.nio.client.CompletionListener
- All Implemented Interfaces:
ServerTaskBundleClient.CompletionListener
Completion listener that is used to notify that results were received from a node,
and they should be sent back to the client.
- Author:
- Laurent Cohen
-
Constructor Summary
ConstructorsConstructorDescriptionCompletionListener(AsyncClientContext context) Initialize this completion listener with the specified channel. -
Method Summary
Modifier and TypeMethodDescriptionvoidbundleEnded(ServerTaskBundleClient bundle) Callback method invoked when execution of the bundle is done.voidtaskCompleted(ServerTaskBundleClient bundle, List<ServerTask> results) Callback method invoked when the execution of the bundle has completed.
-
Constructor Details
-
CompletionListener
Initialize this completion listener with the specified channel.- Parameters:
context- the client channel.
-
-
Method Details
-
taskCompleted
Description copied from interface:ServerTaskBundleClient.CompletionListenerCallback method invoked when the execution of the bundle has completed.- Specified by:
taskCompletedin interfaceServerTaskBundleClient.CompletionListener- Parameters:
bundle- the bundle that notifies completed result.results- the list of results of the bundle execution.
-
bundleEnded
Description copied from interface:ServerTaskBundleClient.CompletionListenerCallback method invoked when execution of the bundle is done.- Specified by:
bundleEndedin interfaceServerTaskBundleClient.CompletionListener- Parameters:
bundle- the bundle that notifies that finished.
-