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