| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private long | |
| private String | |
| private boolean | |
| private Set | |
| private long | |
| private long | |
| private long | |
| private HashMap | |
| private Set |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public long | |
| public long | |
| public int | |
| public int | |
| public String | |
| public long | |
| public long | |
| public long | |
| public Collection | |
| public Collection | |
| public long | |
| public void | |
| public void | |
| public long | registerReplicationConnection(ReplicationConnection conn, List<String> localSourceList, List<String> localReplicaList)
|
| public void | removeReplicaHost(String
"host:port" hostPortPair, boolean remove host when it's not in use closeGently)Removes a host from the replicas hosts list. |
| public void | |
| public void | removeSourceHost(String
"host:port" hostPortPair, boolean remove host when it's not in use closeGently)Removes a host from the sources hosts list. |
| public String |
| activeConnections | back to summary |
|---|---|
| private long activeConnections | |
| connections | back to summary |
|---|---|
| private long connections | |
| groupName | back to summary |
|---|---|
| private String groupName | |
| isInitialized | back to summary |
|---|---|
| private boolean isInitialized | |
| replicaHostList | back to summary |
|---|---|
| private Set<String> replicaHostList | |
| replicasAdded | back to summary |
|---|---|
| private long replicasAdded | |
| replicasPromoted | back to summary |
|---|---|
| private long replicasPromoted | |
| replicasRemoved | back to summary |
|---|---|
| private long replicasRemoved | |
| replicationConnections | back to summary |
|---|---|
| private HashMap<Long, ReplicationConnection> replicationConnections | |
| sourceHostList | back to summary |
|---|---|
| private Set<String> sourceHostList | |
| ReplicationConnectionGroup | back to summary |
|---|---|
| pack-priv ReplicationConnectionGroup(String groupName) | |
| addReplicaHost | back to summary |
|---|---|
| public void addReplicaHost(String hostPortPair) throws SQLException Adds a host to the replicas hosts list.
We can safely assume that if this host was added to the replicas list, then it must be added to each one of the replication connections from this group
as well.
Unnecessary calls to
| |
| getActiveConnectionCount | back to summary |
|---|---|
| public long getActiveConnectionCount() | |
| getConnectionCount | back to summary |
|---|---|
| public long getConnectionCount() | |
| getConnectionCountWithHostAsReplica | back to summary |
|---|---|
| public int getConnectionCountWithHostAsReplica(String hostPortPair) | |
| getConnectionCountWithHostAsSource | back to summary |
|---|---|
| public int getConnectionCountWithHostAsSource(String hostPortPair) | |
| getGroupName | back to summary |
|---|---|
| public String getGroupName() | |
| getNumberOfReplicaPromotions | back to summary |
|---|---|
| public long getNumberOfReplicaPromotions() | |
| getNumberOfReplicasAdded | back to summary |
|---|---|
| public long getNumberOfReplicasAdded() | |
| getNumberOfReplicasRemoved | back to summary |
|---|---|
| public long getNumberOfReplicasRemoved() | |
| getReplicaHosts | back to summary |
|---|---|
| public Collection | |
| getSourceHosts | back to summary |
|---|---|
| public Collection | |
| getTotalConnectionCount | back to summary |
|---|---|
| public long getTotalConnectionCount() | |
| handleCloseConnection | back to summary |
|---|---|
| public void handleCloseConnection(ReplicationConnection conn) | |
| promoteReplicaToSource | back to summary |
|---|---|
| public void promoteReplicaToSource(String hostPortPair) throws SQLException Promotes a replica host to source.
We can safely assume that if this host was removed from the replicas list or added to the sources list, then the same host promotion must happen in each
one of the replication connections from this group as well.
Unnecessary calls to
| |
| registerReplicationConnection | back to summary |
|---|---|
| public long registerReplicationConnection(ReplicationConnection conn, List<String> localSourceList, List<String> localReplicaList) | |
| removeReplicaHost | back to summary |
|---|---|
| public void removeReplicaHost(String hostPortPair, boolean closeGently) throws SQLException Removes a host from the replicas hosts list.
We can safely assume that if this host was removed from the replicas list, then it must be removed from each one of the replication connections from this
group as well.
Unnecessary calls to
| |
| removeSourceHost | back to summary |
|---|---|
| public void removeSourceHost(String hostPortPair) throws SQLException Removes a host from the sources hosts list.
| |
| removeSourceHost | back to summary |
|---|---|
| public void removeSourceHost(String hostPortPair, boolean closeGently) throws SQLException Removes a host from the sources hosts list.
We can safely assume that if this host was removed from the sources list, then it must be removed from each one of the replication connections from this
group as well.
Unnecessary calls to
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |