add toString to cluster block
This commit is contained in:
parent
a0f4359ffa
commit
36bf5ee9fe
|
@ -104,6 +104,15 @@ public class ClusterBlock implements Serializable, Streamable, ToXContent {
|
|||
}
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(id).append(",").append(description).append(", blocks ");
|
||||
for (ClusterBlockLevel level : levels) {
|
||||
sb.append(level.name()).append(",");
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@Override public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
|
Loading…
Reference in New Issue