use of org.bboxdb.misc.BBoxDBConfiguration in project bboxdb by jnidzwetzki.
the class ZookeeperClientFactory method getLocalInstanceName.
/**
* Get the name of the local instance
* @param bboxdbConfiguration
* @return
*/
public static synchronized BBoxDBInstance getLocalInstanceName() {
if (localInstanceName == null) {
final BBoxDBConfiguration configuration = BBoxDBConfigurationManager.getConfiguration();
final String localIp = configuration.getLocalip();
final int localPort = configuration.getNetworkListenPort();
localInstanceName = new BBoxDBInstance(localIp, localPort, Const.VERSION);
}
return localInstanceName;
}
Aggregations