public class NsclientConfig extends Object
Java class for anonymous complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element ref="{http://xmlns.opennms.org/xsd/config/nsclient}definition" maxOccurs="unbounded" minOccurs="0"/> </sequence> <attribute name="port" type="{http://www.w3.org/2001/XMLSchema}int" /> <attribute name="retry" type="{http://www.w3.org/2001/XMLSchema}int" /> <attribute name="timeout" type="{http://www.w3.org/2001/XMLSchema}int" /> <attribute name="password" type="{http://www.w3.org/2001/XMLSchema}string" /> </restriction> </complexContent> </complexType>
Modifier and Type | Field and Description |
---|---|
protected List<Definition> |
definition |
protected String |
password |
protected Integer |
port |
protected Integer |
retry |
protected Integer |
timeout |
Constructor and Description |
---|
NsclientConfig() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
List<Definition> |
getDefinition()
Maps IP addresses to specific NSClient parmeters
(retries, timeouts...) Gets the value of the definition property.
|
String |
getPassword()
Gets the value of the password property.
|
Integer |
getPort()
Gets the value of the port property.
|
Integer |
getRetry()
Gets the value of the retry property.
|
Integer |
getTimeout()
Gets the value of the timeout property.
|
int |
hashCode() |
void |
setPassword(String value)
Sets the value of the password property.
|
void |
setPort(Integer value)
Sets the value of the port property.
|
void |
setRetry(Integer value)
Sets the value of the retry property.
|
void |
setTimeout(Integer value)
Sets the value of the timeout property.
|
protected List<Definition> definition
protected Integer port
protected Integer retry
protected Integer timeout
protected String password
public List<Definition> getDefinition()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set
method for the definition property.
For example, to add a new item, do as follows:
getDefinition().add(newItem);
Objects of the following type(s) are allowed in the list
Definition
public Integer getPort()
Integer
public void setPort(Integer value)
value
- allowed object is
Integer
public Integer getRetry()
Integer
public void setRetry(Integer value)
value
- allowed object is
Integer
public Integer getTimeout()
Integer
public void setTimeout(Integer value)
value
- allowed object is
Integer
public String getPassword()
String
public void setPassword(String value)
value
- allowed object is
String
Copyright © 2021. All rights reserved.