public class ClusterInfo
extends java.lang.Object
Constructor and Description |
---|
ClusterInfo() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getMyNodeId()
Gets the id of this node.
|
static void |
getNodeStatusHAProxy(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.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) throws java.lang.Exception
withDBCheck
- if false, the check is done in memory,
if true the check is done by consulting the database.java.lang.Exception
public static java.lang.String getMyNodeId()
public static void getNodeStatusHAProxy(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
req
- res
- @enterprise 9.0.33982 Copyright © 2001-2023 Groiss Informatics GmbH. All Rights Reserved.