Class QemuMonitor

java.lang.Object
org.jgrapes.core.internal.ComponentVertex
org.jgrapes.core.Component
org.jdrupes.vmoperator.runner.qemu.QemuConnector
org.jdrupes.vmoperator.runner.qemu.QemuMonitor
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 QemuMonitor extends QemuConnector
A component that handles the communication over the Qemu monitor socket.

If the log level for this class is set to fine, the messages exchanged on the monitor socket are logged.

  • 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.QemuConnector

    mapper

    Fields inherited from class org.jgrapes.core.Component

    logger

    Fields inherited from interface org.jgrapes.core.Channel

    BROADCAST, SELF
  • Constructor Summary

    Constructors
    Constructor
    Description
    QemuMonitor(org.jgrapes.core.Channel componentChannel, Path configDir)
    Instantiates a new QEMU monitor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onClosed(org.jgrapes.io.events.Closed<?> event, org.jgrapes.net.SocketIOChannel channel)
    On closed.
    void
    On configure qemu.
    void
    On monitor command.
    void
    When the powerdown event is confirmed, wait for termination or timeout.
    void
    onProcessExited(org.jgrapes.io.events.ProcessExited event)
    On process exited.
    void
    onStop(org.jgrapes.core.events.Stop event)
    Shutdown the VM.
    protected void
    Process agent input.
    protected void
    When the socket is connected, send the capabilities command.

    Methods inherited from class org.jdrupes.vmoperator.runner.qemu.QemuConnector

    onClientConnected, onConnectError, onFileChanged, onInput, onStart, qemuChannel, rep, sendCommand, writer

    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

    • QemuMonitor

      public QemuMonitor(org.jgrapes.core.Channel componentChannel, Path configDir) throws IOException
      Instantiates a new QEMU monitor.
      Parameters:
      componentChannel - the component channel
      configDir - the config dir
      Throws:
      IOException - Signals that an I/O exception has occurred.
  • Method Details