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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidOn spice disconnected.voidOn spice connected.voidHandle the start event.Methods 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
-
ConsoleTracker
Instantiates a new status updater.- Parameters:
componentChannel- the component channel
-
-
Method Details
-
onStart
Handle the start event.- Parameters:
event- the event- Throws:
IOExceptionio.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
-