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
ConstructorDescriptionSrmRpcProvider
(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.mdsal.binding.api.RpcProviderService rpcProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<RecoverOutput>>
recover
(RecoverInput input) Invokerecover
RPC.com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<ReinstallOutput>>
reinstall
(ReinstallInput input) Invokereinstall
RPC.
-
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:
close
in interfaceAutoCloseable
-
recover
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<RecoverOutput>> recover(RecoverInput input) Description copied from interface:OdlSrmRpcsService
Invokerecover
RPC.Recover a given service or instance
- Specified by:
recover
in 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:OdlSrmRpcsService
Invokereinstall
RPC.Reinstall a given service
- Specified by:
reinstall
in interfaceOdlSrmRpcsService
- Parameters:
input
- ofreinstall
- Returns:
- output of
reinstall
-