Interface IClusterNodeServerProvider

  • All Superinterfaces:
    java.lang.AutoCloseable, IPacketSender
    All Known Implementing Classes:
    DefaultClusterNodeServerProvider

    public interface IClusterNodeServerProvider
    extends java.lang.AutoCloseable, IPacketSender
    Represents the full management of all nodes of the cluster. It's manage all nodes that are configured on the platform
    • Method Detail

      • getNodeServers

        java.util.Collection<IClusterNodeServer> getNodeServers()
        Returns the represent nodes that are configured on the application. The nodes shouldn't be online
      • getNodeServer

        IClusterNodeServer getNodeServer​(java.lang.String uniqueId)
        Returns the node with the specific uniqueId that is configured
        Parameters:
        uniqueId - the uniqueId from the node, that should retrieve
        Returns:
        the IClusterNodeServer instance or null if the node doesn't registered
      • getNodeServer

        IClusterNodeServer getNodeServer​(INetworkChannel channel)
        Returns the node with the specific channel that is configured
        Parameters:
        channel - the channel, that the node is connected with
        Returns:
        the IClusterNodeServer instance or null if the node doesn't registered
      • setClusterServers

        void setClusterServers​(NetworkCluster networkCluster)
        Set, replace or update all cluster nodes that are configured
        Parameters:
        networkCluster - the specific cluster network node configuration, that can create new IClusterNodeServer instances
      • deployTemplateInCluster

        void deployTemplateInCluster​(ServiceTemplate serviceTemplate,
                                     byte[] zipResource)
        Deploys to all online nodes a packet with an zip byte array resource.
        Parameters:
        serviceTemplate - the specific template prefix and name configuration
        zipResource - the template data as zip archive resource