Interface NodeUpdateVisitorContext


public interface NodeUpdateVisitorContext
Provided as an execution context to NodeUpdateVisitor instance in order to allow an NodeUpdateVisitor to be able to manually update skipped/updated/failed node count while being executed on single node iteration (e.g, in #doUpdate(node) method in a groovy updater script).
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if the current execution is on dry run mode.
    void
    Manually report/increment the failed count in the current execution.
    void
    Manually report/increment the skipped count in the current execution.
    void
    Manually report/increment the updated count in the current execution.
  • Method Details

    • reportSkipped

      void reportSkipped(String path)
      Manually report/increment the skipped count in the current execution.
    • reportUpdated

      void reportUpdated(String path)
      Manually report/increment the updated count in the current execution.

      WARNING: this invocation may trigger committing or reverting the batch.

    • reportFailed

      void reportFailed(String path)
      Manually report/increment the failed count in the current execution.
    • isDryRun

      boolean isDryRun()
      Returns true if the current execution is on dry run mode.
      Returns:
      true if the current execution is on dry run mode