Class SrmRpcProvider
java.lang.Object
org.opendaylight.serviceutils.srm.impl.SrmRpcProvider
- All Implemented Interfaces:
AutoCloseable,OdlSrmRpcsService,org.opendaylight.yangtools.yang.binding.RpcService
@Singleton
@RequireServiceComponentRuntime
public final class SrmRpcProvider
extends Object
implements OdlSrmRpcsService, AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionSrmRpcProvider(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.mdsal.binding.api.RpcProviderService rpcProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<RecoverOutput>>recover(RecoverInput input) InvokerecoverRPC.com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<ReinstallOutput>>reinstall(ReinstallInput input) InvokereinstallRPC.
-
Constructor Details
-
SrmRpcProvider
@Inject public SrmRpcProvider(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.mdsal.binding.api.RpcProviderService rpcProvider)
-
-
Method Details
-
close
@PreDestroy public void close()- Specified by:
closein interfaceAutoCloseable
-
recover
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<RecoverOutput>> recover(RecoverInput input) Description copied from interface:OdlSrmRpcsServiceInvokerecoverRPC.Recover a given service or instance- Specified by:
recoverin interfaceOdlSrmRpcsService- Parameters:
input- ofrecover- Returns:
- output of
recover
-
reinstall
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<ReinstallOutput>> reinstall(ReinstallInput input) Description copied from interface:OdlSrmRpcsServiceInvokereinstallRPC.Reinstall a given service- Specified by:
reinstallin interfaceOdlSrmRpcsService- Parameters:
input- ofreinstall- Returns:
- output of
reinstall
-