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