public ClusterData createClusterData ( boolean localOnly ) { if ( localOnly ) return new VertxClusterData ( vertx ) ; HazelcastInstance hazelcast = ClusterListenerFactory . getHazelcastInstance ( vertx ) ; if ( hazelcast != null ) { return new HazelcastClusterData ( hazelcast ) ; } else { return new VertxClusterData ( vertx ) ; } }
Creates cluster data .