@ThreadSafe public final class StateProviderImpl extends Object implements org.opendaylight.controller.md.sal.common.api.data.TransactionChainListener, org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService, AutoCloseable
Constructor and Description |
---|
StateProviderImpl(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
int timeout,
BGPTableTypeRegistryConsumer bgpTableTypeRegistry,
BGPStateConsumer stateCollector,
String networkInstanceName,
org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider provider) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
com.google.common.util.concurrent.ListenableFuture<Void> |
closeServiceInstance() |
org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier |
getIdentifier() |
void |
instantiateServiceInstance() |
void |
onTransactionChainFailed(org.opendaylight.controller.md.sal.common.api.data.TransactionChain<?,?> chain,
org.opendaylight.controller.md.sal.common.api.data.AsyncTransaction<?,?> transaction,
Throwable cause) |
void |
onTransactionChainSuccessful(org.opendaylight.controller.md.sal.common.api.data.TransactionChain<?,?> chain) |
public StateProviderImpl(@Nonnull org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, int timeout, @Nonnull BGPTableTypeRegistryConsumer bgpTableTypeRegistry, @Nonnull BGPStateConsumer stateCollector, @Nonnull String networkInstanceName, @Nonnull org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider provider)
public void instantiateServiceInstance()
instantiateServiceInstance
in interface org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService
public void close() throws Exception
close
in interface AutoCloseable
Exception
public void onTransactionChainFailed(org.opendaylight.controller.md.sal.common.api.data.TransactionChain<?,?> chain, org.opendaylight.controller.md.sal.common.api.data.AsyncTransaction<?,?> transaction, Throwable cause)
onTransactionChainFailed
in interface org.opendaylight.controller.md.sal.common.api.data.TransactionChainListener
public void onTransactionChainSuccessful(org.opendaylight.controller.md.sal.common.api.data.TransactionChain<?,?> chain)
onTransactionChainSuccessful
in interface org.opendaylight.controller.md.sal.common.api.data.TransactionChainListener
public com.google.common.util.concurrent.ListenableFuture<Void> closeServiceInstance()
closeServiceInstance
in interface org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService
public org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier getIdentifier()
getIdentifier
in interface org.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier>
Copyright © 2018 OpenDaylight. All rights reserved.