Class SimpleStatementRegistry
java.lang.Object
com.google.common.collect.ForwardingObject
org.opendaylight.protocol.bgp.openconfig.routing.policy.spi.SimpleStatementRegistry
- All Implemented Interfaces:
AutoCloseable
,BgpStatementRegistryProvider
,StatementRegistryConsumer
,StatementRegistryProvider
@Singleton
public final class SimpleStatementRegistry
extends com.google.common.collect.ForwardingObject
implements AutoCloseable
-
Constructor Summary
ConstructorDescriptionSimpleStatementRegistry
(List<StatementProviderActivator> extensionActivators) -
Method Summary
Modifier and TypeMethodDescriptionfinal RouteAttributeContainer
applyExportStatement
(RouteEntryBaseAttributes routeEntryInfo, AfiSafiType afiSafi, BGPRouteEntryExportParameters baseExportParameters, RouteAttributeContainer attributes, Statement statement) Apply statement to BGP Route Attributes (Export Policy).final RouteAttributeContainer
applyImportStatement
(RouteEntryBaseAttributes routeEntryInfo, AfiSafiType afiSafi, BGPRouteEntryImportParameters routeBaseParameters, RouteAttributeContainer attributes, Statement statement) Apply statement to BGP Route Attributes (Import Policy).void
close()
protected StatementRegistry
delegate()
final org.opendaylight.yangtools.concepts.AbstractRegistration
registerActionPolicy
(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Actions>> actionPolicyClass, ActionsAugPolicy actionPolicy) Register Action Policy Augmentation handler.final <T extends org.opendaylight.yangtools.yang.binding.Augmentation<BgpActions>>
org.opendaylight.yangtools.concepts.AbstractRegistrationregisterBgpActionAugmentationPolicy
(Class<T> bgpActionPolicyClass, BgpActionAugPolicy<T> bgpActionPolicy) Register BGP Action Policy Augmentation handler.final <T extends org.opendaylight.yangtools.yang.binding.ChildOf<BgpActions>>
org.opendaylight.yangtools.concepts.AbstractRegistrationregisterBgpActionPolicy
(Class<T> bgpActionPolicyClass, BgpActionPolicy<T> bgpActionPolicy) Register BGP Action Policy Augmentation handler.final <T extends org.opendaylight.yangtools.yang.binding.Augmentation<BgpConditions>,
N>
org.opendaylight.yangtools.concepts.AbstractRegistrationregisterBgpConditionsAugmentationPolicy
(Class<T> conditionPolicyClass, BgpConditionsAugmentationPolicy<T, N> conditionPolicy) Register Bgp Condition Policy Augmentation handler.final <T extends org.opendaylight.yangtools.yang.binding.ChildOf<BgpMatchConditions>,
N>
org.opendaylight.yangtools.concepts.AbstractRegistrationregisterBgpConditionsPolicy
(Class<T> conditionPolicyClass, BgpConditionsPolicy<T, N> conditionPolicy) Register Bgp Condition Policy Augmentation handler.final org.opendaylight.yangtools.concepts.AbstractRegistration
registerConditionPolicy
(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Conditions>> conditionPolicyClass, ConditionsAugPolicy conditionPolicy) Register Condition Policy Augmentation handler.void
start()
Methods inherited from class com.google.common.collect.ForwardingObject
toString
-
Constructor Details
-
SimpleStatementRegistry
-
-
Method Details
-
delegate
-
start
@PostConstruct public void start() -
close
@PreDestroy public void close()- Specified by:
close
in interfaceAutoCloseable
-
applyExportStatement
public final RouteAttributeContainer applyExportStatement(RouteEntryBaseAttributes routeEntryInfo, AfiSafiType afiSafi, BGPRouteEntryExportParameters baseExportParameters, RouteAttributeContainer attributes, Statement statement) Description copied from interface:StatementRegistryConsumer
Apply statement to BGP Route Attributes (Export Policy).- Specified by:
applyExportStatement
in interfaceStatementRegistryConsumer
- Parameters:
routeEntryInfo
- contains route Entry Info(AS, ClusterId, OriginatorId)afiSafi
- Afi Safi TypebaseExportParameters
- export Parametersattributes
- route attributesstatement
- Statement containing Conditions/Actions- Returns:
- modified Route attributes
-
applyImportStatement
public final RouteAttributeContainer applyImportStatement(RouteEntryBaseAttributes routeEntryInfo, AfiSafiType afiSafi, BGPRouteEntryImportParameters routeBaseParameters, RouteAttributeContainer attributes, Statement statement) Description copied from interface:StatementRegistryConsumer
Apply statement to BGP Route Attributes (Import Policy).- Specified by:
applyImportStatement
in interfaceStatementRegistryConsumer
- Parameters:
routeEntryInfo
- contains route Entry Info(AS, ClusterId, OriginatorId)afiSafi
- Afi Safi TyperouteBaseParameters
- route base parametersattributes
- route attributesstatement
- Statement containing Conditions/Actions- Returns:
- modified Route attributes
-
registerConditionPolicy
public final org.opendaylight.yangtools.concepts.AbstractRegistration registerConditionPolicy(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Conditions>> conditionPolicyClass, ConditionsAugPolicy conditionPolicy) Description copied from interface:StatementRegistryProvider
Register Condition Policy Augmentation handler.- Specified by:
registerConditionPolicy
in interfaceStatementRegistryProvider
- Parameters:
conditionPolicyClass
- Conditions Augmentation ClassconditionPolicy
- Condition policy handler- Returns:
- registration ticket
-
registerActionPolicy
public final org.opendaylight.yangtools.concepts.AbstractRegistration registerActionPolicy(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Actions>> actionPolicyClass, ActionsAugPolicy actionPolicy) Description copied from interface:StatementRegistryProvider
Register Action Policy Augmentation handler.- Specified by:
registerActionPolicy
in interfaceStatementRegistryProvider
- Parameters:
actionPolicyClass
- IGP Actions Augmentation ClassactionPolicy
- IGP Actions policy handler- Returns:
- registration ticket
-
registerBgpConditionsPolicy
public final <T extends org.opendaylight.yangtools.yang.binding.ChildOf<BgpMatchConditions>,N> org.opendaylight.yangtools.concepts.AbstractRegistration registerBgpConditionsPolicy(Class<T> conditionPolicyClass, BgpConditionsPolicy<T, N> conditionPolicy) Description copied from interface:BgpStatementRegistryProvider
Register Bgp Condition Policy Augmentation handler.- Specified by:
registerBgpConditionsPolicy
in interfaceBgpStatementRegistryProvider
- Parameters:
conditionPolicyClass
- Conditions Augmentation ClassconditionPolicy
- Condition policy handler- Returns:
- registration ticket
-
registerBgpActionPolicy
public final <T extends org.opendaylight.yangtools.yang.binding.ChildOf<BgpActions>> org.opendaylight.yangtools.concepts.AbstractRegistration registerBgpActionPolicy(Class<T> bgpActionPolicyClass, BgpActionPolicy<T> bgpActionPolicy) Description copied from interface:BgpStatementRegistryProvider
Register BGP Action Policy Augmentation handler.- Specified by:
registerBgpActionPolicy
in interfaceBgpStatementRegistryProvider
- Parameters:
bgpActionPolicyClass
- BGP Actions Augmentation ClassbgpActionPolicy
- BGP Actions policy handler- Returns:
- registration ticket
-
registerBgpConditionsAugmentationPolicy
public final <T extends org.opendaylight.yangtools.yang.binding.Augmentation<BgpConditions>,N> org.opendaylight.yangtools.concepts.AbstractRegistration registerBgpConditionsAugmentationPolicy(Class<T> conditionPolicyClass, BgpConditionsAugmentationPolicy<T, N> conditionPolicy) Description copied from interface:BgpStatementRegistryProvider
Register Bgp Condition Policy Augmentation handler.- Specified by:
registerBgpConditionsAugmentationPolicy
in interfaceBgpStatementRegistryProvider
- Parameters:
conditionPolicyClass
- Conditions Augmentation ClassconditionPolicy
- Condition policy handler- Returns:
- registration ticket
-
registerBgpActionAugmentationPolicy
public final <T extends org.opendaylight.yangtools.yang.binding.Augmentation<BgpActions>> org.opendaylight.yangtools.concepts.AbstractRegistration registerBgpActionAugmentationPolicy(Class<T> bgpActionPolicyClass, BgpActionAugPolicy<T> bgpActionPolicy) Description copied from interface:BgpStatementRegistryProvider
Register BGP Action Policy Augmentation handler.- Specified by:
registerBgpActionAugmentationPolicy
in interfaceBgpStatementRegistryProvider
- Parameters:
bgpActionPolicyClass
- BGP Actions Augmentation ClassbgpActionPolicy
- BGP Actions policy handler- Returns:
- registration ticket
-