public class ClusterNodeCache extends Object
| Constructor and Description |
|---|
ClusterNodeCache() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkHostSpecs(HostSpec[] hostSpecs)
Verify parameters and replace the failed primary node
|
static void |
checkReplacement(HostSpec[] hostSpecs)
The faulty host is switched to a new host
|
static boolean |
isNumeric(CharSequence cs) |
static boolean |
isOpen() |
static void |
pushHostSpecs(HostSpec master,
HostSpec[] hostSpecs,
Properties properties) |
static void |
stop() |
static void |
updateDetection() |
public static boolean isOpen()
public static void checkReplacement(HostSpec[] hostSpecs)
hostSpecs - the parsed/defaulted connection propertiespublic static void checkHostSpecs(HostSpec[] hostSpecs) throws PSQLException
hostSpecs - cluster nodePSQLExceptionpublic static void pushHostSpecs(HostSpec master, HostSpec[] hostSpecs, Properties properties)
master - master nodehostSpecs - cluster nodeproperties - the parsed/defaulted connection propertiespublic static void stop()
public static boolean isNumeric(CharSequence cs)
public static void updateDetection()
Copyright © 2023 openGauss. All rights reserved.