关于 SequoiaDB
快速入门
安装
基本操作
数据模型
SQL引擎
S3引擎
系统架构
数据库管理
连接器
驱动
参考手册
故障排除
SAC 管控中心
Web服务
版本信息
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.
展开