Class DebugHelper

java.lang.Object
org.jppf.server.debug.DebugHelper

public final class DebugHelper extends Object
Collection of utility methods to help investigate issues.
Author:
Laurent Cohen
  • Constructor Details

    • DebugHelper

      public DebugHelper()
  • Method Details

    • addResults

      public static List<ServerTask> addResults(String jobUuid, Collection<ServerTask> results)
      Add the specified completed tasks for the specified job uuid.
      Parameters:
      jobUuid - the job uuid.
      results - the completed tasks.
      Returns:
      a list of tasks that were already stored in this helper (duplicates).
    • clearResults

      public static void clearResults(String jobUuid)
      Remove all results for the specified job.
      Parameters:
      jobUuid - the job uuid.
    • showResults

      public static String showResults()
      Show all the mapped results.
      Returns:
      a string representing all the entries in the multimap.
    • checkResults

      public static List<ServerTask> checkResults(String jobUuid, Collection<ServerTask> results)
      Check whether the specified tasks for the specified job have already completed.
      Parameters:
      jobUuid - the job uuid.
      results - the completed tasks.
      Returns:
      a list of tasks that were already stored in this helper (duplicates).