public class QueryCNListUtils extends Object
| Constructor and Description |
|---|
QueryCNListUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
keyFromURL(Properties props)
Generate a key representing the cluster based on PGHOSTURL and PGPORTURL in props.
|
static void |
refreshProperties(Properties props)
Submit the cluster information in props to the polling thread.
|
static void |
runRereshCNListQueryies(QueryExecutor queryExecutor,
Properties info)
Refresh the global CN list using the established connections at the upper layer.
|
public static String keyFromURL(Properties props)
props - : Connection propertiespublic static void refreshProperties(Properties props)
props - : Connection propertiespublic static void runRereshCNListQueryies(QueryExecutor queryExecutor, Properties info) throws SQLException, IOException
queryExecutor - : QueryExecutor that has been connectedinfo - : Connection propertiesSQLExceptionIOExceptionCopyright © 2023 openGauss. All rights reserved.