Class MemoryResult
java.lang.Object
com.aoindustries.noc.monitor.common.Result
com.aoindustries.noc.monitor.common.TableMultiResult
com.aoindustries.noc.monitor.common.MemoryResult
- All Implemented Interfaces:
Serializable
- Author:
- AO Industries, Inc.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMemoryResult
(long time, long latency, AlertLevel alertLevel, long memTotal, long memFree, long buffers, long cached, long swapTotal, long swapFree) MemoryResult
(long time, long latency, AlertLevel alertLevel, String error) -
Method Summary
Modifier and TypeMethodDescriptionlong
long
long
long
getRowData
(int index) Gets the data for one row.int
Gets the number of data elements for this result.long
long
Methods inherited from class com.aoindustries.noc.monitor.common.TableMultiResult
getAlertLevel, getError
Methods inherited from class com.aoindustries.noc.monitor.common.Result
getLatency, getTime
-
Constructor Details
-
MemoryResult
-
MemoryResult
public MemoryResult(long time, long latency, AlertLevel alertLevel, long memTotal, long memFree, long buffers, long cached, long swapTotal, long swapFree)
-
-
Method Details
-
getRowDataSize
public int getRowDataSize()Description copied from class:TableMultiResult
Gets the number of data elements for this result.- Specified by:
getRowDataSize
in classTableMultiResult
-
getRowData
Description copied from class:TableMultiResult
Gets the data for one row. This should not include the time and latency, they are implied. When there is an error, getRowData will not be checked and should return null.- Specified by:
getRowData
in classTableMultiResult
-
getMemTotal
public long getMemTotal() -
getMemFree
public long getMemFree() -
getBuffers
public long getBuffers() -
getCached
public long getCached() -
getSwapTotal
public long getSwapTotal() -
getSwapFree
public long getSwapFree()
-