Class ConsoleTracker
java.lang.Object
org.jgrapes.core.internal.ComponentVertex
org.jgrapes.core.Component
org.jdrupes.vmoperator.runner.qemu.VmDefUpdater
org.jdrupes.vmoperator.runner.qemu.ConsoleTracker
- All Implemented Interfaces:
Iterable<ComponentType>
,Channel
,ComponentType
,Eligible
,Manager
A (sub)component that updates the console status in the CR status.
Created as child of StatusUpdater
.
-
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
On spice disconnected.void
On spice connected.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
-
ConsoleTracker
Instantiates a new status updater.- Parameters:
componentChannel
- the component channel
-
-
Method Details
-
onStart
Handle the start event.- Parameters:
event
- the event- Throws:
IOException
io.kubernetes.client.openapi.ApiException
-
onSpiceInitialized
@Handler public void onSpiceInitialized(SpiceInitializedEvent event) throws io.kubernetes.client.openapi.ApiException On spice connected.- Parameters:
event
- the event- Throws:
io.kubernetes.client.openapi.ApiException
- the api exception
-
onSpiceDisconnected
@Handler public void onSpiceDisconnected(SpiceDisconnectedEvent event) throws io.kubernetes.client.openapi.ApiException On spice disconnected.- Parameters:
event
- the event- Throws:
io.kubernetes.client.openapi.ApiException
- the api exception
-