add missing getters to FsInfo.IoStats class

Without the getters there is no way to retrieve the values for its instance members from the java api, they only get printed out on the REST layer
This commit is contained in:
javanna 2016-09-05 16:58:38 +02:00 committed by Luca Cavanna
parent af633a293c
commit dae0580a67
1 changed files with 24 additions and 0 deletions

View File

@ -386,6 +386,30 @@ public class FsInfo implements Iterable<FsInfo.Path>, Writeable, ToXContent {
out.writeLong(totalWriteKilobytes);
}
public DeviceStats[] getDevicesStats() {
return devicesStats;
}
public long getTotalOperations() {
return totalOperations;
}
public long getTotalReadOperations() {
return totalReadOperations;
}
public long getTotalWriteOperations() {
return totalWriteOperations;
}
public long getTotalReadKilobytes() {
return totalReadKilobytes;
}
public long getTotalWriteKilobytes() {
return totalWriteKilobytes;
}
@Override
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
if (devicesStats.length > 0) {