Interface OFPContext
- All Superinterfaces:
AutoCloseable,org.opendaylight.mdsal.singleton.api.ClusterSingletonService,org.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.mdsal.singleton.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.api.ClusterSingletonService
General API for all OFP Context.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Get device info.voidregisterMastershipWatcher(@NonNull ContextChainMastershipWatcher contextChainMastershipWatcher) Registers mastership change listener to context.Methods inherited from interface org.opendaylight.mdsal.singleton.api.ClusterSingletonService
closeServiceInstance, instantiateServiceInstanceMethods inherited from interface org.opendaylight.yangtools.concepts.Identifiable
getIdentifier
-
Method Details
-
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:
closein interfaceAutoCloseable
-