public class GlobalConnectionTracker extends Object
| Constructor and Description |
|---|
GlobalConnectionTracker() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeConnectionOfCrash(String hostSpec)
Close all existing connections under the specified host.
|
static void |
closeOldConnection(String hostSpec,
Properties props)
Close all existing connections under the specified host.
|
static List<QueryExecutor> |
getConnections(String hostSpec)
get all existing connections under the specified host.
|
static boolean |
hasConnection() |
static void |
possessConnectionReference(QueryExecutor queryExecutor,
Properties props)
Store the actual query executor and connection host spec.
|
static void |
releaseConnectionReference(QueryExecutor queryExecutor,
Properties props)
Clear the reference when the connection is closed.
|
public static void possessConnectionReference(QueryExecutor queryExecutor, Properties props)
props - the parsed/defaulted connection propertiesqueryExecutor - public static void releaseConnectionReference(QueryExecutor queryExecutor, Properties props)
props - the parsed/defaulted connection propertiesqueryExecutor - public static void closeOldConnection(String hostSpec, Properties props)
props - the parsed/defaulted connection propertieshostSpec - ip and port.public static void closeConnectionOfCrash(String hostSpec)
hostSpec - ip and port.public static List<QueryExecutor> getConnections(String hostSpec)
hostSpec - ip and port.public static boolean hasConnection()
Copyright © 2023 openGauss. All rights reserved.