private InetSocketAddress addrFromString(String key) throws IgniteSpiException {
  String[] res=key.split("#");
  if (res.length != 2)   throw new IgniteSpiException("Invalid address string: " + key);
  int port;
  try {
    port=Integer.parseInt(res[1]);
  }
 catch (  NumberFormatException e) {
    throw new IgniteSpiException("Invalid port number: " + res[1]);
  }
  return new InetSocketAddress(res[0],port);
}

private InetSocketAddress addrFromString ( String key ) throws IgniteSpiException { String [ ] res = key . split ( "#" ) ; if ( res . length != 2 ) throw new IgniteSpiException ( "Invalid address string: " + key ) ; int port ; try { port = Integer . parseInt ( res [ 1 ] ) ; } catch ( NumberFormatException e ) { throw new IgniteSpiException ( "Invalid port number: " + res [ 1 ] ) ; } return new InetSocketAddress ( res [ 0 ] , port ) ; }
constructs a node address from bucket ' s key .
