public class RoleContextImpl extends Object implements RoleContext
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
com.google.common.util.concurrent.ListenableFuture<Void> |
closeServiceInstance() |
<T> RequestContext<T> |
createRequestContext()
Method returns new request context for current request.
|
DeviceInfo |
getDeviceInfo()
Get device info.
|
org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier |
getIdentifier() |
void |
instantiateServiceInstance() |
void |
registerMastershipWatcher(ContextChainMastershipWatcher newWatcher)
Registers mastership change listener to context.
|
void |
setRoleService(SalRoleService salRoleService)
Sets role service.
|
public DeviceInfo getDeviceInfo()
OFPContextgetDeviceInfo in interface OFPContextpublic void setRoleService(SalRoleService salRoleService)
RoleContextsetRoleService in interface RoleContextsalRoleService - the sal role servicepublic void registerMastershipWatcher(@Nonnull ContextChainMastershipWatcher newWatcher)
OFPContextregisterMastershipWatcher in interface OFPContextnewWatcher - mastership change listenerpublic void close()
close in interface AutoCloseableclose in interface OFPContextpublic void instantiateServiceInstance()
instantiateServiceInstance in interface org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServicepublic com.google.common.util.concurrent.ListenableFuture<Void> closeServiceInstance()
closeServiceInstance in interface org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServicepublic <T> RequestContext<T> createRequestContext()
RequestContextStackcreateRequestContext in interface RequestContextStack@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>Copyright © 2019 OpenDaylight. All rights reserved.