+ String ip = socketAddress.getAddress().getHostAddress();
+
+ final MountPointNamingStrategy strat = globalConfig.getMountPointNamingStrategy();
+ switch (strat) {
+ case IPONLY:
+ return ip;
+ case IPPORT:
+ return ip + ":" + socketAddress.getPort();
+ default:
+ throw new IllegalStateException("Unhandled naming strategy " + strat);
+ }