如何使用 jdbc 检索 vertica 集群的节点名称

How to retrieve the nodes names of a vertica cluster using jdbc

有没有办法使用 jdbc 检索 vertica 集群的节点名称?

为了实现容错连接策略?

它可以从这个 retConnection 连接实例中检索吗?

Connection retConnection = null;
.
.
.
retConnection = DriverManager.getConnection
                (
                        connectionString,
                        connectionProperties
                );

谢谢。

那……

rs = stmt.executeQuery("SELECT node_name FROM v_catalog.nodes") ;