/**
* Connects the Admin Agent in the DS
*
* @return AdminDistributedSystem MBean ObjectName
* @throws OperationsException
* if connection to the DS fails
* @throws AdminException
* if connection to the DS fails
*/
private ObjectName connectToSystem() throws OperationsException, AdminException {
ObjectName adminDsObjName = agent.connectToSystem();
AdminDistributedSystem adminDS = agent.getDistributedSystem();
if (adminDSJmx == null && adminDS instanceof AdminDistributedSystemJmxImpl) {//instanceof checks for null
adminDSJmx = (AdminDistributedSystemJmxImpl) adminDS;
refreshInterval = adminDSJmx.getRefreshInterval();
id = adminDSJmx.getId();
forwarder.registerNotificationListener(adminDSJmx.getObjectName());
}
return adminDsObjName;
}
MemberInfoWithStatsMBean.java 文件源码
java
阅读 15
收藏 0
点赞 0
评论 0
项目:gemfirexd-oss
作者:
评论列表
文章目录