Class ResourceSynchronizationResultStep

java.lang.Object
com.aoapps.appcluster.ResourceSynchronizationResultStep
All Implemented Interfaces:
ResourceResult

public class ResourceSynchronizationResultStep extends Object implements ResourceResult
One step of the results of a resource synchronization (or test).
Author:
AO Industries, Inc.
  • Constructor Details

    • ResourceSynchronizationResultStep

      public ResourceSynchronizationResultStep(long startTime, long endTime, ResourceStatus resourceStatus, String description, CharSequence output, CharSequence warning, CharSequence error)
      Parameters:
      description - May not be null
      output - null or empty is converted to empty list
      warning - null or empty is converted to empty list
      error - null or empty is converted to empty list
    • ResourceSynchronizationResultStep

      public ResourceSynchronizationResultStep(long startTime, long endTime, ResourceStatus resourceStatus, String description, Collection<String> outputs, Collection<String> warnings, Collection<String> errors)
      Parameters:
      description - May not be null
      outputs - null is converted to empty list and a defensive copy is made
      warnings - null is converted to empty list and a defensive copy is made
      errors - null is converted to empty list and a defensive copy is made
  • Method Details

    • getStartTime

      public Timestamp getStartTime()
      Specified by:
      getStartTime in interface ResourceResult
    • getEndTime

      public Timestamp getEndTime()
      Specified by:
      getEndTime in interface ResourceResult
    • getResourceStatus

      public ResourceStatus getResourceStatus()
      Gets the resource status that this result will cause.
      Specified by:
      getResourceStatus in interface ResourceResult
    • getDescription

      public String getDescription()
      Gets the description for this step.
    • getOutputs

      public List<String> getOutputs()
      Gets the outputs associated with this test or empty list for none.
    • getWarnings

      public List<String> getWarnings()
      Gets the warnings associated with this test or empty list for none.
    • getErrors

      public List<String> getErrors()
      Gets the errors associated with this test or empty list for none.