Class TaskScannerContext

java.lang.Object
org.forgerock.openidm.scheduler.impl.TaskScannerContext

public class TaskScannerContext extends Object
Represents the information for a recurring TaskScannerJob. This is carried over across all instances of the TaskScannerJob
  • Constructor Details

    • TaskScannerContext

      public TaskScannerContext(String invokerName, String scriptName, org.forgerock.json.JsonValue params, org.forgerock.services.context.Context context, org.forgerock.script.ScriptEntry scriptEntry) throws ScriptException
      Throws:
      ScriptException
  • Method Details

    • startJob

      public void startJob()
    • endJob

      public void endJob()
    • startQuery

      public void startQuery()
    • endQuery

      public void endQuery()
    • cancel

      public void cancel()
    • interrupted

      public void interrupted()
    • isStarted

      public boolean isStarted()
    • isCompleted

      public boolean isCompleted()
    • hasError

      public boolean hasError()
    • isInactive

      public boolean isInactive()
    • isCanceled

      public boolean isCanceled()
    • getState

      public String getState()
    • setNumberOfTasksToProcess

      public void setNumberOfTasksToProcess(int number)
    • getContext

      public org.forgerock.services.context.Context getContext()
    • getParams

      public org.forgerock.json.JsonValue getParams()
    • getInvokerName

      public String getInvokerName()
    • getScriptName

      public String getScriptName()
    • getScriptEntry

      public org.forgerock.script.ScriptEntry getScriptEntry()
    • getTaskScanID

      public String getTaskScanID()
    • getRecoveryTimeout

      public org.joda.time.ReadablePeriod getRecoveryTimeout()
      Retrieve the timeout period from the supplied config.
      Returns:
      the timeout period taken from the config
    • getMaxRecords

      public Integer getMaxRecords()
    • getScanValue

      public org.forgerock.json.JsonValue getScanValue()
    • getObjectID

      public String getObjectID()
    • getStartField

      public org.forgerock.json.JsonPointer getStartField()
    • getCompletedField

      public org.forgerock.json.JsonPointer getCompletedField()
    • getWaitForCompletion

      public boolean getWaitForCompletion()
    • getNumberOfThreads

      public int getNumberOfThreads()
    • getStatistics

      public TaskScannerStatistic getStatistics()
    • getProgress

      public Map<String,Object> getProgress()