@Component(value="foreignSourceConfigRestService") public class ForeignSourceConfigRestService extends OnmsRestService implements org.springframework.beans.factory.InitializingBean
Modifier and Type | Class and Description |
---|---|
static class |
ForeignSourceConfigRestService.ElementList
The Class ElementList.
|
static class |
ForeignSourceConfigRestService.ParameterComparator
The Class ParameterComparator.
|
static class |
ForeignSourceConfigRestService.SimplePluginConfig
The Class SimplePluginConfig.
|
static class |
ForeignSourceConfigRestService.SimplePluginConfigList
The Class SimplePluginConfigList.
|
static class |
ForeignSourceConfigRestService.SimplePluginParameter
The Class SimplePluginParameter.
|
OnmsRestService.ComparisonOperation
Modifier and Type | Field and Description |
---|---|
protected CollectdConfigFactory |
m_collectdConfigFactory |
protected ForeignSourceService |
m_foreignSourceService
The foreign source service.
|
protected PollerConfig |
m_pollerConfig
The poller configuration.
|
DEFAULT_LIMIT
Constructor and Description |
---|
ForeignSourceConfigRestService() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
ForeignSourceConfigRestService.ElementList |
getAssets()
Gets the assets.
|
ForeignSourceConfigRestService.SimplePluginConfigList |
getAvailableDetectors()
Gets the available detectors.
|
ForeignSourceConfigRestService.SimplePluginConfigList |
getAvailablePolicies()
Gets the available policies.
|
ForeignSourceConfigRestService.ElementList |
getCategories()
Gets the categories.
|
protected ForeignSourceConfigRestService.SimplePluginConfigList |
getPlugins(boolean isPolicies)
Gets the Plugins.
|
ForeignSourceConfigRestService.ElementList |
getServices(String groupName)
Gets the services.
|
applyQueryFilters, applyQueryFilters, getBadRequestResponse, getBeanWrapperForClass, getException, getException, getNumericValue, getRedirectUri, readLock, readUnlock, removeParameter, removeParameter, setProperties, writeLock, writeUnlock
@Autowired protected ForeignSourceService m_foreignSourceService
@Autowired protected PollerConfig m_pollerConfig
@Autowired protected CollectdConfigFactory m_collectdConfigFactory
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public ForeignSourceConfigRestService.SimplePluginConfigList getAvailablePolicies()
public ForeignSourceConfigRestService.SimplePluginConfigList getAvailableDetectors()
public ForeignSourceConfigRestService.ElementList getServices(String groupName)
It will include all the configured service monitors from poller-configuration.xml.
If the groupName is not null, it will include the services defined on the foreign source.
groupName
- the group namepublic ForeignSourceConfigRestService.ElementList getAssets()
public ForeignSourceConfigRestService.ElementList getCategories()
protected ForeignSourceConfigRestService.SimplePluginConfigList getPlugins(boolean isPolicies)
isPolicies
- the is policiesCopyright © 2021. All rights reserved.