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
  • Method Details

    • sendResults

      boolean sendResults(ServerTaskBundleClient bundle, Collection<ServerTask> tasks)
      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:
      true if the results should be sent immediately, false otherwise.
    • getName

      String getName()
      Get the name of this strategy.
      Returns:
      the name as a string.