| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private static final String | |
| private final Map | |
| public static final int | |
| private final DatabaseUrlContainer | |
| private final String | |
| private final int | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | HostInfo(DatabaseUrlContainer
a reference to the original database URL that produced this host info url, String the host ip or name host, int the port port, String the user name user, String the user's password password)Constructs a |
| public | HostInfo(DatabaseUrlContainer
a reference to the original database URL that produced this host info url, String the host ip or name host, int the port port, String the user name user, String this user's password password, Map<String, String> a connection arguments map. properties)Constructs a |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if both objects have equal host and port pairs, false otherwise.the hi)HostInfo to compare with.Checks if this |
| public Properties | Returns: aProperties instance containing the full host information.Exposes this host info as a single properties instance. |
| public String | |
| public String | Returns: the original database URLImplements com. Returns the original database URL that produced this host info. |
| public String | |
| public String | Returns: the host:port representation of this hostReturns a host:port representation of this host. |
| public Map | Returns: this host specific propertiesReturns the properties specific to this host. |
| public String | |
| public int | |
| public String | Returns: the connection argument for the given keykey key)Returns the connection argument for the given key. |
| public String | |
| public String | Returns: a string representation of this objectOverrides java. Returns a string representation of this object. |
| host | back to summary |
|---|---|
| private final String host | |
| HOST_PORT_SEPARATOR | back to summary |
|---|---|
| private static final String HOST_PORT_SEPARATOR | |
| hostProperties | back to summary |
|---|---|
| private final Map<String, String> hostProperties | |
| NO_PORT | back to summary |
|---|---|
| public static final int NO_PORT | |
| originalUrl | back to summary |
|---|---|
| private final DatabaseUrlContainer originalUrl | |
| password | back to summary |
|---|---|
| private final String password | |
| port | back to summary |
|---|---|
| private final int port | |
| user | back to summary |
|---|---|
| private final String user | |
| HostInfo | back to summary |
|---|---|
| public HostInfo() Constructs an empty | |
| HostInfo | back to summary |
|---|---|
| public HostInfo(DatabaseUrlContainer url, String host, int port, String user, String password) Constructs a
| |
| HostInfo | back to summary |
|---|---|
| public HostInfo(DatabaseUrlContainer url, String host, int port, String user, String password, Map<String, String> properties) Constructs a | |
| equalHostPortPair | back to summary |
|---|---|
| public boolean equalHostPortPair(HostInfo hi) Checks if this | |
| exposeAsProperties | back to summary |
|---|---|
| public Properties exposeAsProperties() Exposes this host info as a single properties instance. The values for host, port, user and password are added to the properties map with their standard keys.
| |
| getDatabase | back to summary |
|---|---|
| public String getDatabase() Shortcut to the database connection argument.
| |
| getDatabaseUrl | back to summary |
|---|---|
| public String getDatabaseUrl() Implements com. Returns the original database URL that produced this host info. | |
| getHost | back to summary |
|---|---|
| public String getHost() Returns the host.
| |
| getHostPortPair | back to summary |
|---|---|
| public String getHostPortPair() Returns a host:port representation of this host.
| |
| getHostProperties | back to summary |
|---|---|
| public Map Returns the properties specific to this host. | |
| getPassword | back to summary |
|---|---|
| public String getPassword() Returns the password.
| |
| getPort | back to summary |
|---|---|
| public int getPort() Returns the port.
| |
| getProperty | back to summary |
|---|---|
| public String getProperty(String key) Returns the connection argument for the given key. | |
| getUser | back to summary |
|---|---|
| public String getUser() Returns the user name.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation of this object. | |