org.opennms.netmgt.capsd
Class ConnectionConfig

java.lang.Object
  extended by org.opennms.netmgt.capsd.ConnectionConfig
Direct Known Subclasses:
DominoIIOPPlugin.DominoConnectionConfig

public class ConnectionConfig
extends Object

ConnectionConfig class.

Version:
$Id: $
Author:
brozow TODO Need to javadoc this class

Constructor Summary
ConnectionConfig(InetAddress address, int port)
          Constructor for ConnectionConfig.
ConnectionConfig(InetAddress inetAddress, int port, int timeout, int retry)
          Constructor for ConnectionConfig.
ConnectionConfig(InetAddress inetAddress, Map<String,Object> qualifiers, int port, int timeout, int retry)
          Constructor for ConnectionConfig.
 
Method Summary
 InetAddress getInetAddress()
          getInetAddress
 boolean getKeyedBoolean(String key, boolean defaultVal)
          getKeyedBoolean
 int getKeyedInteger(String key, int defaultVal)
          getKeyedInteger
 String getKeyedString(String key, String defaultVal)
          getKeyedString
 int getPort()
          getPort
 int getRetry()
          getRetry
 InetSocketAddress getSocketAddress()
          getSocketAddress
 int getTimeout()
          getTimeout
 void saveKeyedInteger(String key, int value)
          saveKeyedInteger
 void setInetAddress(InetAddress inetAddress)
          setInetAddress
 void setQualifiers(Map<String,Object> qualifiers)
          setQualifiers
 void setRetry(int retry)
          setRetry
 void setTimeout(int timeout)
          setTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionConfig

public ConnectionConfig(InetAddress inetAddress,
                        Map<String,Object> qualifiers,
                        int port,
                        int timeout,
                        int retry)

Constructor for ConnectionConfig.

Parameters:
qualifiers - a Map object.
inetAddress - a InetAddress object.
port - a int.
timeout - a int.
retry - a int.

ConnectionConfig

public ConnectionConfig(InetAddress address,
                        int port)

Constructor for ConnectionConfig.

Parameters:
address - a InetAddress object.
port - a int.

ConnectionConfig

public ConnectionConfig(InetAddress inetAddress,
                        int port,
                        int timeout,
                        int retry)

Constructor for ConnectionConfig.

Parameters:
inetAddress - a InetAddress object.
port - a int.
timeout - a int.
retry - a int.
Method Detail

getSocketAddress

public InetSocketAddress getSocketAddress()

getSocketAddress

Returns:
a InetSocketAddress object.

setQualifiers

public void setQualifiers(Map<String,Object> qualifiers)

setQualifiers

Parameters:
qualifiers - a Map object.

getInetAddress

public InetAddress getInetAddress()

getInetAddress

Returns:
Returns the address.

setInetAddress

public void setInetAddress(InetAddress inetAddress)

setInetAddress

Parameters:
inetAddress - The inetAddresss to set.

getKeyedInteger

public int getKeyedInteger(String key,
                           int defaultVal)

getKeyedInteger

Parameters:
key - a String object.
defaultVal - a int.
Returns:
a int.

getKeyedBoolean

public boolean getKeyedBoolean(String key,
                               boolean defaultVal)

getKeyedBoolean

Parameters:
key - a String object.
defaultVal - a boolean.
Returns:
a boolean.

getKeyedString

public String getKeyedString(String key,
                             String defaultVal)

getKeyedString

Parameters:
key - a String object.
defaultVal - a String object.
Returns:
a String object.

saveKeyedInteger

public void saveKeyedInteger(String key,
                             int value)

saveKeyedInteger

Parameters:
key - a String object.
value - a int.

getPort

public int getPort()

getPort

Returns:
Returns the port.

getRetry

public int getRetry()

getRetry

Returns:
Returns the retries.

setRetry

public void setRetry(int retry)

setRetry

Parameters:
retry - The retries to set.

getTimeout

public int getTimeout()

getTimeout

Returns:
Returns the timeout.

setTimeout

public void setTimeout(int timeout)

setTimeout

Parameters:
timeout - The timeout to set.


Copyright © 2011. All Rights Reserved.