void set_next_Cloud ( H2ONode [ ] h2os , int hash ) { synchronized ( this ) { int idx = _idx + 1 ; // Unique 1-byte Cloud index if ( idx == 256 ) idx = 1 ; // wrap, avoiding zero CLOUDS [ idx ] = CLOUD = new H2O ( h2os , hash , idx ) ; } SELF . _heartbeat . _cloud_size = ( char ) CLOUD . size ( ) ; H2O . CLOUD . _node_ip_to_index = new HashMap <> ( ) ; for ( H2ONode node : H2O . CLOUD . _memary ) { H2O . CLOUD . _node_ip_to_index . put ( node . getIpPortString ( ) , node . index ( ) ) ; } }
member list .