提交 58879c7d 编写于 作者: C Cheko.R 提交者: dailidong

bug fixed and support for properies file type editing (#680)

* make the edit button of the properties file clickable

* bug fixed - Service Management only shows one device status

* bug fixed, the master server cannot be validated at startup because parameters 'masterZNode' are not initialized
上级 522fa8f8
...@@ -344,9 +344,12 @@ public abstract class AbstractZKClient { ...@@ -344,9 +344,12 @@ public abstract class AbstractZKClient {
String parentPath = getZNodeParentPath(zkNodeType); String parentPath = getZNodeParentPath(zkNodeType);
List<MasterServer> masterServers = new ArrayList<>(); List<MasterServer> masterServers = new ArrayList<>();
int i = 0;
for(String path : masterMap.keySet()){ for(String path : masterMap.keySet()){
MasterServer masterServer = ResInfo.parseHeartbeatForZKInfo(masterMap.get(path)); MasterServer masterServer = ResInfo.parseHeartbeatForZKInfo(masterMap.get(path));
masterServer.setZkDirectory( parentPath + "/"+ path); masterServer.setZkDirectory( parentPath + "/"+ path);
masterServer.setId(i);
i ++;
masterServers.add(masterServer); masterServers.add(masterServer);
} }
return masterServers; return masterServers;
......
...@@ -18,6 +18,6 @@ ...@@ -18,6 +18,6 @@
/** /**
* Create file type * Create file type
*/ */
let filtTypeArr = ['txt', 'log', 'sh', 'conf', 'cfg', 'py', 'java', 'sql', 'xml', 'hql'] let filtTypeArr = ['txt', 'log', 'sh', 'conf', 'cfg', 'py', 'java', 'sql', 'xml', 'hql', 'properties']
export { filtTypeArr } export { filtTypeArr }
...@@ -28,7 +28,8 @@ const handlerSuffix = { ...@@ -28,7 +28,8 @@ const handlerSuffix = {
'.java': 'textile', '.java': 'textile',
'.sql': 'sql', '.sql': 'sql',
'.hql': 'sql', '.hql': 'sql',
'.xml': 'xml' '.xml': 'xml',
'.properties': 'textile'
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册