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 interfaceFeatureSbbFacade.FeatureSbbInvokerExternalise 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 voidabortFeature()The feature should abandon execution and clear up any resourcesvoiddependenciesInjected()All requested elements have been injected, so the feature may carry out additional initialisationFeatureEndpointgetCaller()protected javax.slee.SbbLocalObjectgetCurrentlyExecutingFeatureSbb()java.lang.StringgetFeatureName()All features have a unique namevoidstartFeature(java.lang.Object trigger, java.lang.Object activity, javax.slee.ActivityContextInterface aci)kick off the featurevoidstartFeature(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:SentinelFeatureAll features have a unique name- Specified by:
getFeatureNamein 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:
dependenciesInjectedin 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:
startFeaturein 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:
startFeaturein 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:
abortFeaturein interfaceSentinelFeature
-
getCurrentlyExecutingFeatureSbb
protected final javax.slee.SbbLocalObject getCurrentlyExecutingFeatureSbb()
-
-