Class ArbitratorReconciliationManagerImpl
java.lang.Object
org.opendaylight.openflowplugin.applications.arbitratorreconciliation.impl.ArbitratorReconciliationManagerImpl
- All Implemented Interfaces:
AutoCloseable
,ReconciliationNotificationListener
,ArbitratorReconcileService
,org.opendaylight.yangtools.yang.binding.RpcService
@Singleton
public class ArbitratorReconciliationManagerImpl
extends Object
implements ArbitratorReconcileService, ReconciliationNotificationListener, AutoCloseable
-
Nested Class Summary
Modifier and TypeClassDescriptionfinal class
-
Constructor Summary
ConstructorDescriptionArbitratorReconciliationManagerImpl
(ReconciliationManager reconciliationManager, org.opendaylight.mdsal.binding.api.RpcProviderService rpcProviderService, org.opendaylight.mdsal.binding.api.RpcConsumerRegistry rpcRegistry, org.opendaylight.serviceutils.upgrade.UpgradeState upgradeState) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<CommitActiveBundleOutput>>
Invokecommit-active-bundle
RPC.com.google.common.util.concurrent.ListenableFuture<Boolean>
endReconciliation
(DeviceInfo node) com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<GetActiveBundleOutput>>
Invokeget-active-bundle
RPC.getName()
int
void
start()
com.google.common.util.concurrent.ListenableFuture<Boolean>
-
Constructor Details
-
ArbitratorReconciliationManagerImpl
@Inject public ArbitratorReconciliationManagerImpl(ReconciliationManager reconciliationManager, org.opendaylight.mdsal.binding.api.RpcProviderService rpcProviderService, org.opendaylight.mdsal.binding.api.RpcConsumerRegistry rpcRegistry, org.opendaylight.serviceutils.upgrade.UpgradeState upgradeState)
-
-
Method Details
-
start
@PostConstruct public void start() -
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
commitActiveBundle
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<CommitActiveBundleOutput>> commitActiveBundle(CommitActiveBundleInput input) Description copied from interface:ArbitratorReconcileService
Invokecommit-active-bundle
RPC.Commits the active available bundle in openflowplugin
- Specified by:
commitActiveBundle
in interfaceArbitratorReconcileService
- Parameters:
input
- ofcommit-active-bundle
- Returns:
- output of
commit-active-bundle
-
getActiveBundle
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<GetActiveBundleOutput>> getActiveBundle(GetActiveBundleInput input) Description copied from interface:ArbitratorReconcileService
Invokeget-active-bundle
RPC.Fetches the active available bundle in openflowplugin
- Specified by:
getActiveBundle
in interfaceArbitratorReconcileService
- Parameters:
input
- ofget-active-bundle
- Returns:
- output of
get-active-bundle
-
startReconciliation
public com.google.common.util.concurrent.ListenableFuture<Boolean> startReconciliation(DeviceInfo node) - Specified by:
startReconciliation
in interfaceReconciliationNotificationListener
-
endReconciliation
public com.google.common.util.concurrent.ListenableFuture<Boolean> endReconciliation(DeviceInfo node) - Specified by:
endReconciliation
in interfaceReconciliationNotificationListener
-
getPriority
public int getPriority()- Specified by:
getPriority
in interfaceReconciliationNotificationListener
-
getName
- Specified by:
getName
in interfaceReconciliationNotificationListener
-
getResultState
- Specified by:
getResultState
in interfaceReconciliationNotificationListener
-