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
Nested Classes Modifier and Type Class Description class
ArbitratorReconciliationManagerImpl.CommitActiveBundleCallback
-
Constructor Summary
Constructors Constructor Description ArbitratorReconciliationManagerImpl(ReconciliationManager reconciliationManager, org.opendaylight.mdsal.binding.api.RpcProviderService rpcProviderService, org.opendaylight.mdsal.binding.api.RpcConsumerRegistry rpcRegistry, org.opendaylight.serviceutils.upgrade.UpgradeState upgradeState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<CommitActiveBundleOutput>>
commitActiveBundle(CommitActiveBundleInput input)
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>>
getActiveBundle(GetActiveBundleInput input)
Invokeget-active-bundle
RPC.String
getName()
int
getPriority()
ResultState
getResultState()
void
start()
com.google.common.util.concurrent.ListenableFuture<Boolean>
startReconciliation(DeviceInfo node)
-
-
-
Constructor Detail
-
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 Detail
-
start
@PostConstruct public void start()
-
close
@PreDestroy public void close() throws Exception
- 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
public String getName()
- Specified by:
getName
in interfaceReconciliationNotificationListener
-
getResultState
public ResultState getResultState()
- Specified by:
getResultState
in interfaceReconciliationNotificationListener
-
-