From a4339d675107a3ca9953c99328039f9c343b161c Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Thu, 11 Aug 2011 21:25:14 +0300 Subject: [PATCH] add getter for open file desc --- .../org/elasticsearch/monitor/process/ProcessStats.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/monitor/process/ProcessStats.java b/modules/elasticsearch/src/main/java/org/elasticsearch/monitor/process/ProcessStats.java index cb696a7eeb0..280b60ee30b 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/monitor/process/ProcessStats.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/monitor/process/ProcessStats.java @@ -54,6 +54,14 @@ public class ProcessStats implements Streamable, Serializable, ToXContent { return timestamp(); } + public long openFileDescriptors() { + return this.openFileDescriptors; + } + + public long getOpenFileDescriptors() { + return openFileDescriptors; + } + public Cpu cpu() { return cpu; }