Package io.helidon.build.devloop
Interface BuildMonitor
public interface BuildMonitor
A receiver of build loop messages and events.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe action to take on the next cycle. -
Method Summary
Modifier and TypeMethodDescriptionlongonBuildFail(int cycleNumber, BuildType type, Throwable error) Called when a build has failed.voidonBuildStart(int cycleNumber, BuildType type) Called when a build is about to start.voidonBuildSuccess(int cycleNumber, BuildType type) Called when a build has succeeded.voidonChanged(int cycleNumber, ChangeType type) Called when project changes have been detected.onCycleEnd(int cycleNumber) Called when a build cycle has completed.voidonCycleStart(int cycleNumber) Called when a new build cycle is starting.voidonLoopFail(int cycleNumber, Throwable error) Called when build loop has failed.longCalled when a build has succeeded or when an initial build was not required.voidCalled when the build loop has started.voidCalled when build loop has stopped.default PrintStreamstdErr()Returns a consumer for messages written to stderr.default PrintStreamstdOut()Returns a consumer for messages written to stdout.
-
Method Details
-
stdOut
Returns a consumer for messages written to stdout.- Returns:
- The consumer.
-
stdErr
Returns a consumer for messages written to stderr.- Returns:
- The consumer.
-
onStarted
void onStarted()Called when the build loop has started. -
onCycleStart
void onCycleStart(int cycleNumber) Called when a new build cycle is starting.- Parameters:
cycleNumber- The cycle number.
-
onChanged
Called when project changes have been detected.- Parameters:
cycleNumber- The cycle number.type- The change type.
-
onBuildStart
Called when a build is about to start.- Parameters:
cycleNumber- The cycle number.type- The build type.
-
onBuildSuccess
Called when a build has succeeded.- Parameters:
cycleNumber- The cycle number.type- The build type.
-
onBuildFail
Called when a build has failed.- Parameters:
cycleNumber- The cycle number.type- The build type.error- The error.- Returns:
- The number of milliseconds to delay before retrying build.
-
onReady
Called when a build has succeeded or when an initial build was not required.- Parameters:
cycleNumber- The cycle number.project- The project.- Returns:
- The number of milliseconds to delay before restarting the build cycle.
-
onCycleEnd
Called when a build cycle has completed.- Parameters:
cycleNumber- The cycle number.- Returns:
trueto continue to next build cycle,falseto stop.
-
onLoopFail
Called when build loop has failed.- Parameters:
cycleNumber- The cycle number.error- The error.
-
onStopped
void onStopped()Called when build loop has stopped.
-