//used only for testing;
void open()
{
if (isEnabled())
{
GroupLeadershipConnectionFactory groupLeadershipConnFactory = new GroupLeadershipConnectionFactoryZkClientImpl(_config.getClusterServerList(),
_config.getSessionTimeoutMillis(),
_config.getConnectionTimeoutMillis());
_connection = groupLeadershipConnFactory.getConnection();
addMember(_config.getDomain(),_config.getGroup(),_config.getName(),_config.getSharedDataPath(),_config.isMastershipRequiredForWrite());
}
}