Examples of GlobusGatekeeperType


Examples of org.ogce.schemas.gfac.documents.GlobusGatekeeperType

    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);
        }

      }
    }
View Full Code Here

Examples of org.ogce.schemas.gfac.documents.GlobusGatekeeperType

      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.FORK);
        } 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);
        }

      }
      }
View Full Code Here

Examples of org.ogce.schemas.gfac.documents.GlobusGatekeeperType

      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.FORK);
        } 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);
        }

      }
      }
View Full Code Here

Examples of org.ogce.schemas.gfac.documents.GlobusGatekeeperType

        } catch (URISyntaxException e) {
          throw new GfacException(e.getLocalizedMessage(), e);
        }
        if (gatekeeperfromResourceMapping != null) {
          log.info("Gate keeper selected from resource mapping");
          GlobusGatekeeperType gatekeeper = GlobusGatekeeperType.Factory.newInstance();

          if (!resourceMapping.getWsgramPreferred()) {
            if (resourceMapping.getJobManager() != null) {
              throw new GfacException("Job Manager parameter must not defined for Pre-WSGram in Resource Mapping, " + "include it with your gatekeepr EPR in resource mapping", FaultCode.InternalServiceError);
            }
          } else {
            if (resourceMapping.getJobManager() != null) {
              gatekeeper.setJobmanagertype(GlobusJobManagerType.Enum.forString(resourceMapping.getJobManager()));
            }
          }
          gatekeeper.setEndPointReference(gatekeeperfromResourceMapping.toString());
          return gatekeeper;
        }
      }
    }
View Full Code Here

Examples of org.ogce.schemas.gfac.documents.GlobusGatekeeperType

  public void execute(InvocationContext invocationContext) throws GfacException {
    ExecutionContext context = invocationContext.getExecutionContext();

    String contact = null;
    log.info("Searching for Gate Keeper");
    GlobusGatekeeperType gatekeeper = context.getExecutionModel().getGatekeeper();
    if (gatekeeper == null) {
      contact = context.getExecutionModel().getHost();
    } else {
      contact = gatekeeper.getEndPointReference();
    }
    log.info("Using Globus GateKeeper " + contact);
    GramJob job = null;
    boolean jobSucsseful = false;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.