public class LoadBalanceHeartBeating extends Object
| Constructor and Description |
|---|
LoadBalanceHeartBeating() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isLeastConnStarted()
Get if leastConnStarted has started.
|
static boolean |
isLoadBalanceHeartBeatingStarted()
Whether quickAutoBalance has started.
|
static boolean |
isQuickAutoBalanceStarted()
Get if quickAutoBalance has started.
|
static void |
setConnection(PgConnection pgConnection,
Properties props)
Set connection into connection manager.
|
static void |
startScheduledExecutorService(Properties properties)
Start scheduled executor service.
|
static void |
stopHeartBeatingThread()
Stop scheduled executor service, and clear connection manager.
|
public static boolean isLoadBalanceHeartBeatingStarted()
public static boolean isQuickAutoBalanceStarted()
public static boolean isLeastConnStarted()
public static void setConnection(PgConnection pgConnection, Properties props) throws PSQLException
pgConnection - pgConnectionprops - propertiesPSQLException - parameters parsed failed.public static void startScheduledExecutorService(Properties properties)
properties - propertiespublic static void stopHeartBeatingThread()
Copyright © 2023 openGauss. All rights reserved.