Module com.aoapps.appcluster.core
Package com.aoapps.appcluster
Class ResourceSynchronizationResultStep
java.lang.Object
com.aoapps.appcluster.ResourceSynchronizationResultStep
- All Implemented Interfaces:
ResourceResult
One step of the results of a resource synchronization (or test).
- Author:
- AO Industries, Inc.
-
Constructor Summary
ConstructorDescriptionResourceSynchronizationResultStep
(long startTime, long endTime, ResourceStatus resourceStatus, String description, CharSequence output, CharSequence warning, CharSequence error) ResourceSynchronizationResultStep
(long startTime, long endTime, ResourceStatus resourceStatus, String description, Collection<String> outputs, Collection<String> warnings, Collection<String> errors) -
Method Summary
Modifier and TypeMethodDescriptionGets the description for this step.Gets the errors associated with this test or empty list for none.Gets the outputs associated with this test or empty list for none.Gets the resource status that this result will cause.Gets the warnings associated with this test or empty list for none.
-
Constructor Details
-
ResourceSynchronizationResultStep
public ResourceSynchronizationResultStep(long startTime, long endTime, ResourceStatus resourceStatus, String description, CharSequence output, CharSequence warning, CharSequence error) - Parameters:
description
- May not benull
output
-null
or empty is converted to empty listwarning
-null
or empty is converted to empty listerror
-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 benull
outputs
-null
is converted to empty list and a defensive copy is madewarnings
-null
is converted to empty list and a defensive copy is madeerrors
-null
is converted to empty list and a defensive copy is made
-
-
Method Details
-
getStartTime
- Specified by:
getStartTime
in interfaceResourceResult
-
getEndTime
- Specified by:
getEndTime
in interfaceResourceResult
-
getResourceStatus
Gets the resource status that this result will cause.- Specified by:
getResourceStatus
in interfaceResourceResult
-
getDescription
Gets the description for this step. -
getOutputs
Gets the outputs associated with this test or empty list for none. -
getWarnings
Gets the warnings associated with this test or empty list for none. -
getErrors
Gets the errors associated with this test or empty list for none.
-