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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onBallonChange
(BalloonChangeEvent event) On ballon change.void
onConfigureQemu
(ConfigureQemu event) On runner configuration update.void
onCpuChange
(HotpluggableCpuStatus event) On ballon change.void
On ballon change.void
onHandlingError
(HandlingError event) On handling error.void
On runner state changed.void
onShutdown
(ShutdownEvent event) On shutdown.void
Handle the start event.Methods inherited from class org.jdrupes.vmoperator.runner.qemu.VmDefUpdater
onConfigurationUpdate, updateCondition
Methods inherited from class org.jgrapes.core.Component
channel, component, defaultCriterion, isEligibleFor, setName
Methods 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, unregisterAsGenerator
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
IOException
io.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 On ballon change.- 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
-