Class VmopAgentClient
java.lang.Object
org.jgrapes.core.internal.ComponentVertex
org.jgrapes.core.Component
org.jdrupes.vmoperator.runner.qemu.QemuConnector
org.jdrupes.vmoperator.runner.qemu.AgentConnector
org.jdrupes.vmoperator.runner.qemu.VmopAgentClient
- All Implemented Interfaces:
Iterable<ComponentType>,Channel,ComponentType,Eligible,Manager
A component that handles the communication over the vmop agent
socket.
If the log level for this class is set to fine, the messages exchanged on the socket are logged.
-
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.AgentConnector
channelIdFields inherited from class org.jdrupes.vmoperator.runner.qemu.QemuConnector
mapper -
Constructor Summary
ConstructorsConstructorDescriptionVmopAgentClient(Channel componentChannel) Instantiates a new VM operator agent client. -
Method Summary
Modifier and TypeMethodDescriptionvoidonVmopAgentLogIn(VmopAgentLogIn event) On vmop agent login.voidonVmopAgentLogout(VmopAgentLogOut event) On vmop agent logout.protected voidprocessInput(String line) Process agent input.Methods inherited from class org.jdrupes.vmoperator.runner.qemu.AgentConnector
agentConnected, agentDisconnected, configureConnection, onVserportChangedMethods inherited from class org.jdrupes.vmoperator.runner.qemu.QemuConnector
configure, onClientConnected, onClosed, onConnectError, onFileChanged, onInput, onStart, qemuChannel, rep, sendCommand, socketConnected, writerMethods 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
-
VmopAgentClient
Instantiates a new VM operator agent client.- Parameters:
componentChannel- the component channel- Throws:
IOException- Signals that an I/O exception has occurred.
-
-
Method Details
-
onVmopAgentLogIn
On vmop agent login.- Parameters:
event- the event- Throws:
IOException- Signals that an I/O exception has occurred.
-
onVmopAgentLogout
On vmop agent logout.- Parameters:
event- the event- Throws:
IOException- Signals that an I/O exception has occurred.
-
processInput
Description copied from class:QemuConnectorProcess agent input.- Specified by:
processInputin classQemuConnector- Parameters:
line- the line- Throws:
IOException- Signals that an I/O exception has occurred.
-