Description. This method connects to a cluster management server.
int connect ( int retries = 30, int delay = 1, int verbose = 0 )
Parameters. This method takes three parameters, all of which are optional:
retriesspecifies the number of times to retry the connection in the event of failure. The default value is 30.
0means that no additional attempts to connect are made in the event of failure; using a negative value for
retriesresults in the connection attempt being repeated indefinitely.
delayrepresents the number of seconds between reconnect attempts; the default is
verboseindicates whether the method should output a report of its progress, with
1causing this reporting to be enabled; the default is
This method returns an
int, which can have
one of the following 3 values:
0: The connection attempt was successful.
1: Indicates a recoverable error.
-1: Indicates an unrecoverable error.