Class NullSentinelFeature
- java.lang.Object
-
- com.opencloud.sentinel.feature.impl.BaseFeature<NullSentinelSessionState,FeatureEndpoint>
-
- com.opencloud.sentinel.feature.impl.NullSentinelFeature
-
- All Implemented Interfaces:
SentinelFeature
public class NullSentinelFeature extends BaseFeature<NullSentinelSessionState,FeatureEndpoint>
NullSentinelFeature is used by Sentinel if a feature that does not exist is referenced in a feature execution script. NullSentinelFeature responds with featureCannotStart with an message containing the name of the unknown feature that was requested.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NAME
-
Constructor Summary
Constructors Constructor Description NullSentinelFeature(java.lang.String name, java.lang.String factoryName, FeatureEndpoint caller, com.opencloud.sce.fsmtool.Facilities facilities, NullSentinelSessionState sessionState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFeatureName()
All features have a unique namevoid
startFeature(java.lang.Object trigger, java.lang.Object activity, javax.slee.ActivityContextInterface aci)
Responds with featureCannotStart to inform core that an unknown feature was requested.-
Methods inherited from class com.opencloud.sentinel.feature.impl.BaseFeature
abortFeature, dependenciesInjected, getCaller, getFacilities, getSessionState, getTracer, startFeature
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NullSentinelFeature
public NullSentinelFeature(java.lang.String name, java.lang.String factoryName, FeatureEndpoint caller, com.opencloud.sce.fsmtool.Facilities facilities, NullSentinelSessionState sessionState)
-
-
Method Detail
-
getFeatureName
public final java.lang.String getFeatureName()
Description copied from interface:SentinelFeature
All features have a unique name- Returns:
- the name of this feature
-
startFeature
public void startFeature(java.lang.Object trigger, java.lang.Object activity, javax.slee.ActivityContextInterface aci)
Responds with featureCannotStart to inform core that an unknown feature was requested.- 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
-
-