Interface AppNodeRegistryPlugin

  • All Superinterfaces:
    io.vertigo.core.node.component.CoreComponent, io.vertigo.core.node.component.Plugin
    All Known Implementing Classes:
    DbAppNodeRegistryPlugin, RedisAppNodeRegistryPlugin, SingleAppNodeRegistryPlugin

    public interface AppNodeRegistryPlugin
    extends io.vertigo.core.node.component.Plugin
    Plugin for storing and querying the node topology of an App.
    Author:
    mlaroche
    • Method Detail

      • register

        void register​(AppNode appNode)
        Register a node
        Parameters:
        appNode - the node to register
      • unregister

        void unregister​(AppNode appNode)
        Unregister a node
        Parameters:
        appNode - the node to unregister
      • getTopology

        List<AppNode> getTopology()
        Get the whole topology of the app
        Returns:
        the list of node of the app
      • find

        Optional<AppNode> find​(String nodeId)
        Find a node in the topology with the given id
        Parameters:
        nodeId - the id to look for
        Returns:
        an optional Node
      • updateStatus

        void updateStatus​(AppNode appNode)
        Update the status of a node
        Parameters:
        appNode - the node to update