|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groiss.cluster.ClusterInfo
public class ClusterInfo
This class can be used to aquire cluster specific data.
| Constructor Summary | |
|---|---|
ClusterInfo()
|
|
| Method Summary | |
|---|---|
static 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 Exception
withDBCheck - if false, the check is done in memory,
if true the check is done by consulting the database.
Exceptionpublic static String getMyNodeId()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||