| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private int | |
| private Set | |
| private long | |
| private long | |
| private HashMap | |
| private Lock | |
| private long | |
| private String | |
| private Set | |
| private boolean | |
| private final Lock |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public int | |
| public long | |
| public long | |
| public Collection | |
| public String | |
| public Collection | |
| public long | |
| public long | |
| public long | |
| public long | |
| public void | removeHost(String
The host:port pair to remove. hostPortPair)Remove the given host (host:port pair) from this Connection Group. |
| public void | removeHost(String
The host:port pair to remove. hostPortPair, boolean Whether affects existing load-balanced connections or only new ones. removeExisting)Remove the given host (host:port pair) from this Connection Group. |
| public void | removeHost(String
The host:port pair to remove. hostPortPair, boolean Whether affects existing load-balanced connections or only new ones. removeExisting, boolean If true instructs the load-balanced connections to fail-over the underlying active connection before removing this host, otherwise remove
immediately. waitForGracefulFailover)Remove the given host (host:port pair) from this Connection Group and, consequently, from all the load-balanced connections it holds. |
| activeConnections | back to summary |
|---|---|
| private long activeConnections | |
| activeHosts | back to summary |
|---|---|
| private int activeHosts | |
| closedHosts | back to summary |
|---|---|
| private Set<String> closedHosts | |
| closedProxyTotalPhysicalConnections | back to summary |
|---|---|
| private long closedProxyTotalPhysicalConnections | |
| closedProxyTotalTransactions | back to summary |
|---|---|
| private long closedProxyTotalTransactions | |
| connectionProxies | back to summary |
|---|---|
| private HashMap<Long, LoadBalancedConnectionProxy> connectionProxies | |
| connectionProxiesLock | back to summary |
|---|---|
| private Lock connectionProxiesLock | |
| connections | back to summary |
|---|---|
| private long connections | |
| groupName | back to summary |
|---|---|
| private String groupName | |
| hostList | back to summary |
|---|---|
| private Set<String> hostList | |
| isInitialized | back to summary |
|---|---|
| private boolean isInitialized | |
| lock | back to summary |
|---|---|
| private final Lock lock | |
| ConnectionGroup | back to summary |
|---|---|
| pack-priv ConnectionGroup(String groupName) | |
| addHost | back to summary |
|---|---|
| public void addHost(String hostPortPair) Add the given host (host:port pair) to this Connection Group.
| |
| addHost | back to summary |
|---|---|
| public void addHost(String hostPortPair, boolean forExisting) Add the given host (host:port pair) to this Connection Group and, consequently, to all the load-balanced connections it holds.
| |
| closeConnectionProxy | back to summary |
|---|---|
| public void closeConnectionProxy(LoadBalancedConnectionProxy proxy) | |
| getActiveHostCount | back to summary |
|---|---|
| public int getActiveHostCount() | |
| getActiveLogicalConnectionCount | back to summary |
|---|---|
| public long getActiveLogicalConnectionCount() | |
| getActivePhysicalConnectionCount | back to summary |
|---|---|
| public long getActivePhysicalConnectionCount() | |
| getClosedHosts | back to summary |
|---|---|
| public Collection | |
| getGroupName | back to summary |
|---|---|
| public String getGroupName() | |
| getInitialHosts | back to summary |
|---|---|
| public Collection | |
| getTotalLogicalConnectionCount | back to summary |
|---|---|
| public long getTotalLogicalConnectionCount() | |
| getTotalPhysicalConnectionCount | back to summary |
|---|---|
| public long getTotalPhysicalConnectionCount() | |
| getTotalTransactionCount | back to summary |
|---|---|
| public long getTotalTransactionCount() | |
| registerConnectionProxy | back to summary |
|---|---|
| public long registerConnectionProxy(LoadBalancedConnectionProxy proxy, List<String> localHostList) | |
| removeHost | back to summary |
|---|---|
| public void removeHost(String hostPortPair) throws SQLException Remove the given host (host:port pair) from this Connection Group.
| |
| removeHost | back to summary |
|---|---|
| public void removeHost(String hostPortPair, boolean removeExisting) throws SQLException Remove the given host (host:port pair) from this Connection Group.
| |
| removeHost | back to summary |
|---|---|
| public void removeHost(String hostPortPair, boolean removeExisting, boolean waitForGracefulFailover) throws SQLException Remove the given host (host:port pair) from this Connection Group and, consequently, from all the load-balanced connections it holds.
| |