public final class StopContext extends MonitoringContext
Constructor and Description |
---|
StopContext(com.orchestranetworks.service.Session userSession)
Instantiates a new stop context.
|
Modifier and Type | Method and Description |
---|---|
Date |
getLastModificationDate()
Returns the last modification date.
|
ParametersMap |
getOutputParameters()
Returns the output parameters.
|
double |
getPercentage()
Returns the percentage.
|
StopCause |
getStopCause()
Returns the reason for stopping the operation.
|
void |
setLastModificationDate(Date lastModificationDate)
Sets the last modification date for monitoring.
|
void |
setOutputParameters(ParametersMap outputParameters)
Sets the output parameters.
|
void |
setPercentage(double percentage)
Sets the completion percentage when stopping the operation.
|
void |
setStopCause(StopCause stopCause)
Sets the reason for stopping the operation.
|
getSession
public StopContext(com.orchestranetworks.service.Session userSession)
userSession
- the user sessionpublic StopCause getStopCause()
public void setStopCause(StopCause stopCause)
stopCause
- the new stop causepublic Date getLastModificationDate()
public void setLastModificationDate(Date lastModificationDate)
MonitoringStatus.getLastModificationDate()
.lastModificationDate
- the new last modification datepublic ParametersMap getOutputParameters()
public void setOutputParameters(ParametersMap outputParameters)
outputParameters
- the new output parameterspublic double getPercentage()
public void setPercentage(double percentage)
The percentage must be a double
value greater than zero, otherwise it is not updated.
percentage
- the new percentage