Changed es version from string to class Version.

This commit is contained in:
Martijn van Groningen 2012-12-06 15:37:03 +01:00
parent 966fdfdfb8
commit 591a76bd88
1 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ public class NodeService extends AbstractComponent {
@Nullable
private String hostname;
private final String version;
private final Version version;
@Inject
public NodeService(Settings settings, ThreadPool threadPool, MonitorService monitorService, Discovery discovery, ClusterService clusterService, TransportService transportService, IndicesService indicesService) {
@ -76,7 +76,7 @@ public class NodeService extends AbstractComponent {
if (address != null) {
this.hostname = address.getHostName();
}
this.version = Version.CURRENT.toString();
this.version = Version.CURRENT;
}
public void setHttpServer(@Nullable HttpServer httpServer) {