Class FeatureSbbFacade
- java.lang.Object
-
- com.opencloud.sentinel.feature.sbb.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 resourcesvoid
dependenciesInjected()
All requested elements have been injected, so the feature may carry out additional initialisationFeatureEndpoint
getCaller()
protected javax.slee.SbbLocalObject
getCurrentlyExecutingFeatureSbb()
java.lang.String
getFeatureName()
All features have a unique namevoid
startFeature(java.lang.Object trigger, java.lang.Object activity, javax.slee.ActivityContextInterface aci)
kick off the featurevoid
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
-
-
-
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 interfaceSentinelFeature
- Returns:
- the name of this feature
-
getCaller
public FeatureEndpoint getCaller()
-
dependenciesInjected
public void dependenciesInjected()
All requested elements have been injected, so the feature may carry out additional initialisation- Specified by:
dependenciesInjected
in interfaceSentinelFeature
-
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 interfaceSentinelFeature
- Parameters:
trigger
- a triggering context. The feature implementation must be able to cast this to a useful type for it to runactivity
- 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 tofeatureParameters
- 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 interfaceSentinelFeature
- Parameters:
trigger
- a triggering context. The feature implementation must be able to cast this to a useful type for it to runactivity
- 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 interfaceSentinelFeature
-
getCurrentlyExecutingFeatureSbb
protected final javax.slee.SbbLocalObject getCurrentlyExecutingFeatureSbb()
-
-