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>
-
Method Summary
Modifier 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.common.api.ServiceGroupIdentifiervoidvoidregisterMastershipWatcher(@NonNull ContextChainMastershipWatcher newWatcher) Registers mastership change listener to context.voidsetRoleService(SalRoleService salRoleService) Sets role service.
-
Method Details
-
getDeviceInfo
Description copied from interface:OFPContextGet device info.- Specified by:
getDeviceInfoin interfaceOFPContext- Returns:
- device info
-
setRoleService
Description copied from interface:RoleContextSets role service.- Specified by:
setRoleServicein interfaceRoleContext- Parameters:
salRoleService- the sal role service
-
registerMastershipWatcher
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
- Specified by:
closeServiceInstancein interfaceorg.opendaylight.mdsal.singleton.common.api.ClusterSingletonService
-
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>
-