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

    Modifier and Type
    Method
    Description
    void
     
    Get device info.
    void
    registerMastershipWatcher(@NonNull ContextChainMastershipWatcher contextChainMastershipWatcher)
    Registers mastership change listener to context.

    Methods inherited from interface org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService

    closeServiceInstance, instantiateServiceInstance

    Methods 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:
      close in interface AutoCloseable