Interface IDfOperationMonitor


public interface IDfOperationMonitor
Provides access to operation errors as they occur. Allows for abort / continue decisions in real time.
  • Field Details

  • Method Details

    • reportError

      int reportError(IDfOperationError error) throws DfException
      This method is called when an operation informs the monitor of the occurance of an error. The monitor should return either IDfOperationMonitor.CONTINUE or IDfOperationMonitor.ABORT.
      Parameters:
      error - operation error that occurred.
      Returns:
      IDfOperationMonitor.CONTINUE or IDfOperationMonitor.ABORT.
      Throws:
      DfException
    • getYesNoAnswer

      int getYesNoAnswer(IDfOperationError question) throws DfException
      Called by operation when an error / warning requires a yes or no response. The monitor can return IDfOperationMonitor.YES, IDfOperationMonitor.NO, or IDfOperationMonitor.ABORT.
      Parameters:
      question - operation error requiring a response.
      Returns:
      IDfOperationMonitor.YES=1, IDfOperationMonitor.NO=0, or IDfOperationMonitor.ABORT=-1.
      Throws:
      DfException
    • progressReport

      int progressReport(IDfOperation operation, int operationPercentDone, IDfOperationStep step, int stepPercentDone, IDfOperationNode node) throws DfException
      Returns:
      IDfOperationMonitor.ABORT,IDfOperation.CONTINUE
      Throws:
      DfException