Class FeatureSbbFacade

  • All Implemented Interfaces:
    SentinelFeature

    public class FeatureSbbFacade
    extends java.lang.Object
    implements SentinelFeature
    Facade feature that acts as a proxy for a feature sbb
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  FeatureSbbFacade.FeatureSbbInvoker
      Externalise interaction with the feature sbb as the sentinel front-ends and registrar have different interfaces for interacting with the feature sbb
    • Constructor Summary

      Constructors 
      Constructor Description
      FeatureSbbFacade​(FeatureEndpoint caller, com.opencloud.sce.fsmtool.Facilities facilities, com.opencloud.rhino.facilities.childrelations.ChildRelationFacility childRelationFacility, FeatureSbbFacade.FeatureSbbInvoker featureSbbInvoker, java.lang.String name, java.lang.String sbbAlias)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void abortFeature()
      The feature should abandon execution and clear up any resources
      void dependenciesInjected()
      All requested elements have been injected, so the feature may carry out additional initialisation
      FeatureEndpoint getCaller()  
      protected javax.slee.SbbLocalObject getCurrentlyExecutingFeatureSbb()  
      java.lang.String getFeatureName()
      All features have a unique name
      void startFeature​(java.lang.Object trigger, java.lang.Object activity, javax.slee.ActivityContextInterface aci)
      kick off the feature
      void startFeature​(java.lang.Object trigger, java.lang.Object activity, javax.slee.ActivityContextInterface aci, java.util.Map<java.lang.String,​ParameterValue> featureParameters)
      kick off the feature
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FeatureSbbFacade

        public FeatureSbbFacade​(FeatureEndpoint caller,
                                com.opencloud.sce.fsmtool.Facilities facilities,
                                com.opencloud.rhino.facilities.childrelations.ChildRelationFacility childRelationFacility,
                                FeatureSbbFacade.FeatureSbbInvoker featureSbbInvoker,
                                java.lang.String name,
                                java.lang.String sbbAlias)
    • Method Detail

      • getFeatureName

        public java.lang.String getFeatureName()
        Description copied from interface: SentinelFeature
        All features have a unique name
        Specified by:
        getFeatureName in interface SentinelFeature
        Returns:
        the name of this feature
      • dependenciesInjected

        public void dependenciesInjected()
        All requested elements have been injected, so the feature may carry out additional initialisation
        Specified by:
        dependenciesInjected in interface SentinelFeature
      • startFeature

        public void startFeature​(java.lang.Object trigger,
                                 java.lang.Object activity,
                                 javax.slee.ActivityContextInterface aci,
                                 java.util.Map<java.lang.String,​ParameterValue> featureParameters)
        kick off the feature
        Specified by:
        startFeature in interface SentinelFeature
        Parameters:
        trigger - a triggering context. The feature implementation must be able to cast this to a useful type for it to run
        activity - the slee activity object this feature is related to (may be null)
        aci - the activity context interface of the slee activity this feature is related to
        featureParameters - parameters supplied in the run feature statement that caused this feature to be executed
      • startFeature

        public void startFeature​(java.lang.Object trigger,
                                 java.lang.Object activity,
                                 javax.slee.ActivityContextInterface aci)
        kick off the feature
        Specified by:
        startFeature in interface SentinelFeature
        Parameters:
        trigger - a triggering context. The feature implementation must be able to cast this to a useful type for it to run
        activity - the slee activity object this feature is related to (may be null)
        aci - the activity context interface of the slee activity this feature is related to
      • abortFeature

        public void abortFeature()
        The feature should abandon execution and clear up any resources
        Specified by:
        abortFeature in interface SentinelFeature
      • getCurrentlyExecutingFeatureSbb

        protected final javax.slee.SbbLocalObject getCurrentlyExecutingFeatureSbb()