Class MonitorEvent

java.lang.Object
org.jgrapes.core.internal.EventBase<Void>
org.jgrapes.core.Event<Void>
org.jdrupes.vmoperator.runner.qemu.events.MonitorEvent
All Implemented Interfaces:
Future<Void>, Associator, Eligible
Direct Known Subclasses:
BalloonChangeEvent, MonitorReady, PowerdownEvent, ShutdownEvent, TrayMovedEvent

public class MonitorEvent extends Event<Void>
An Event that signals the reception of a QMP event from the Qemu process.
  • Constructor Details

    • MonitorEvent

      protected MonitorEvent(MonitorEvent.Kind kind, com.fasterxml.jackson.databind.JsonNode data)
      Instantiates a new monitor event.
      Parameters:
      kind - the kind
      data - the data
  • Method Details

    • from

      public static Optional<MonitorEvent> from(com.fasterxml.jackson.databind.JsonNode response)
      Create event from response.
      Parameters:
      response - the response
      Returns:
      the optional
    • kind

      Returns the kind of event.
      Returns:
      the kind
    • data

      public com.fasterxml.jackson.databind.JsonNode data()
      Returns the data associated with the event.
      Returns:
      the object[]