Package org.jppf.server.protocol
Interface SendResultsStrategy
- All Known Implementing Classes:
SendResultsStrategy.SendAllResultsStrategy,SendResultsStrategy.SendNodeResultsStrategy
public interface SendResultsStrategy
Strategy to determine whether results should be sent immediately.
- Author:
- Laurent Cohen
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classStrategy that sends the results when they have all been received for the client bundle.static classStrategy that sends the results everytime time they are received from a node. -
Method Summary
Modifier and TypeMethodDescriptiongetName()Get the name of this strategy.booleansendResults(ServerTaskBundleClient bundle, Collection<ServerTask> tasks) Determine whether results should be sent immediately.
-
Method Details
-
sendResults
Determine whether results should be sent immediately.- Parameters:
bundle- the client bundle for which results were recived from a node.tasks- the task whose results are to be returned.- Returns:
trueif the results should be sent immediately,falseotherwise.
-
getName
String getName()Get the name of this strategy.- Returns:
- the name as a string.
-