Class AvoidEmptyPolicy

java.lang.Object
org.jgrapes.core.internal.ComponentVertex
org.jgrapes.core.Component
org.jdrupes.vmoperator.manager.AvoidEmptyPolicy
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 AvoidEmptyPolicy extends org.jgrapes.core.Component
  • 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
    AvoidEmptyPolicy(org.jgrapes.core.Channel componentChannel)
    Creates a new component with its channel set to the given channel.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onConsoleConfigured(org.jgrapes.webconsole.base.events.ConsoleConfigured event, org.jgrapes.webconsole.base.ConsoleConnection connection)
    On console configured.
    void
    onConsoleReady(org.jgrapes.webconsole.base.events.ConsoleReady event, org.jgrapes.webconsole.base.ConsoleConnection connection)
    On console ready.
    void
    onRenderConlet(org.jgrapes.webconsole.base.events.RenderConlet event, org.jgrapes.webconsole.base.ConsoleConnection connection)
    On render conlet.

    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

    • AvoidEmptyPolicy

      public AvoidEmptyPolicy(org.jgrapes.core.Channel componentChannel)
      Creates a new component with its channel set to the given channel.
      Parameters:
      componentChannel -
  • Method Details

    • onConsoleReady

      @Handler public void onConsoleReady(org.jgrapes.webconsole.base.events.ConsoleReady event, org.jgrapes.webconsole.base.ConsoleConnection connection)
      On console ready.
      Parameters:
      event - the event
      connection - the connection
    • onRenderConlet

      @Handler(priority=100) public void onRenderConlet(org.jgrapes.webconsole.base.events.RenderConlet event, org.jgrapes.webconsole.base.ConsoleConnection connection)
      On render conlet.
      Parameters:
      event - the event
      connection - the connection
    • onConsoleConfigured

      @Handler(priority=-100) public void onConsoleConfigured(org.jgrapes.webconsole.base.events.ConsoleConfigured event, org.jgrapes.webconsole.base.ConsoleConnection connection) throws InterruptedException, IOException
      On console configured.
      Parameters:
      event - the event
      connection - the console connection
      Throws:
      InterruptedException - the interrupted exception
      IOException