Skip to content
Permalink
Browse files

add nodes attributes to cluster state

  • Loading branch information...
kimchy committed Sep 27, 2010
1 parent d9c2cc9 commit 1f3adc213ff9efcfa10e3440d261883af4b7e820
@@ -120,6 +120,13 @@
builder.startObject(node.id());
builder.field("name", node.name());
builder.field("transport_address", node.address().toString());

builder.startObject("attributes");
for (Map.Entry<String, String> attr : node.attributes().entrySet()) {
builder.field(attr.getKey(), attr.getValue());
}
builder.endObject();

builder.endObject();
}
builder.endObject();

0 comments on commit 1f3adc2

Please sign in to comment.
You can’t perform that action at this time.