cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically restart cluster

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member182372
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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

Answers (0)