public class SnmpMetricRepository extends Object implements MetricRepository, CollectionConfiguration<SnmpAgent,SnmpCollectionRequest>, org.osgi.service.cm.ManagedService
| Constructor and Description |
|---|
SnmpMetricRepository(String dataCollectionPath,
String dataCollectionDir,
org.osgi.framework.Bundle bundle)
Deprecated.
Should be initialized with URIs for config files instead
|
SnmpMetricRepository(URL dataCollectionConfigURL,
String groupURLs)
Load the specified data collection config file and then load all of the collection
groups from a comma-separated string value.
|
SnmpMetricRepository(URL dataCollectionConfigURL,
URL... dataCollectionGroupURLs) |
| Modifier and Type | Method and Description |
|---|---|
SnmpCollectionRequest |
createRequestForAgent(SnmpAgent agent) |
Metric |
getMetric(String metricName) |
Set<Metric> |
getMetrics(String groupName) |
String |
getPassword() |
String |
getUsername() |
void |
refresh() |
void |
setPassword(String password) |
void |
setUsername(String username) |
void |
updated(Dictionary<String,?> properties) |
public SnmpMetricRepository(String dataCollectionPath, String dataCollectionDir, org.osgi.framework.Bundle bundle) throws Exception
Exceptionpublic SnmpMetricRepository(URL dataCollectionConfigURL, URL... dataCollectionGroupURLs) throws Exception
Exceptionpublic SnmpMetricRepository(URL dataCollectionConfigURL, String groupURLs) throws Exception
dataCollectionConfigURL - groupURLs - Exceptionpublic final void refresh()
throws JAXBException,
IOException
JAXBExceptionIOExceptionpublic SnmpCollectionRequest createRequestForAgent(SnmpAgent agent)
createRequestForAgent in interface CollectionConfiguration<SnmpAgent,SnmpCollectionRequest>public Set<Metric> getMetrics(String groupName)
getMetrics in interface MetricRepositorypublic Metric getMetric(String metricName)
getMetric in interface MetricRepositorypublic String getUsername()
public void setUsername(String username)
public String getPassword()
public void setPassword(String password)
public void updated(Dictionary<String,?> properties) throws org.osgi.service.cm.ConfigurationException
org.osgi.service.cm.ConfigurationExceptionCopyright © 2016. All rights reserved.