public final class SingletonGetConstantService extends Object implements DOMRpcImplementation, org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService
Modifier and Type | Method and Description |
---|---|
com.google.common.util.concurrent.ListenableFuture<Void> |
closeServiceInstance() |
org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier |
getIdentifier() |
void |
instantiateServiceInstance() |
com.google.common.util.concurrent.CheckedFuture<DOMRpcResult,DOMRpcException> |
invokeRpc(DOMRpcIdentifier rpc,
org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?> input)
Initiate invocation of the RPC.
|
static org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceRegistration |
registerNew(org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider singletonService,
DOMRpcProviderService rpcProviderService,
String constant) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
invocationCost
public static org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceRegistration registerNew(org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider singletonService, DOMRpcProviderService rpcProviderService, String constant)
@Nonnull public com.google.common.util.concurrent.CheckedFuture<DOMRpcResult,DOMRpcException> invokeRpc(@Nonnull DOMRpcIdentifier rpc, @Nullable org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?> input)
DOMRpcImplementation
invokeRpc
in interface DOMRpcImplementation
rpc
- RPC identifier which was invokedinput
- Input arguments, null if the RPC does not take any.CheckedFuture
which will return either a result structure,
or report a subclass of DOMRpcException
reporting a transport
error.public void instantiateServiceInstance()
instantiateServiceInstance
in interface org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService
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 © 2019 OpenDaylight. All rights reserved.