@Override public ServerHeartbeat server(String address,int port,boolean isSSL,String clusterId,String displayName,boolean isDynamic){
  Objects.requireNonNull(address);
  Objects.requireNonNull(clusterId);
  if (address.isEmpty()) {
    address="127.0.0.1";
  }
  ClusterHeartbeat cluster=createCluster(clusterId);
  ServerHeartbeat server;
  if (isDynamic) {
    server=cluster.createDynamicServer(address,port,isSSL);
  }
 else {
    server=cluster.createServer(address,port,isSSL);
  }
  if (displayName != null) {
    server.setDisplayName(displayName);
  }
  if (!isDynamic) {
    cluster.addSeedServer(server);
  }
  return server;
}

@ Override public ServerHeartbeat server ( String address , int port , boolean isSSL , String clusterId , String displayName , boolean isDynamic ) { Objects . requireNonNull ( address ) ; Objects . requireNonNull ( clusterId ) ; if ( address . isEmpty ( ) ) { address = "127.0.0.1" ; } ClusterHeartbeat cluster = createCluster ( clusterId ) ; ServerHeartbeat server ; if ( isDynamic ) { server = cluster . createDynamicServer ( address , port , isSSL ) ; } else { server = cluster . createServer ( address , port , isSSL ) ; } if ( displayName != null ) { server . setDisplayName ( displayName ) ; } if ( ! isDynamic ) { cluster . addSeedServer ( server ) ; } return server ; }
create an external / configured server
