logger.info("Connected to mongodb at " + contactNode + " on port " + defaultPort);
}
catch (NumberFormatException e)
{
logger.error("Invalid format for MONGODB port, Unale to connect!" + "; Caused by:" + e.getMessage());
throw new ClientLoaderException(e);
}
catch (UnknownHostException e)
{
logger.error("Unable to connect to MONGODB at host " + contactNode + "; Caused by:" + e.getMessage());
throw new ClientLoaderException(e);
}
catch (MongoException e)
{
logger.error("Unable to connect to MONGODB; Caused by:" + e.getMessage());
throw new ClientLoaderException(e);
}
DB mongoDB = mongo.getDB(keyspace);
try