|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.qpid.management.configuration.BrokerConnectionData
public class BrokerConnectionData
Value object which is holding connection data for a specific broker.
Constructor Summary | |
---|---|
BrokerConnectionData()
Builds a new empty broker connection data object. |
|
BrokerConnectionData(String host,
int port,
String virtualHost,
String username,
String password,
int initialPoolCapacity,
int maxPoolCapacity,
long waitTimeout)
Builds a connection data with the given parameters. |
Method Summary | |
---|---|
boolean |
equals(Object object)
|
String |
getHost()
Returns the value of the host property. |
int |
getInitialPoolCapacity()
Returns the initial connection pool capacity. |
int |
getMaxPoolCapacity()
Returns the max number of allowed connections that can be opened. |
long |
getMaxWaitTimeout()
Returns the max wait timeout for retrieving an available connections from the pool. |
String |
getPassword()
Returns the value of the password property. |
int |
getPort()
Returns the value of the port property. |
String |
getUsername()
Returns the value of the username property. |
String |
getVirtualHost()
Returns the value of the virtual host property. |
int |
hashCode()
|
(package private) void |
setHost(String host)
Sets the value of host property for this connection data. |
void |
setInitialPoolCapacity(String capacity)
Sets the initial connection pool capacity. |
void |
setMaxPoolCapacity(String value)
Sets the max number of allowed connections that can be opened. |
void |
setMaxWaitTimeout(String value)
Sets the max wait timeout for retrieving an available connections from the pool. |
(package private) void |
setPassword(String password)
Sets the value of password property for this connection data. |
(package private) void |
setPort(String port)
Sets the value of port property for this connection data. |
(package private) void |
setUsername(String username)
Sets the value of username property for this connection data. |
(package private) void |
setVirtualHost(String virtualHost)
Sets the value of virtual host property for this connection data. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BrokerConnectionData(String host, int port, String virtualHost, String username, String password, int initialPoolCapacity, int maxPoolCapacity, long waitTimeout)
host
- the hostname where the broker is running.port
- the port where the broker is running.username
- the username for connecting with the broker.password
- the password for connecting with the broker.virtualHost
- the virtual host.initialPoolCapacity
- the number of connections that must be immediately opened.maxPoolCapacity
- the maximum number of opened connection.maxWaitTimeout
- the maximum amount of time that a client will wait for obtaining a connection.BrokerConnectionData()
Method Detail |
---|
void setHost(String host)
host
- the host name.void setPort(String port)
port
- the port.void setVirtualHost(String virtualHost)
virtualHost
- the virtual host.void setUsername(String username)
username
- the username.void setPassword(String password)
password
- the password.public String getHost()
public int getPort()
public String getVirtualHost()
public String getUsername()
public String getPassword()
public String toString()
toString
in class Object
public void setMaxPoolCapacity(String value)
value
- the max number of allowed connections that can be opened.
NumberFormatException
- if the given value is not a valid integer.public void setMaxWaitTimeout(String value)
value
- the max wait timeout for retrieving an available connections from the pool..
NumberFormatException
- if the given value is not a valid long.public int getMaxPoolCapacity()
public long getMaxWaitTimeout()
public void setInitialPoolCapacity(String capacity)
capacity
- the initial connection pool capacity.public int getInitialPoolCapacity()
public boolean equals(Object object)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |