public abstract class PerformanceMonitor extends Object
| Constructor and Description |
|---|
PerformanceMonitor() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
deinit()
Called to do some clean up procedures, for example to release some resources allocated in the init() method
|
abstract String |
getDescription() |
int |
getPollInterval() |
abstract void |
init(ReadingBean[] readings)
Called before start polling the monitor for statistical data.
|
boolean |
isInitialized() |
abstract List<ReadingBean> |
pollNewData()
Called repetitively in intervals specified by the user.
|
abstract List<ReadingBean> |
pollNewDataForFirstTime()
Called only once, then the pollNewData method is called repetitively in intervals specified by the user.
|
void |
setInitialized() |
void |
setPollInterval(int pollInterval)
Set polling interval in seconds
|
public abstract void init(ReadingBean[] readings) throws Exception
readings - list of statistical readings the user wants to get monitoredExceptionpublic void setPollInterval(int pollInterval)
pollInterval - the polling interval in secondspublic int getPollInterval()
public boolean isInitialized()
public void setInitialized()
public abstract List<ReadingBean> pollNewDataForFirstTime() throws Exception
Exceptionpublic abstract List<ReadingBean> pollNewData() throws Exception
Exceptionpublic abstract void deinit()
throws Exception
Exceptionpublic abstract String getDescription()
Copyright © 2017 Axway Software. All rights reserved.