|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.groiss.cluster.ClusterInfo
public class ClusterInfo
This class can be used to aquire cluster specific data.
Constructor Summary | |
---|---|
ClusterInfo()
|
Method Summary | |
---|---|
static java.lang.String |
getMyNodeId()
Gets the id of this node. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClusterInfo()
Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |