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
channelId
Fields 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 TypeMethodDescriptionvoid
onVmopAgentLogIn
(VmopAgentLogIn event) On vmop agent login.void
onVmopAgentLogout
(VmopAgentLogOut event) On vmop agent logout.protected void
processInput
(String line) Process agent input.Methods inherited from class org.jdrupes.vmoperator.runner.qemu.AgentConnector
agentConnected, configure, onVserportChanged
Methods inherited from class org.jdrupes.vmoperator.runner.qemu.QemuConnector
configure, onClientConnected, onClosed, onConnectError, onFileChanged, onInput, onStart, qemuChannel, rep, sendCommand, socketConnected, 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
-
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:QemuConnector
Process agent input.- Specified by:
processInput
in classQemuConnector
- Parameters:
line
- the line- Throws:
IOException
- Signals that an I/O exception has occurred.
-