public final class UpdateContext extends MonitoringContext
| Constructor and Description |
|---|
UpdateContext(com.orchestranetworks.service.Session userSession)
Instantiates a new update context.
|
| Modifier and Type | Method and Description |
|---|---|
Date |
getLastModificationDate()
Returns the last modification date.
|
int |
getMaxDurationInMinutes()
Returns the maximum duration in minutes.
|
double |
getPercentage()
Returns the completion percentage.
|
ParametersMap |
getWorkingParameters()
Returns the working parameters.
|
void |
setLastModificationDate(Date lastModificationDate)
Sets the last modification date of the monitoring.
|
void |
setMaxDurationInMinutes(int maxDurationInMinutes)
Sets the maximum duration in minutes.
|
void |
setPercentage(double percentage)
Sets the completion percentage.
|
void |
setWorkingParameters(ParametersMap workingParameters)
Sets the working parameters.
|
getSessionpublic UpdateContext(com.orchestranetworks.service.Session userSession)
userSession - the user sessionpublic int getMaxDurationInMinutes()
public void setMaxDurationInMinutes(int maxDurationInMinutes)
If the maximum duration is larger than zero, it will be updated in the monitoring. Otherwise, it is not updated.
maxDurationInMinutes - the new max duration in minutespublic double getPercentage()
public void setPercentage(double percentage)
percentage - the new percentagepublic Date getLastModificationDate()
public void setLastModificationDate(Date lastModificationDate)
MonitoringStatus.getLastModificationDate().lastModificationDate - the new last modification datepublic ParametersMap getWorkingParameters()
public void setWorkingParameters(ParametersMap workingParameters)
If workingParameters is null, does not update the working parameters in the monitoring.
If workingParameters is not null and has no parameters, removes the working parameter information in the monitoring.
workingParameters - the new working parameters