use of org.bboxdb.distribution.membership.BBoxDBInstanceManager in project bboxdb by jnidzwetzki.
the class CLI method actionShowInstances.
/**
* Show all discovered instances
* @param line
*/
protected void actionShowInstances(final CommandLine line) {
System.out.println("Show all discovered BBoxDB instances");
final BBoxDBInstanceManager distributedInstanceManager = BBoxDBInstanceManager.getInstance();
final List<BBoxDBInstance> allInstances = distributedInstanceManager.getInstances();
allInstances.sort((i1, i2) -> i1.getIp().compareTo(i2.getIp()));
System.out.println();
System.out.println("#######");
allInstances.forEach(i -> System.out.println(i));
System.out.println("#######");
}
Aggregations