Class ClusterHelper
java.lang.Object
de.espirit.firstspirit.server.clustering.ClusterHelper
Helper class for controlling cluster nodes.
- Since:
- 4.2.472
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
clearProjectCaches
(@NotNull Connection connection, long projectId) Clear cached resources on a cluster node.static void
clearProjectCaches
(@NotNull Connection connection, @NotNull String clusterNodeName, long projectId) Clear cached resources on a cluster node.
-
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 serverprojectId
- 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 serverprojectId
- the project id- Throws:
IOException
- thrown if an error occured during communication with the cluster node- Since:
- 4.2.472
-