Module com.aoapps.appcluster.core
Package com.aoapps.appcluster
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 Summary
Constructors Constructor Description ResourceSynchronizationResultStep(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Gets the description for this step.TimestampgetEndTime()List<String>getErrors()Gets the errors associated with this test or empty list for none.List<String>getOutputs()Gets the outputs associated with this test or empty list for none.ResourceStatusgetResourceStatus()Gets the resource status that this result will cause.TimestampgetStartTime()List<String>getWarnings()Gets the warnings associated with this test or empty list for none.
-
-
-
Constructor Detail
-
ResourceSynchronizationResultStep
public ResourceSynchronizationResultStep(long startTime, long endTime, ResourceStatus resourceStatus, String description, CharSequence output, CharSequence warning, CharSequence error)- Parameters:
description- May not benulloutput-nullor empty is converted to empty listwarning-nullor empty is converted to empty listerror-nullor 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 benulloutputs-nullis converted to empty list and a defensive copy is madewarnings-nullis converted to empty list and a defensive copy is madeerrors-nullis converted to empty list and a defensive copy is made
-
-
Method Detail
-
getStartTime
public Timestamp getStartTime()
- Specified by:
getStartTimein interfaceResourceResult
-
getEndTime
public Timestamp getEndTime()
- Specified by:
getEndTimein interfaceResourceResult
-
getResourceStatus
public ResourceStatus getResourceStatus()
Gets the resource status that this result will cause.- Specified by:
getResourceStatusin interfaceResourceResult
-
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.
-
-