Class RoleContextImpl
- java.lang.Object
 - 
- org.opendaylight.openflowplugin.impl.role.RoleContextImpl
 
 
- 
- All Implemented Interfaces:
 AutoCloseable,org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService,RequestContextStack,OFPContext,RoleContext,org.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier>
public class RoleContextImpl extends Object implements RoleContext
 
- 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()com.google.common.util.concurrent.ListenableFuture<Void>closeServiceInstance()<T> RequestContext<T>createRequestContext()Method returns new request context for current request.DeviceInfogetDeviceInfo()Get device info.@NonNull org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifiergetIdentifier()voidinstantiateServiceInstance()voidregisterMastershipWatcher(@NonNull ContextChainMastershipWatcher newWatcher)Registers mastership change listener to context.voidsetRoleService(SalRoleService salRoleService)Sets role service. 
 - 
 
- 
- 
Method Detail
- 
getDeviceInfo
public DeviceInfo getDeviceInfo()
Description copied from interface:OFPContextGet device info.- Specified by:
 getDeviceInfoin interfaceOFPContext- Returns:
 - device info
 
 
- 
setRoleService
public void setRoleService(SalRoleService salRoleService)
Description copied from interface:RoleContextSets role service.- Specified by:
 setRoleServicein interfaceRoleContext- Parameters:
 salRoleService- the sal role service
 
- 
registerMastershipWatcher
public void registerMastershipWatcher(@NonNull ContextChainMastershipWatcher newWatcher)
Description copied from interface:OFPContextRegisters mastership change listener to context.- Specified by:
 registerMastershipWatcherin interfaceOFPContext- Parameters:
 newWatcher- mastership change listener
 
- 
close
public void close()
- Specified by:
 closein interfaceAutoCloseable- Specified by:
 closein interfaceOFPContext
 
- 
instantiateServiceInstance
public void instantiateServiceInstance()
- Specified by:
 instantiateServiceInstancein interfaceorg.opendaylight.mdsal.singleton.common.api.ClusterSingletonService
 
- 
closeServiceInstance
public com.google.common.util.concurrent.ListenableFuture<Void> closeServiceInstance()
- Specified by:
 closeServiceInstancein interfaceorg.opendaylight.mdsal.singleton.common.api.ClusterSingletonService
 
- 
createRequestContext
public <T> RequestContext<T> createRequestContext()
Description copied from interface:RequestContextStackMethod returns new request context for current request.- Specified by:
 createRequestContextin interfaceRequestContextStack- Returns:
 - A request context, or null if one cannot be created.
 
 
- 
getIdentifier
public @NonNull org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier getIdentifier()
- Specified by:
 getIdentifierin interfaceorg.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier>
 
 - 
 
 -