Interface ContextChain

    • Method Detail

      • addContext

        <T extends OFPContext> void addContext​(@NonNull T context)
        Add context to the chain, if reference already exist ignore it.
        Parameters:
        context - child of OFPContext
      • makeContextChainStateSlave

        void makeContextChainStateSlave()
        Slave was successfully set.
      • registerServices

        void registerServices​(org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider clusterSingletonServiceProvider)
        Registers context chain into cluster singleton service.
        Parameters:
        clusterSingletonServiceProvider - provider
      • isClosing

        boolean isClosing()
        Checks if context chain is currently closing.
        Returns:
        true if context chain is closing
      • addAuxiliaryConnection

        boolean addAuxiliaryConnection​(@NonNull ConnectionContext connectionContext)
        Add new auxiliary connection if primary is ok.
        Parameters:
        connectionContext - new connection to the device.
        Returns:
        false if primary connection is broken
      • auxiliaryConnectionDropped

        boolean auxiliaryConnectionDropped​(@NonNull ConnectionContext connectionContext)
        Check if connection is auxiliary and if yes then continue working.
        Parameters:
        connectionContext - connection to the device
        Returns:
        false if this is primary connection
      • registerDeviceRemovedHandler

        void registerDeviceRemovedHandler​(@NonNull DeviceRemovedHandler deviceRemovedHandler)
        This method registers device removed handler what will be executed when device should be removed.
        Parameters:
        deviceRemovedHandler - device removed handler