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 TypeMethodDescriptionvoid
close()
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.ServiceGroupIdentifier
void
void
registerMastershipWatcher
(@NonNull ContextChainMastershipWatcher newWatcher) Registers mastership change listener to context.void
setRoleService
(SalRoleService salRoleService) Sets role service.
-
Method Details
-
getDeviceInfo
Description copied from interface:OFPContext
Get device info.- Specified by:
getDeviceInfo
in interfaceOFPContext
- Returns:
- device info
-
setRoleService
Description copied from interface:RoleContext
Sets role service.- Specified by:
setRoleService
in interfaceRoleContext
- Parameters:
salRoleService
- the sal role service
-
registerMastershipWatcher
Description copied from interface:OFPContext
Registers mastership change listener to context.- Specified by:
registerMastershipWatcher
in interfaceOFPContext
- Parameters:
newWatcher
- mastership change listener
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceOFPContext
-
instantiateServiceInstance
public void instantiateServiceInstance()- Specified by:
instantiateServiceInstance
in interfaceorg.opendaylight.mdsal.singleton.common.api.ClusterSingletonService
-
closeServiceInstance
- Specified by:
closeServiceInstance
in interfaceorg.opendaylight.mdsal.singleton.common.api.ClusterSingletonService
-
createRequestContext
Description copied from interface:RequestContextStack
Method returns new request context for current request.- Specified by:
createRequestContext
in 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:
getIdentifier
in interfaceorg.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier>
-