public class GuardedContextImpl extends Object implements GuardedContext
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
com.google.common.util.concurrent.ListenableFuture<?> |
closeServiceInstance() |
DeviceInfo |
getDeviceInfo()
Get device info.
|
org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier |
getIdentifier() |
void |
instantiateServiceInstance() |
<T> T |
map(Function<OFPContext,T> transformer)
Maps delegate inside guarded context to T.
|
void |
registerMastershipWatcher(ContextChainMastershipWatcher contextChainMastershipWatcher)
Registers mastership change listener to context.
|
com.google.common.util.concurrent.Service.State |
state()
Returns the lifecycle state of the service.
|
String |
toString() |
public com.google.common.util.concurrent.Service.State state()
GuardedContextstate in interface GuardedContextpublic <T> T map(Function<OFPContext,T> transformer)
GuardedContextmap in interface GuardedContextT - the type parametertransformer - the transformerpublic void instantiateServiceInstance()
instantiateServiceInstance in interface org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServicepublic com.google.common.util.concurrent.ListenableFuture<?> closeServiceInstance()
closeServiceInstance in interface org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService@Nonnull public org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier getIdentifier()
getIdentifier in interface org.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier>public DeviceInfo getDeviceInfo()
OFPContextgetDeviceInfo in interface OFPContextpublic void registerMastershipWatcher(@Nonnull ContextChainMastershipWatcher contextChainMastershipWatcher)
OFPContextregisterMastershipWatcher in interface OFPContextcontextChainMastershipWatcher - mastership change listenerpublic void close()
close in interface AutoCloseableclose in interface OFPContextCopyright © 2019 OpenDaylight. All rights reserved.