| | |
| | | public void initializeMonitorProvider(ConfigEntry configEntry) |
| | | throws ConfigException, InitializationException |
| | | { |
| | | |
| | | // No initialization is required. |
| | | } |
| | | |
| | |
| | | */ |
| | | public String getMonitorInstanceName() |
| | | { |
| | | |
| | | return "System Information"; |
| | | } |
| | | |
| | |
| | | */ |
| | | public long getUpdateInterval() |
| | | { |
| | | |
| | | // This monitor does not need to run periodically. |
| | | return 0; |
| | | } |
| | |
| | | */ |
| | | public void updateMonitorData() |
| | | { |
| | | |
| | | // This monitor does not need to run periodically. |
| | | return; |
| | | } |
| | |
| | | */ |
| | | public ArrayList<Attribute> getMonitorData() |
| | | { |
| | | |
| | | |
| | | ArrayList<Attribute> attrs = new ArrayList<Attribute>(12); |
| | | |
| | | attrs.add(createAttribute("javaVersion", |
| | |
| | | */ |
| | | private Attribute createAttribute(String name, String value) |
| | | { |
| | | |
| | | AttributeType attrType = DirectoryServer.getDefaultAttributeType(name); |
| | | |
| | | ASN1OctetString encodedValue = new ASN1OctetString(value); |