Class RoleContextImpl

java.lang.Object
org.opendaylight.openflowplugin.impl.role.RoleContextImpl
All Implemented Interfaces:
AutoCloseable, org.opendaylight.mdsal.singleton.api.ClusterSingletonService, RequestContextStack, OFPContext, RoleContext, org.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.mdsal.singleton.api.ServiceGroupIdentifier>

public class RoleContextImpl extends Object implements RoleContext
  • Method Details

    • getDeviceInfo

      public DeviceInfo getDeviceInfo()
      Description copied from interface: OFPContext
      Get device info.
      Specified by:
      getDeviceInfo in interface OFPContext
      Returns:
      device info
    • setRoleRpc

      public void setRoleRpc(SetRole setRole)
      Description copied from interface: RoleContext
      Sets role service rpc implementation.
      Specified by:
      setRoleRpc in interface RoleContext
      Parameters:
      setRole - the set role rpc
    • registerMastershipWatcher

      public void registerMastershipWatcher(@NonNull ContextChainMastershipWatcher newWatcher)
      Description copied from interface: OFPContext
      Registers mastership change listener to context.
      Specified by:
      registerMastershipWatcher in interface OFPContext
      Parameters:
      newWatcher - mastership change listener
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface OFPContext
    • instantiateServiceInstance

      public void instantiateServiceInstance()
      Specified by:
      instantiateServiceInstance in interface org.opendaylight.mdsal.singleton.api.ClusterSingletonService
    • closeServiceInstance

      public com.google.common.util.concurrent.ListenableFuture<Void> closeServiceInstance()
      Specified by:
      closeServiceInstance in interface org.opendaylight.mdsal.singleton.api.ClusterSingletonService
    • createRequestContext

      public <T> RequestContext<T> createRequestContext()
      Description copied from interface: RequestContextStack
      Method returns new request context for current request.
      Specified by:
      createRequestContext in interface RequestContextStack
      Returns:
      A request context, or null if one cannot be created.
    • getIdentifier

      public @NonNull org.opendaylight.mdsal.singleton.api.ServiceGroupIdentifier getIdentifier()
      Specified by:
      getIdentifier in interface org.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.mdsal.singleton.api.ServiceGroupIdentifier>