use non deprecated methods

This commit is contained in:
Shay Banon 2012-02-02 12:45:20 +02:00
parent 5a1cbe0c83
commit 07ba39740b
1 changed files with 2 additions and 2 deletions

View File

@ -90,12 +90,12 @@ public class HttpServer extends AbstractLifecycleComponent<HttpServer> {
if (logger.isInfoEnabled()) {
logger.info("{}", transport.boundAddress());
}
nodeService.putNodeAttribute("http_address", transport.boundAddress().publishAddress().toString());
nodeService.putAttribute("http_address", transport.boundAddress().publishAddress().toString());
}
@Override
protected void doStop() throws ElasticSearchException {
nodeService.removeNodeAttribute("http_address");
nodeService.removeAttribute("http_address");
transport.stop();
}