public class FeatureSbbFacade extends java.lang.Object implements SentinelFeature
Modifier and Type | Class and 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 and Description |
---|
FeatureSbbFacade(FeatureEndpoint caller,
Facilities facilities,
com.opencloud.rhino.facilities.childrelations.ChildRelationFacility childRelationFacility,
FeatureSbbFacade.FeatureSbbInvoker featureSbbInvoker,
java.lang.String name,
java.lang.String sbbAlias) |
Modifier and Type | Method and 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
|
public FeatureSbbFacade(FeatureEndpoint caller, Facilities facilities, com.opencloud.rhino.facilities.childrelations.ChildRelationFacility childRelationFacility, FeatureSbbFacade.FeatureSbbInvoker featureSbbInvoker, java.lang.String name, java.lang.String sbbAlias)
public java.lang.String getFeatureName()
SentinelFeature
getFeatureName
in interface SentinelFeature
public FeatureEndpoint getCaller()
public void dependenciesInjected()
dependenciesInjected
in interface SentinelFeature
public void startFeature(java.lang.Object trigger, java.lang.Object activity, javax.slee.ActivityContextInterface aci, java.util.Map<java.lang.String,ParameterValue> featureParameters)
startFeature
in interface SentinelFeature
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 executedpublic void startFeature(java.lang.Object trigger, java.lang.Object activity, javax.slee.ActivityContextInterface aci)
startFeature
in interface SentinelFeature
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 topublic void abortFeature()
abortFeature
in interface SentinelFeature
protected final javax.slee.SbbLocalObject getCurrentlyExecutingFeatureSbb()
Copyright © OpenCloud. All Rights Reserved.