Package org.opennms.netmgt.config.wmi
Class WmiAgentConfig
- java.lang.Object
-
- org.opennms.netmgt.config.wmi.WmiAgentConfig
-
public class WmiAgentConfig extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_DOMAIN
static java.lang.String
DEFAULT_PASSWORD
static int
DEFAULT_RETRIES
static int
DEFAULT_TIMEOUT
static java.lang.String
DEFAULT_USERNAME
-
Constructor Summary
Constructors Constructor Description WmiAgentConfig()
Constructor for WmiAgentConfig.WmiAgentConfig(java.net.InetAddress agentAddress)
Constructor for WmiAgentConfig.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
static WmiAgentConfig
fromMap(java.util.Map<java.lang.String,java.lang.String> map)
java.net.InetAddress
getAddress()
getAddressjava.lang.String
getDomain()
Getter for the fielddomain
.java.lang.String
getPassword()
getPasswordint
getRetries()
getRetriesint
getTimeout()
getTimeoutjava.lang.String
getUsername()
getUsernameint
hashCode()
void
setAddress(java.net.InetAddress address)
setAddressvoid
setDomain(java.lang.String domain)
Setter for the fielddomain
.void
setPassword(java.lang.String password)
setPasswordvoid
setRetries(int retries)
setRetriesvoid
setTimeout(int timeout)
setTimeoutvoid
setUsername(java.lang.String username)
setUsernamejava.util.Map<java.lang.String,java.lang.String>
toMap()
java.lang.String
toString()
toString
-
-
-
Field Detail
-
DEFAULT_TIMEOUT
public static final int DEFAULT_TIMEOUT
- See Also:
- Constant Field Values
-
DEFAULT_RETRIES
public static final int DEFAULT_RETRIES
- See Also:
- Constant Field Values
-
DEFAULT_PASSWORD
public static final java.lang.String DEFAULT_PASSWORD
- See Also:
- Constant Field Values
-
DEFAULT_USERNAME
public static final java.lang.String DEFAULT_USERNAME
- See Also:
- Constant Field Values
-
DEFAULT_DOMAIN
public static final java.lang.String DEFAULT_DOMAIN
- See Also:
- Constant Field Values
-
-
Method Detail
-
toString
public java.lang.String toString()
toString
- Overrides:
toString
in classjava.lang.Object
- Returns:
- a
String
object.
-
getAddress
public java.net.InetAddress getAddress()
getAddress
- Returns:
- a
InetAddress
object.
-
setAddress
public void setAddress(java.net.InetAddress address)
setAddress
- Parameters:
address
- aInetAddress
object.
-
getTimeout
public int getTimeout()
getTimeout
- Returns:
- a int.
-
setTimeout
public void setTimeout(int timeout)
setTimeout
- Parameters:
timeout
- a int.
-
getRetries
public int getRetries()
getRetries
- Returns:
- a int.
-
setRetries
public void setRetries(int retries)
setRetries
- Parameters:
retries
- a int.
-
setPassword
public void setPassword(java.lang.String password)
setPassword
- Parameters:
password
- aString
object.
-
getPassword
public java.lang.String getPassword()
getPassword
- Returns:
- a
String
object.
-
getUsername
public java.lang.String getUsername()
getUsername
- Returns:
- a
String
object.
-
setUsername
public void setUsername(java.lang.String username)
setUsername
- Parameters:
username
- aString
object.
-
getDomain
public java.lang.String getDomain()
Getter for the field
domain
.- Returns:
- a
String
object.
-
setDomain
public void setDomain(java.lang.String domain)
Setter for the field
domain
.- Parameters:
domain
- aString
object.
-
toMap
public java.util.Map<java.lang.String,java.lang.String> toMap()
-
fromMap
public static WmiAgentConfig fromMap(java.util.Map<java.lang.String,java.lang.String> map)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-