Package org.jdrupes.vmoperator.manager
Class Manager
java.lang.Object
org.jgrapes.core.internal.ComponentVertex
org.jgrapes.core.Component
org.jdrupes.vmoperator.manager.Manager
- All Implemented Interfaces:
Iterable<ComponentType>
,Channel
,ComponentType
,Eligible
,Manager
The application class.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jgrapes.core.Channel
Channel.Default
-
Field Summary
-
Constructor Summary
ConstructorDescriptionManager
(org.apache.commons.cli.CommandLine cmdLine) Instantiates a new manager. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
The main method.void
Configure the component.void
On exit.void
onHandlingError
(HandlingError event) Log the exception when a handling error is reported.void
On stop.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
-
Manager
Instantiates a new manager.- Parameters:
cmdLine
-- Throws:
IOException
- Signals that an I/O exception has occurred.URISyntaxException
-
-
Method Details
-
onConfigurationUpdate
Configure the component.- Parameters:
event
- the event
-
onHandlingError
@Handler(channels=org.jgrapes.core.Channel.class, priority=-10000) public void onHandlingError(HandlingError event) Log the exception when a handling error is reported.- Parameters:
event
- the event
-
onExit
On exit.- Parameters:
event
- the event
-
onStop
On stop.- Parameters:
event
- the event
-
main
The main method.- Parameters:
args
- the arguments- Throws:
Exception
- the exception
-