Class GraphRewrite

  • All Implemented Interfaces:
    org.ocpsoft.rewrite.event.Rewrite

    public class GraphRewrite
    extends org.ocpsoft.rewrite.AbstractRewrite
    implements org.ocpsoft.rewrite.event.Rewrite
    Holds the context of the whole Windup Execution. TODO: should be called "WindupExecutionContext" then?
    Author:
    Lincoln Baxter, III, Ondrej Zizka
    • Constructor Detail

      • GraphRewrite

        public GraphRewrite​(org.jboss.windup.graph.GraphContext context)
    • Method Detail

      • getWindupStopException

        public org.jboss.windup.util.exception.WindupStopException getWindupStopException()
        Returns:
        The exception which holds information where Windup has stopped before finishing (typically on an external request), or null if Windup finished normally.
      • setWindupStopException

        public void setWindupStopException​(org.jboss.windup.util.exception.WindupStopException windupStopException)
        Stores the exception which holds information if, and where, the Windup stopped (typically on an external request). If windup was stopped, this must be called.
      • getFlow

        public org.ocpsoft.rewrite.event.Flow getFlow()
        Specified by:
        getFlow in interface org.ocpsoft.rewrite.event.Rewrite
      • getGraphContext

        public org.jboss.windup.graph.GraphContext getGraphContext()
      • ruleEvaluationProgress

        public boolean ruleEvaluationProgress​(String name,
                                              int currentPosition,
                                              int total,
                                              int timeRemainingInSeconds)
        This is optionally called by long-running rules to indicate their current progress and estimated time-remaining.
      • shouldWindupStop

        public boolean shouldWindupStop()