@Test public void testValidCluster() { Node[] nodes = Stream.of( newTestNode("node1", "localhost1"), newTestNode("node2", "localhost2", Testing.N_UIDS[2]) ).map(node -> node .setSecurityAuditLogDir(RawPath.valueOf("audit-" + random.nextInt())) .setSecurityDir(RawPath.valueOf("security-root" + random.nextInt())) .putDataDir("dir-1", RawPath.valueOf("some-path" + random.nextInt())) .setBackupDir(RawPath.valueOf("backup-" + random.nextInt())) .setMetadataDir(RawPath.valueOf("metadata-" + random.nextInt())) .setLogDir(RawPath.valueOf("logs-" + random.nextInt())) .setName("-" + random.nextInt()) .setHostname("host-" + random.nextInt()) .setPort(1 + random.nextInt(65500)) .setGroupPort(1 + random.nextInt(65500)) .setBindAddress(generateAddress()) .setGroupBindAddress(generateAddress()) ).toArray(Node[]::new); Cluster cluster = newTestCluster(newTestStripe("stripe1").addNodes(nodes)) .setSecurityAuthc("file") .setSecuritySslTls(true) .setSecurityWhitelist(false) .putOffheapResource("main", 1L, GB) .setFailoverPriority(consistency()) .setClientReconnectWindow(100L, SECONDS) .setClientLeaseDuration(100L, SECONDS); new ClusterValidator(cluster).validate(); }
public void validate() throws MalformedClusterException { validate(Version.CURRENT); }
ClusterValidator { public void validate() throws MalformedClusterException { validate(Version.CURRENT); } }
ClusterValidator { public void validate() throws MalformedClusterException { validate(Version.CURRENT); } ClusterValidator(Cluster cluster); }
ClusterValidator { public void validate() throws MalformedClusterException { validate(Version.CURRENT); } ClusterValidator(Cluster cluster); void validate(); void validate(Version version); }
ClusterValidator { public void validate() throws MalformedClusterException { validate(Version.CURRENT); } ClusterValidator(Cluster cluster); void validate(); void validate(Version version);  }