Class ServiceState
java.lang.Object
cz.metacentrum.perun.controller.model.ServiceState
ServiceState is object containing information about one service propagated on one facility.
- Author:
- Jana Cechackova, Pavel Zlámal invalid input: '<'zlamal@cesnet.cz>
-
Constructor Summary
ConstructorDescriptionCreate new instance of ServiceState.ServiceState
(Service service, Facility facility) -
Method Summary
Modifier and TypeMethodDescriptionReturn time when was Task on Facility scheduled if ever for the last time.boolean
Return time when was Task on Facility scheduled if ever for the last time.Return time when was Task on Facility scheduled if ever for the last time.Return status of service propagation (task status) based on current tasks states.getTask()
int
Return ID of Task.boolean
boolean
void
setBlockedOnFacility
(boolean isBlockedOnFacility) void
setFacility
(Facility facility) void
setHasDestinations
(boolean hasDestinations) void
setService
(Service service) void
toString()
-
Constructor Details
-
ServiceState
public ServiceState()Create new instance of ServiceState. -
ServiceState
-
-
Method Details
-
getBeanName
-
getEndTime
Return time when was Task on Facility scheduled if ever for the last time.- Returns:
- Time when was last task scheduled.
-
getFacility
-
setFacility
-
getHasDestinations
public boolean getHasDestinations() -
setHasDestinations
public void setHasDestinations(boolean hasDestinations) -
getScheduled
Return time when was Task on Facility scheduled if ever for the last time.- Returns:
- Time when was last task scheduled.
-
getService
-
setService
-
getStartTime
Return time when was Task on Facility scheduled if ever for the last time.- Returns:
- Time when was last task scheduled.
-
getStatus
Return status of service propagation (task status) based on current tasks states. Method compares "scheduled" dates of tasks in order to determine, which is more relevant.If can't determine, TaskStatus.NONE is returned.
- Returns:
- TaskStatus of service on facility
-
getTask
-
setTask
-
getTaskId
public int getTaskId()Return ID of Task. If present SEND Task takes precedence. If not GEN Task is used or 0 is returned if none Task is present.- Returns:
- ID of Task
-
isBlockedGlobally
public boolean isBlockedGlobally() -
isBlockedOnFacility
public boolean isBlockedOnFacility() -
setBlockedOnFacility
public void setBlockedOnFacility(boolean isBlockedOnFacility) -
toString
-