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 contextChainMastershipWatcher)
Registers mastership change listener to context.
|
void |
setRoleService(SalRoleService salRoleService)
Sets role service.
|
public DeviceInfo getDeviceInfo()
OFPContext
getDeviceInfo
in interface OFPContext
public void setRoleService(SalRoleService salRoleService)
RoleContext
setRoleService
in interface RoleContext
salRoleService
- the sal role servicepublic void registerMastershipWatcher(@Nonnull ContextChainMastershipWatcher contextChainMastershipWatcher)
OFPContext
registerMastershipWatcher
in interface OFPContext
contextChainMastershipWatcher
- mastership change listenerpublic void close()
close
in interface AutoCloseable
close
in interface OFPContext
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 <T> RequestContext<T> createRequestContext()
RequestContextStack
createRequestContext
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 © 2018 OpenDaylight. All rights reserved.