我们有一个应用程序,当点击显示服务器列表。目前这些服务器在solaris机器上,并且在点击URL时显示所有这些服务器列表。这些所有服务器都以下列格式保存在xml文件中。
<servers>
<serverGroup>egmk</serverGroup>
<server>
<ident>egmk-process-daemon</ident>
<pid>egmk-process</pid>
<runFlag>keep</runFlag>
<title>Process Daemon</title>
<url>/egmk-process-daemon</url>
<logDir>/dneg/egmk/egmk-process-daemon/active/log</logDir>
<startCommand>/dneg/egmk/egmk-process-daemon/active/bin/egmkdaemon.sh,start
</startCommand>
<stopCommand>/dneg/egmk/egmk-process-daemon/active/bin/egmkdaemon.sh,stop
</stopCommand>
</server>
<!-- eGMK BECS reconciliation daemon running at 19:10 -->
<server>
<ident>egmk-becs-rec-daemon</ident>
<pid>egmk=becs-rec</pid>
<title>BECS Reconciliation Daemon</title>
<url>/egmk-becs-rec-daemon</url>
<runFlag>once</runFlag>
<logDir>/dneg/egmk/egmk-becs-rec-daemon/active/log</logDir>
<startCommand>/dneg/egmk/egmk-becs-rec-daemon/active/bin/egmkdaemon.sh,start
</startCommand>
<stopCommand></stopCommand>
</server>
<!-- EGMK FX/MM Research Upload Daemon daemon started once a day -->
<server>
<ident>egmk-research-upload-daemon</ident>
<pid>egmk=egmk-research-upload-daemon</pid>
<runFlag>once</runFlag>
<title>EGMK FX/MM Research Upload Daemon</title>
<url>/egmk-research-upload-daemon</url>
<logDir>/dneg/egmk/egmk-research-upload-daemon/active/log</logDir>
<startCommand>/dneg/egmk/egmk-research-upload-daemon/active/bin/egmk-research-upload.sh,start
</startCommand>
<stopCommand>/dneg/egmk/egmk-research-upload-daemon/active/bin/egmk-research-upload.sh,stop
</stopCommand>
</server>
现在作为新要求的一部分,我必须根据环境添加文件管理器或条件。如果是solaris,它应该显示某些服务器列表,如果是Linux HVE环境,它应该显示不同的服务器。
示例: - 点击网址http://abc:8080/abc/(solaris网址)将显示几个服务器的列表,而点击http://def:8084/something/(Linux网址)将显示另一组服务器列表。
请告诉我是否可以在xml文件中添加这样的条件?