Class RoleContextImpl
java.lang.Object
org.opendaylight.openflowplugin.impl.role.RoleContextImpl
- All Implemented Interfaces:
- AutoCloseable,- org.opendaylight.mdsal.singleton.api.ClusterSingletonService,- RequestContextStack,- OFPContext,- RoleContext,- org.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.mdsal.singleton.api.ServiceGroupIdentifier>
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()com.google.common.util.concurrent.ListenableFuture<Void><T> RequestContext<T>Method returns new request context for current request.Get device info.@NonNull org.opendaylight.mdsal.singleton.api.ServiceGroupIdentifiervoidvoidregisterMastershipWatcher(@NonNull ContextChainMastershipWatcher newWatcher) Registers mastership change listener to context.voidsetRoleRpc(SetRole setRole) Sets role service rpc implementation.
- 
Method Details- 
getDeviceInfoDescription copied from interface:OFPContextGet device info.- Specified by:
- getDeviceInfoin interface- OFPContext
- Returns:
- device info
 
- 
setRoleRpcDescription copied from interface:RoleContextSets role service rpc implementation.- Specified by:
- setRoleRpcin interface- RoleContext
- Parameters:
- setRole- the set role rpc
 
- 
registerMastershipWatcherDescription copied from interface:OFPContextRegisters mastership change listener to context.- Specified by:
- registerMastershipWatcherin interface- OFPContext
- Parameters:
- newWatcher- mastership change listener
 
- 
closepublic void close()- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- OFPContext
 
- 
instantiateServiceInstancepublic void instantiateServiceInstance()- Specified by:
- instantiateServiceInstancein interface- org.opendaylight.mdsal.singleton.api.ClusterSingletonService
 
- 
closeServiceInstance- Specified by:
- closeServiceInstancein interface- org.opendaylight.mdsal.singleton.api.ClusterSingletonService
 
- 
createRequestContextDescription copied from interface:RequestContextStackMethod returns new request context for current request.- Specified by:
- createRequestContextin interface- RequestContextStack
- Returns:
- A request context, or null if one cannot be created.
 
- 
getIdentifierpublic @NonNull org.opendaylight.mdsal.singleton.api.ServiceGroupIdentifier getIdentifier()- Specified by:
- getIdentifierin interface- org.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.mdsal.singleton.api.ServiceGroupIdentifier>
 
 
-