VirtualBox Component
Available as of Camel 2.11.0
This component uses the web-service API of VirtualBox to execute vbox
commands and consume events from virtual machines.
Options
Name |
Default Value |
Description |
---|---|---|
|
|
Option for consumer only. Delay in millis between each poll. |
|
|
Option for consumer only. Millis before polling starts. |
|
|
Option for consumer only. Set to |
VirtualBox consumer
VirtualBox consumer is dedicated to poll events generated by the virtual machines. In order to connect to the given machine instance use the following route:
from("virtualbox:targetMachineName?url=http://myhost:18034&user=test&passwd=test"). to("mock:virtualBoxEvents);
VirtualBox consumer is a polling consumer, as it relays on the concept of the passive listener to collect the virtual machine events.
VirtualBox producer
VirtualBox producer sends commands to the VirtualBox manager. It may be used to interact with and control the behavior of the virtual machines. The following commands are supported by the current version of the component:
Name |
Description |
---|---|
|
Returns |
|
Returns |
|
Stops target virtual machine. |
|
Restores current snapshot. |
|
Sets offset to the BIOS system time of the target virtual machine. |
|
Starts target virtual machine. |
To create producer endpoint follow the syntax demonstrated below:
from("direct:vboxCommands"). to("virtualbox:targetMachineName?url=http://myhost:18034&user=test&passwd=test");
Maven usage
Maven users will need to add the following dependency to their pom.xml
for this component:
<dependency> <groupId>org.apache-extras.camel-extra</groupId> <artifactId>camel-virtualbox</artifactId> <version>${camel-version}</version> <!-- use the same version as your Camel core version --> </dependency>