public class ClusterInfo extends Object
Constructor and Description |
---|
ClusterInfo() |
Modifier and Type | Method and Description |
---|---|
static String |
getMyNodeId()
Gets the id of this node.
|
static void |
getNodeStatusHAProxy(HttpServletRequest req,
HttpServletResponse res)
Gets the state of the node suitable for healthchecks via haproxy.
|
static boolean |
isClustered()
Determines if the system is clustered.
|
static boolean |
isMainNode(boolean withDBCheck)
Determines if this node is the main cluster node which
runs the cluster timers.
|
public static boolean isClustered()
public static boolean isMainNode(boolean withDBCheck)
withDBCheck
- if false, the check is done in memory,
if true the check is done by consulting the database.public static String getMyNodeId()
public static void getNodeStatusHAProxy(HttpServletRequest req, HttpServletResponse res)
req
- res
- @enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.