Class ConnectorConfig
- java.lang.Object
-
- org.opennms.netmgt.telemetry.config.model.ConnectorConfig
-
- All Implemented Interfaces:
ConnectorDefinition
,TelemetryBeanDefinition
public class ConnectorConfig extends Object implements ConnectorDefinition
-
-
Constructor Summary
Constructors Constructor Description ConnectorConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getClassName()
The type of the beanString
getName()
The name of the connect.List<PackageConfig>
getPackages()
Packages may contain settings for specific sources.Map<String,String>
getParameterMap()
Additional parameters for the bean, e.g.List<Parameter>
getParameters()
QueueConfig
getQueue()
String
getQueueName()
The name of the queue the connector "writes" to.String
getServiceName()
The name of the IP-service associated with this connector definitionint
hashCode()
boolean
isEnabled()
void
setClassName(String className)
void
setEnabled(boolean enabled)
void
setName(String name)
void
setPackages(List<PackageConfig> packages)
void
setParameters(List<Parameter> parameters)
void
setQueue(QueueConfig queue)
void
setServiceName(String serviceName)
String
toString()
-
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:ConnectorDefinition
The name of the connect.- Specified by:
getName
in interfaceConnectorDefinition
- Specified by:
getName
in interfaceTelemetryBeanDefinition
- Returns:
- the protocol name
-
setName
public void setName(String name)
-
getClassName
public String getClassName()
Description copied from interface:TelemetryBeanDefinition
The type of the bean- Specified by:
getClassName
in interfaceTelemetryBeanDefinition
-
setClassName
public void setClassName(String className)
-
getServiceName
public String getServiceName()
Description copied from interface:ConnectorDefinition
The name of the IP-service associated with this connector definition- Specified by:
getServiceName
in interfaceConnectorDefinition
- Returns:
- the name of the service
-
setServiceName
public void setServiceName(String serviceName)
-
getQueue
public QueueConfig getQueue()
-
setQueue
public void setQueue(QueueConfig queue)
-
getQueueName
public String getQueueName()
Description copied from interface:ConnectorDefinition
The name of the queue the connector "writes" to.- Specified by:
getQueueName
in interfaceConnectorDefinition
- Returns:
- The name of the queue the parser "writes" to. Must not be null.
-
isEnabled
public boolean isEnabled()
-
setEnabled
public void setEnabled(boolean enabled)
-
getParameterMap
public Map<String,String> getParameterMap()
Description copied from interface:TelemetryBeanDefinition
Additional parameters for the bean, e.g. to fill setters- Specified by:
getParameterMap
in interfaceTelemetryBeanDefinition
-
getPackages
public List<PackageConfig> getPackages()
Description copied from interface:ConnectorDefinition
Packages may contain settings for specific sources.- Specified by:
getPackages
in interfaceConnectorDefinition
- Returns:
- the list of configured packages
-
setPackages
public void setPackages(List<PackageConfig> packages)
-
-