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

public class Manager extends org.jgrapes.core.Component
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

    logger

    Fields inherited from interface org.jgrapes.core.Channel

    BROADCAST, SELF
  • Constructor Summary

    Constructors
    Constructor
    Description
    Manager(org.apache.commons.cli.CommandLine cmdLine)
    Instantiates a new manager.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    main(String[] args)
    The main method.
    void
    onConfigurationUpdate(org.jgrapes.util.events.ConfigurationUpdate event)
    Configure the component.
    void
    onExit(Exit event)
    On exit.
    void
    onHandlingError(org.jgrapes.core.events.HandlingError event)
    Log the exception when a handling error is reported.
    void
    onStop(org.jgrapes.core.events.Stop event)
    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

    Methods inherited from interface org.jgrapes.core.Manager

    stream
  • Constructor Details

  • Method Details

    • onConfigurationUpdate

      @Handler public void onConfigurationUpdate(org.jgrapes.util.events.ConfigurationUpdate event)
      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

      @Handler public void onExit(Exit event)
      On exit.
      Parameters:
      event - the event
    • onStop

      @Handler(priority=-1000) public void onStop(org.jgrapes.core.events.Stop event)
      On stop.
      Parameters:
      event - the event
    • main

      public static void main(String[] args)
      The main method.
      Parameters:
      args - the arguments
      Throws:
      Exception - the exception