| | |
| | | public void initializeMonitorProvider(ConfigEntry configEntry) |
| | | throws ConfigException, InitializationException |
| | | { |
| | | |
| | | maxBacklog = 0; |
| | | totalBacklog = 0; |
| | | numPolls = 0; |
| | |
| | | */ |
| | | public String getMonitorInstanceName() |
| | | { |
| | | |
| | | return "Work Queue"; |
| | | } |
| | | |
| | |
| | | */ |
| | | public long getUpdateInterval() |
| | | { |
| | | |
| | | |
| | | // We will poll the work queue every 10 seconds. |
| | | return 10000; |
| | | } |
| | |
| | | */ |
| | | public void updateMonitorData() |
| | | { |
| | | |
| | | int backlog = workQueue.size(); |
| | | totalBacklog += backlog; |
| | | numPolls++; |
| | |
| | | */ |
| | | public ArrayList<Attribute> getMonitorData() |
| | | { |
| | | |
| | | int backlog = workQueue.size(); |
| | | totalBacklog += backlog; |
| | | numPolls++; |