Package org.jppf.server.protocol
Class SendResultsStrategy.SendAllResultsStrategy
java.lang.Object
org.jppf.server.protocol.SendResultsStrategy.SendAllResultsStrategy
- All Implemented Interfaces:
SendResultsStrategy
- Enclosing interface:
- SendResultsStrategy
public static class SendResultsStrategy.SendAllResultsStrategy
extends Object
implements SendResultsStrategy
Strategy that sends the results when they have all been received for the client bundle.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jppf.server.protocol.SendResultsStrategy
SendResultsStrategy.SendAllResultsStrategy, SendResultsStrategy.SendNodeResultsStrategy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()Get the name of this strategy.booleansendResults(ServerTaskBundleClient bundle, Collection<ServerTask> tasks) Determine whether results should be sent immediately.
-
Constructor Details
-
SendAllResultsStrategy
public SendAllResultsStrategy()
-
-
Method Details
-
sendResults
Description copied from interface:SendResultsStrategyDetermine whether results should be sent immediately.- Specified by:
sendResultsin interfaceSendResultsStrategy- 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
Description copied from interface:SendResultsStrategyGet the name of this strategy.- Specified by:
getNamein interfaceSendResultsStrategy- Returns:
- the name as a string.
-