Class InstanceShutdownStartEvent
java.lang.Object
desmoj.core.simulator.NamedObject
desmoj.core.simulator.ModelComponent
desmoj.core.simulator.Schedulable
desmoj.core.simulator.EventAbstract
desmoj.core.simulator.Event<MicroserviceInstance>
cambio.simulator.entities.microservice.InstanceShutdownStartEvent
Triggers the instance to stats its shutdown process.
During the shutdown processes a MicroserviceInstance does not accept new requests but finishes the ones it's
currently handling.
- Author:
- Lion Wagner
-
Field Summary
Fields inherited from class desmoj.core.simulator.EventAbstract
numberOfEntitiesFields inherited from class desmoj.core.simulator.Schedulable
_schedule -
Constructor Summary
ConstructorsConstructorDescriptionInstanceShutdownStartEvent(desmoj.core.simulator.Model model, String name, boolean showInTrace) -
Method Summary
Methods inherited from class desmoj.core.simulator.Event
clone, schedule, schedule, schedule, schedule, scheduleAfter, scheduleBefore, schedulePreemptMethods inherited from class desmoj.core.simulator.EventAbstract
generateTraceForScheduling, getNumberOfEntities, getRealTimeConstraint, getSchedulingPriority, isExternal, setRealTimeConstraint, setSchedulingPriorityMethods inherited from class desmoj.core.simulator.Schedulable
assignReporter, cancel, getCorrespondingReportable, isCurrent, isScheduled, rename, reSchedule, reSchedule, reSchedulePreempt, scheduledNext, setCorrespondingReportableMethods inherited from class desmoj.core.simulator.ModelComponent
current, currentEntity, currentEntityAll, currentEvent, currentlySendDebugNotes, currentlySendTraceNotes, currentModel, currentSimProcess, debugIsOn, debugOff, debugOn, getModel, isExperimentCompatible, isModelCompatible, presentTime, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOnMethods inherited from class desmoj.core.simulator.NamedObject
getName, getQuotedName, toString
-
Constructor Details
-
InstanceShutdownStartEvent
public InstanceShutdownStartEvent(desmoj.core.simulator.Model model, String name, boolean showInTrace)
-
-
Method Details
-
eventRoutine
public void eventRoutine(MicroserviceInstance microserviceInstance) throws co.paralleluniverse.fibers.SuspendExecution - Specified by:
eventRoutinein classdesmoj.core.simulator.Event<MicroserviceInstance>- Throws:
co.paralleluniverse.fibers.SuspendExecution
-