文法
rg.getMaster()
現在のパーティショングループのマスターノードを取得します。
戻り値
現在のパーティショングループのプライマリノードを返します。タイプはSdbNodeオブジェクトです。
エラー
例
group1パーティショングループのマスターノードを取得し、このノードを介して関連するノードレベルの操作を実行します。
var rg = db.getRG("group1")
var node = rg.getMaster()
println(node)
hostname1:11830
println(node.constructor.name)
SdbNode
node.help()
--Instance methods for class "SdbNode":
connect() - Connect the database to the current node.
getHostName() - Return the hostname of a node.
getNodeDetail() - Return the information of the current node.
getServiceName() - Return the server name of a node.
start() - Start the current node.
stop() - Stop the current node.
詳細については、Jushanデータベースドキュメントセンターをクリックしてください