if (hostConf == null) {
hostConf = hostDesc.addNewHostConfiguration();
}
// Added to support extra fields
if (!host.getGateKeeperendPointReference().isEmpty()) {
GlobusGatekeeperType gatekeeperType;
if (hostConf.sizeOfGlobusGatekeeperArray() == 0) {
gatekeeperType = hostConf.addNewGlobusGatekeeper();
} else {
gatekeeperType = hostConf.getGlobusGatekeeperArray(0);
}
gatekeeperType.setEndPointReference(host
.getGateKeeperendPointReference());
gatekeeperType.setWsGram(host.isWsGram());
gatekeeperType.setName(host.getGateKeeperName());
if (host.getGateKeeperJobManager() != null) {
String jobmanager = host.getGateKeeperJobManager();
if (jobmanager.equals(GlobusJobManagerType.CONDOR.toString())) {
gatekeeperType
.setJobmanagertype(GlobusJobManagerType.CONDOR);
} else if (jobmanager.equals(GlobusJobManagerType.FORK
.toString())) {
gatekeeperType.setJobmanagertype(GlobusJobManagerType.SGE);
} else if (jobmanager.equals(GlobusJobManagerType.SGE
.toString())) {
gatekeeperType
.setJobmanagertype(GlobusJobManagerType.LOADLEVELER);
} else if (jobmanager.equals(GlobusJobManagerType.LOADLEVELER
.toString())) {
gatekeeperType
.setJobmanagertype(GlobusJobManagerType.LOADLEVELER);
} else if (jobmanager.equals(GlobusJobManagerType.LSF
.toString())) {
gatekeeperType.setJobmanagertype(GlobusJobManagerType.LSF);
} else if (jobmanager.equals(GlobusJobManagerType.MULTI
.toString())) {
gatekeeperType
.setJobmanagertype(GlobusJobManagerType.MULTI);
} else if (jobmanager.equals(GlobusJobManagerType.PBS
.toString())) {
gatekeeperType.setJobmanagertype(GlobusJobManagerType.PBS);
} else if (jobmanager.equals(GlobusJobManagerType.SPRUCE
.toString())) {
gatekeeperType
.setJobmanagertype(GlobusJobManagerType.SPRUCE);
}
}
}