Class ProgressTracker.OperationProgress

java.lang.Object
neqsim.mcp.runners.ProgressTracker.OperationProgress
Enclosing class:
ProgressTracker

static class ProgressTracker.OperationProgress extends Object
Progress state for a single operation.
Version:
1.0
Author:
Even Solbraa
  • Field Details

    • operationId

      final String operationId
      Operation ID.
    • operationType

      final String operationType
      Operation type.
    • totalSteps

      final int totalSteps
      Total expected steps.
    • startedAt

      final long startedAt
      Start time.
    • currentStep

      int currentStep
      Current step.
    • percentComplete

      int percentComplete
      Percentage complete.
    • lastMessage

      String lastMessage
      Last status message.
    • completed

      boolean completed
      Whether completed.
    • failed

      boolean failed
      Whether failed.
    • completedAt

      long completedAt
      Completion time.
    • milestones

      final List<ProgressTracker.Milestone> milestones
      Milestone events.
  • Constructor Details

    • OperationProgress

      OperationProgress(String operationId, String operationType, int totalSteps)
      Creates operation progress.
      Parameters:
      operationId - the operation ID
      operationType - the type
      totalSteps - the total steps
  • Method Details

    • toJson

      com.google.gson.JsonObject toJson()
      Converts to JSON.
      Returns:
      JsonObject representation