on 06-20-2006 8:57 AM
Hello,
In
i found an interesting hint how to programmatically get instance information from the cluster controller.
Now i still miss some more information about the method JStartupClusterController.restartCluster.
I guess the argument to pass to this method is a timeout value in ms. Anyway, the method didn't work for me. I guess i need to specify more authentication information somewhere else.
Can anyone help me?
Best regards
Dieter
Hi Dieter,
Here is implementation of JStartupClusterController.restartCluster
public void restartCluster(long l) throws JStartupClusterControlException
{
connection.sendCommandToCluster((byte)2);
connection.sendState((byte)0);
connection.waitForClusterState(l, (byte)4, (byte)5);
}
So, this parameter is "how long waitForClusterState" :-).
Best regards, Maksim Rashchynski.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Maksim,
Thank's a lot for your answer. It's worth 10 points
I found out that restartCluster actually just starts a cluster, so the cluster must have been stopped before. It does not shutdown and restart the cluster as i expected from the name of the method.
Best soccer greetings from Germany
Dieter
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.