Class AbstractDirectionalComponent

  • All Implemented Interfaces:
    ContextAwareComponent, io.gridgo.framework.ComponentLifecycle, io.gridgo.framework.NamedComponent, io.gridgo.utils.helper.Loggable
    Direct Known Subclasses:
    AbstractTransformableComponent

    public abstract class AbstractDirectionalComponent
    extends io.gridgo.framework.impl.AbstractComponentLifecycle
    implements ContextAwareComponent
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractDirectionalComponent​(@NonNull java.lang.String source, @NonNull java.lang.String target)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      GridgoContext getContext()  
      java.lang.String getSource()  
      java.lang.String getTarget()  
      protected void onStart()  
      void setContext​(GridgoContext context)  
      protected abstract void startWithGateways​(Gateway source, Gateway target)  
      • Methods inherited from class io.gridgo.framework.impl.AbstractComponentLifecycle

        generateName, getName, isStarted, onStop, start, stop, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface io.gridgo.framework.ComponentLifecycle

        isStarted, start, stop
      • Methods inherited from interface io.gridgo.utils.helper.Loggable

        getLogger, getLogger
      • Methods inherited from interface io.gridgo.framework.NamedComponent

        getName
    • Constructor Detail

      • AbstractDirectionalComponent

        public AbstractDirectionalComponent​(@NonNull
                                            @NonNull java.lang.String source,
                                            @NonNull
                                            @NonNull java.lang.String target)
    • Method Detail

      • onStart

        protected void onStart()
        Specified by:
        onStart in class io.gridgo.framework.impl.AbstractComponentLifecycle
      • startWithGateways

        protected abstract void startWithGateways​(Gateway source,
                                                  Gateway target)
      • getSource

        public java.lang.String getSource()
      • getTarget

        public java.lang.String getTarget()