Interface ExecDelayable
- All Superinterfaces:
Startable
- All Known Subinterfaces:
Cloudlet,CustomerEntity,Host,Machine<T>,PhysicalMachine,SubmissionDelayable,Vm
- All Known Implementing Classes:
CloudletAbstract,CloudletSimple,CustomerEntityAbstract,ExecDelayableAbstract,HostAbstract,HostSimple,NetworkCloudlet,NetworkHost,NetworkVm,VmAbstract,VmGroup,VmSimple
An entity that can have its start and shutdown delayed.
- Since:
- CloudSim Plus 8.3.0
- Author:
- Manoel Campos da Silva Filho
-
Field Summary
Fields inherited from interface org.cloudsimplus.core.Startable
NOT_ASSIGNED -
Method Summary
Modifier and TypeMethodDescriptiondefault doubleReturns the remaining startup time.doubleReturns the shutdown time.doubleGet the time (in seconds) for the entity to finish shutting down orStartable.NOT_ASSIGNEDif not set (meaning the entity shuts down right-away).default doubleReturns the relative time the entity is expected to finish starting up.doubleGet the time (in seconds) for the entity to finish starting up orStartable.NOT_ASSIGNEDif not set (meaning the entity starts up rightaway).default booleanbooleandefault booleandefault booleansetShutdownBeginTime(double shutdownBeginTime) Sets the time the VM shutdown has begun.setShutDownDelay(double delay) Set the time (in seconds) for the entity to finish shutting down.setStartupDelay(double delay) Set the time (in seconds) for the entity to finish starting up.voidshutdown()Sends a request to shut down the entity.Methods inherited from interface org.cloudsimplus.core.Startable
getFinishTime, getLastBusyTime, getSimulation, getStartTime, getTotalExecutionTime, hasStarted, isFinished, setFinishTime, setLastBusyTime, setStartTime
-
Method Details
-
getStartupDelay
double getStartupDelay()Get the time (in seconds) for the entity to finish starting up orStartable.NOT_ASSIGNEDif not set (meaning the entity starts up rightaway).- See Also:
-
isStartingUp
default boolean isStartingUp()- Returns:
- true if the entity is starting up, false otherwise.
-
isShuttingDown
boolean isShuttingDown()- Returns:
- true if the entity is shutting down, false otherwise.
-
getShutdownBeginTime
double getShutdownBeginTime()Returns the shutdown time. That indicates the time entity began shutting down or -1 to indicate it has not started shutting down.- Returns:
- the shutdown time
-
shutdown
void shutdown()Sends a request to shut down the entity.- See Also:
-
setShutdownBeginTime
Sets the time the VM shutdown has begun.- Parameters:
shutdownBeginTime- value to set- Returns:
- this entity
-
getStartupCompletionTime
default double getStartupCompletionTime()Returns the relative time the entity is expected to finish starting up.. If the entity hasn't started yet, it returns only the relative time after the entity starts it's expected to complete startup.- Returns:
- the relative time the entity is expected to finish starting up
-
setStartupDelay
Set the time (in seconds) for the entity to finish starting up.- See Also:
-
getRemainingStartupTime
default double getRemainingStartupTime()Returns the remaining startup time. That indicates how much longer the startup process will take (or zero if no startup delay was set or the startup has already completed).- Returns:
- the remaining startup time
-
isStartupDelayed
default boolean isStartupDelayed()- Returns:
- true if the entity has a startup delay set; false otherwise.
- See Also:
-
isShutDownDelayed
default boolean isShutDownDelayed()- Returns:
- true if the entity shutdown is delayed, false otherwise.
-
getShutDownDelay
double getShutDownDelay()Get the time (in seconds) for the entity to finish shutting down orStartable.NOT_ASSIGNEDif not set (meaning the entity shuts down right-away).- See Also:
-
setShutDownDelay
Set the time (in seconds) for the entity to finish shutting down.- See Also:
-