expose meteData directory

This commit is contained in:
Shay Banon 2011-09-12 21:33:33 +03:00
parent 93b1759804
commit d8377074a4
1 changed files with 5 additions and 0 deletions

View File

@ -19,6 +19,7 @@
package org.elasticsearch.cluster.routing.allocation;
import org.elasticsearch.cluster.metadata.MetaData;
import org.elasticsearch.cluster.node.DiscoveryNodes;
import org.elasticsearch.cluster.routing.RoutingNodes;
import org.elasticsearch.cluster.routing.RoutingTable;
@ -88,6 +89,10 @@ public class RoutingAllocation {
return routingNodes;
}
public MetaData metaData() {
return routingNodes.metaData();
}
public DiscoveryNodes nodes() {
return nodes;
}