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
ConstructorsConstructorDescriptionMemoryResult(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 TypeMethodDescriptionlonglonglonglonggetRowData(int index) Gets the data for one row.intGets the number of data elements for this result.longlongMethods inherited from class com.aoindustries.noc.monitor.common.TableMultiResult
getAlertLevel, getErrorMethods 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:TableMultiResultGets the number of data elements for this result.- Specified by:
getRowDataSizein classTableMultiResult
-
getRowData
Description copied from class:TableMultiResultGets 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:
getRowDatain 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()
-
