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 <zlamal@cesnet.cz>
-
Constructor Summary
ConstructorsConstructorDescriptionCreate 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
-
getService
-
setService
-
getFacility
-
setFacility
-
getTask
-
setTask
-
isBlockedGlobally
public boolean isBlockedGlobally() -
isBlockedOnFacility
public boolean isBlockedOnFacility() -
setBlockedOnFacility
public void setBlockedOnFacility(boolean isBlockedOnFacility) -
getHasDestinations
public boolean getHasDestinations() -
setHasDestinations
public void setHasDestinations(boolean hasDestinations) -
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
-
getScheduled
Return time when was Task on Facility scheduled if ever for the last time.- Returns:
- Time when was last task scheduled.
-
getStartTime
Return time when was Task on Facility scheduled if ever for the last time.- Returns:
- Time when was last task scheduled.
-
getEndTime
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
-
getBeanName
-
toString
-