Class ClusterHelper

java.lang.Object
de.espirit.firstspirit.server.clustering.ClusterHelper

public class ClusterHelper extends Object
Helper class for controlling cluster nodes.
Since:
4.2.472
  • Constructor Details

    • ClusterHelper

      public ClusterHelper()
  • Method Details

    • clearProjectCaches

      public static void clearProjectCaches(@NotNull @NotNull Connection connection, @NotNull @NotNull String clusterNodeName, long projectId) throws IOException
      Clear cached resources on a cluster node.
      Parameters:
      connection - the connection to the FirstSpirit server
      projectId - the project id
      Throws:
      IOException - thrown if an error occured during communication with the cluster node
      Since:
      4.2.472
    • clearProjectCaches

      public static void clearProjectCaches(@NotNull @NotNull Connection connection, long projectId) throws IOException
      Clear cached resources on a cluster node.
      Parameters:
      connection - the connection to the FirstSpirit server
      projectId - the project id
      Throws:
      IOException - thrown if an error occured during communication with the cluster node
      Since:
      4.2.472