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<org.jgrapes.core.ComponentType>, org.jgrapes.core.Channel, org.jgrapes.core.ComponentType, org.jgrapes.core.Eligible, org.jgrapes.core.Manager

public class ConsoleTracker extends VmDefUpdater
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

    org.jgrapes.core.Channel.Default
  • Field Summary

    Fields inherited from class org.jdrupes.vmoperator.runner.qemu.VmDefUpdater

    apiClient, namespace, vmName

    Fields inherited from class org.jgrapes.core.Component

    logger

    Fields inherited from interface org.jgrapes.core.Channel

    BROADCAST, SELF
  • Constructor Summary

    Constructors
    Constructor
    Description
    ConsoleTracker(org.jgrapes.core.Channel componentChannel)
    Instantiates a new status updater.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    On spice disconnected.
    void
    On spice connected.
    void
    onStart(org.jgrapes.core.events.Start event)
    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

    Methods inherited from interface org.jgrapes.core.Manager

    stream
  • Constructor Details

    • ConsoleTracker

      public ConsoleTracker(org.jgrapes.core.Channel componentChannel)
      Instantiates a new status updater.
      Parameters:
      componentChannel - the component channel
  • Method Details

    • onStart

      @Handler public void onStart(org.jgrapes.core.events.Start event)
      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