public void close(){
  if (log.isLoggable(Level.FINEST)) {
    log.finest("Close Elasticsearch node=" + node + " client="+ client);
  }
  if (client != null) {
    client.close();
    client=null;
  }
  if (node != null) {
    node.stop();
    node=null;
  }
}

public void close ( ) { if ( log . isLoggable ( Level . FINEST ) ) { log . finest ( "Close Elasticsearch node=" + node + " client=" + client ) ; } if ( client != null ) { client . close ( ) ; client = null ; } if ( node != null ) { node . stop ( ) ; node = null ; } }
this method closes the elasticsearch node .
