Class StatusUpdater
java.lang.Object
org.jgrapes.core.internal.ComponentVertex
org.jgrapes.core.Component
org.jdrupes.vmoperator.runner.qemu.VmDefUpdater
org.jdrupes.vmoperator.runner.qemu.StatusUpdater
- All Implemented Interfaces:
Iterable<ComponentType>,Channel,ComponentType,Eligible,Manager
Updates the CR status.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jgrapes.core.Channel
Channel.Default -
Field Summary
Fields inherited from class org.jdrupes.vmoperator.runner.qemu.VmDefUpdater
apiClient, namespace, vmName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonBallonChange(BalloonChangeEvent event) Update the current RAM size in the status.voidonConfigureQemu(ConfigureQemu event) On runner configuration update.voidonCpuChange(HotpluggableCpuStatus event) On ballon change.voidOn ballon change.voidonHandlingError(HandlingError event) On handling error.voidonOsinfo(OsinfoEvent event) On osinfo.voidOn runner state changed.voidonShutdown(ShutdownEvent event) On shutdown.voidHandle the start event.voidvoidvoidMethods inherited from class org.jdrupes.vmoperator.runner.qemu.VmDefUpdater
onConfigurationUpdate, updateConditionMethods inherited from class org.jgrapes.core.Component
channel, component, defaultCriterion, isEligibleFor, setNameMethods inherited from class org.jgrapes.core.internal.ComponentVertex
activeEventPipeline, addHandler, attach, channelReplacements, children, componentPath, componentVertex, detach, fire, initComponentsHandlers, iterator, name, newEventPipeline, newEventPipeline, parent, registerAsGenerator, root, toString, unregisterAsGeneratorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
StatusUpdater
Instantiates a new status updater.- Parameters:
componentChannel- the component channel
-
-
Method Details
-
onHandlingError
On handling error.- Parameters:
event- the event
-
onStart
Handle the start event.- Parameters:
event- the event- Throws:
IOExceptionio.kubernetes.client.openapi.ApiException
-
onConfigureQemu
@Handler public void onConfigureQemu(ConfigureQemu event) throws io.kubernetes.client.openapi.ApiException On runner configuration update.- Parameters:
event- the event- Throws:
io.kubernetes.client.openapi.ApiException
-
onRunnerStateChanged
@Handler public void onRunnerStateChanged(RunnerStateChange event) throws io.kubernetes.client.openapi.ApiException On runner state changed.- Parameters:
event- the event- Throws:
io.kubernetes.client.openapi.ApiException
-
onBallonChange
@Handler public void onBallonChange(BalloonChangeEvent event) throws io.kubernetes.client.openapi.ApiException Update the current RAM size in the status.Balloon changes happen more than once every second during changes. While this is nice to watch, this puts a heavy load on the system. Therefore we only update the status once every 15 seconds or when the target value is reached.
- Parameters:
event- the event- Throws:
io.kubernetes.client.openapi.ApiException
-
onCpuChange
@Handler public void onCpuChange(HotpluggableCpuStatus event) throws io.kubernetes.client.openapi.ApiException On ballon change.- Parameters:
event- the event- Throws:
io.kubernetes.client.openapi.ApiException
-
onDisplayPasswordChanged
@Handler public void onDisplayPasswordChanged(DisplayPasswordChanged event) throws io.kubernetes.client.openapi.ApiException On ballon change.- Parameters:
event- the event- Throws:
io.kubernetes.client.openapi.ApiException
-
onShutdown
@Handler public void onShutdown(ShutdownEvent event) throws io.kubernetes.client.openapi.ApiException On shutdown.- Parameters:
event- the event- Throws:
io.kubernetes.client.openapi.ApiException- the api exception
-
onOsinfo
On osinfo.- Parameters:
event- the event- Throws:
io.kubernetes.client.openapi.ApiException
-
onVmopAgentConnected
@Handler public void onVmopAgentConnected(VmopAgentConnected event) throws io.kubernetes.client.openapi.ApiException - Parameters:
event- the event- Throws:
io.kubernetes.client.openapi.ApiException
-
onVmopAgentLoggedIn
@Handler public void onVmopAgentLoggedIn(VmopAgentLoggedIn event) throws io.kubernetes.client.openapi.ApiException - Parameters:
event- the event- Throws:
io.kubernetes.client.openapi.ApiException
-
onVmopAgentLoggedOut
@Handler public void onVmopAgentLoggedOut(VmopAgentLoggedOut event) throws io.kubernetes.client.openapi.ApiException - Parameters:
event- the event- Throws:
io.kubernetes.client.openapi.ApiException
-