Interface OFPContext
-
- All Superinterfaces:
AutoCloseable
,org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService
,org.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier>
- All Known Subinterfaces:
DeviceContext
,GuardedContext
,RoleContext
,RpcContext
,StatisticsContext
- All Known Implementing Classes:
DeviceContextImpl
,GuardedContextImpl
,RoleContextImpl
public interface OFPContext extends AutoCloseable, org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService
General API for all OFP Context.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
DeviceInfo
getDeviceInfo()
Get device info.void
registerMastershipWatcher(@NonNull ContextChainMastershipWatcher contextChainMastershipWatcher)
Registers mastership change listener to context.
-
-
-
Method Detail
-
getDeviceInfo
DeviceInfo getDeviceInfo()
Get device info.- Returns:
- device info
-
registerMastershipWatcher
void registerMastershipWatcher(@NonNull ContextChainMastershipWatcher contextChainMastershipWatcher)
Registers mastership change listener to context.- Parameters:
contextChainMastershipWatcher
- mastership change listener
-
close
void close()
- Specified by:
close
in interfaceAutoCloseable
-
-