@Override
public boolean performFinish() {
String host = _Page1.getHost();
int port = _Page1.getPort();
_ServerDescriptor = new ZooKeeperServerDescriptor(host, port);
if (_Page2.isJmxEnabled()) {
JMXServiceURL jmxServiceUrl = _Page2.getServiceUrl();
String userName = _Page2.getUserName();
String password = _Page2.getPassword();
// Generate a unique name
String name = JMX_CONNECTION_NAME_PREFIX + UUID.randomUUID().toString();
JmxConnectionDescriptor jmxConnectionDescriptor = new JmxConnectionDescriptor(name, jmxServiceUrl,
userName, password);
_ServerDescriptor.setJmxConnectionDescriptor(jmxConnectionDescriptor);
}
return true;
}
ZooKeeperServerNewWizard.java 文件源码
java
阅读 32
收藏 0
点赞 0
评论 0
项目:eZooKeeper
作者:
评论列表
文章目录