类 AboutController
- java.lang.Object
-
- org.elastos.hive.endpoint.AboutController
-
public class AboutController extends java.lang.ObjectThe AboutController is for getting the basic information of the hive node.
-
-
构造器概要
构造器 构造器 说明 AboutController(NodeRPCConnection connection)Create the about controller by the RPC connection.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 java.lang.StringgetCommitId()Get the commit id of the github of the hive node.NodeInfogetNodeInfo()Get the information of the hive node.NodeVersiongetNodeVersion()Get the version of the hive node.
-
-
-
构造器详细资料
-
AboutController
public AboutController(NodeRPCConnection connection)
Create the about controller by the RPC connection.- 参数:
connection- The connection instance.
-
-
方法详细资料
-
getNodeVersion
public NodeVersion getNodeVersion() throws HiveException
Get the version of the hive node.- 返回:
- the version
- 抛出:
HiveException- The exception shows the error from the request.
-
getCommitId
public java.lang.String getCommitId() throws HiveExceptionGet the commit id of the github of the hive node.- 返回:
- The commit id.
- 抛出:
HiveException- The exception shows the error from the request.
-
getNodeInfo
public NodeInfo getNodeInfo() throws HiveException
Get the information of the hive node.- 返回:
- The information of the hive node.
- 抛出:
HiveException- The exception shows the error from the request.
-
-