Class StatusUpdater

All Implemented Interfaces:
Iterable<ComponentType>, Channel, ComponentType, Eligible, Manager

public class StatusUpdater extends VmDefUpdater
Updates the CR status.
  • Constructor Details

    • StatusUpdater

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

    • onHandlingError

      On handling error.
      Parameters:
      event - the event
    • onStart

      @Handler public void onStart(Start event)
      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
      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

      @Handler public void onOsinfo(OsinfoEvent event) throws io.kubernetes.client.openapi.ApiException
      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