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<org.jgrapes.core.ComponentType>,org.jgrapes.core.Channel,org.jgrapes.core.ComponentType,org.jgrapes.core.Eligible,org.jgrapes.core.Manager
The application class.
-
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.jgrapes.core.Component
loggerFields inherited from interface org.jgrapes.core.Channel
BROADCAST, SELF -
Constructor Summary
ConstructorsConstructorDescriptionManager(org.apache.commons.cli.CommandLine cmdLine) Instantiates a new manager. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidThe main method.voidonConfigurationUpdate(org.jgrapes.util.events.ConfigurationUpdate event) Configure the component.voidOn exit.voidonHandlingError(org.jgrapes.core.events.HandlingError event) Log the exception when a handling error is reported.voidonStop(org.jgrapes.core.events.Stop event) On stop.Methods 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, spliteratorMethods inherited from interface org.jgrapes.core.Manager
stream
-
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(org.jgrapes.core.events.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
-