/** * Get the node instance for the specific node -creating it if needed * @param hostname node * @return the instance */ public NodeInstance getOrCreate(String hostname) { NodeInstance node = get(hostname); if (node == null) { node = new NodeInstance(hostname, roleSize); put(hostname, node); } return node; }
/** * Get the node instance for the specific node -creating it if needed * @param hostname node * @return the instance */ public NodeInstance getOrCreate(String hostname) { NodeInstance node = get(hostname); if (node == null) { node = new NodeInstance(hostname, roleSize); put(hostname, node); } return node; }