Class ContextChainImpl

    • Method Detail

      • addContext

        public <T extends OFPContext> void addContext​(@NonNull T context)
        Description copied from interface: ContextChain
        Add context to the chain, if reference already exist ignore it.
        Specified by:
        addContext in interface ContextChain
        Parameters:
        context - child of OFPContext
      • instantiateServiceInstance

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

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

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

        public void registerServices​(org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider clusterSingletonServiceProvider)
        Description copied from interface: ContextChain
        Registers context chain into cluster singleton service.
        Specified by:
        registerServices in interface ContextChain
        Parameters:
        clusterSingletonServiceProvider - provider
      • isClosing

        public boolean isClosing()
        Description copied from interface: ContextChain
        Checks if context chain is currently closing.
        Specified by:
        isClosing in interface ContextChain
        Returns:
        true if context chain is closing
      • addAuxiliaryConnection

        public boolean addAuxiliaryConnection​(@NonNull ConnectionContext connectionContext)
        Description copied from interface: ContextChain
        Add new auxiliary connection if primary is ok.
        Specified by:
        addAuxiliaryConnection in interface ContextChain
        Parameters:
        connectionContext - new connection to the device.
        Returns:
        false if primary connection is broken
      • auxiliaryConnectionDropped

        public boolean auxiliaryConnectionDropped​(@NonNull ConnectionContext connectionContext)
        Description copied from interface: ContextChain
        Check if connection is auxiliary and if yes then continue working.
        Specified by:
        auxiliaryConnectionDropped in interface ContextChain
        Parameters:
        connectionContext - connection to the device
        Returns:
        false if this is primary connection
      • registerDeviceRemovedHandler

        public void registerDeviceRemovedHandler​(@NonNull DeviceRemovedHandler deviceRemovedHandler)
        Description copied from interface: ContextChain
        This method registers device removed handler what will be executed when device should be removed.
        Specified by:
        registerDeviceRemovedHandler in interface ContextChain
        Parameters:
        deviceRemovedHandler - device removed handler