Package org.apache.aiaravata.application.catalog.data.resources

Examples of org.apache.aiaravata.application.catalog.data.resources.ResourceJobManagerResource


        }
    return jobManagerCommandResource;
  }
   
    private static Resource createResourceJobManager(ResourceJobManager o) {
    ResourceJobManagerResource resourceJobManagerResource = new ResourceJobManagerResource();
        if (o != null) {
            resourceJobManagerResource.setResourceJobManagerId(o.getResourceJobManagerId());
            resourceJobManagerResource.setPushMonitoringEndpoint(o.getPushMonitoringEndpoint());
            resourceJobManagerResource.setJobManagerBinPath(o.getJobManagerBinPath());
            resourceJobManagerResource.setResourceJobManagerType(o.getResourceJobManagerType());
        }
    return resourceJobManagerResource;
  }
View Full Code Here


    @Override
  public String addResourceJobManager(ResourceJobManager resourceJobManager)
      throws AppCatalogException {
    resourceJobManager.setResourceJobManagerId(AppCatalogUtils.getID("RJM"));
    ResourceJobManagerResource resource = AppCatalogThriftConversion.getResourceJobManager(resourceJobManager);
    resource.save();
    Map<JobManagerCommand, String> jobManagerCommands = resourceJobManager.getJobManagerCommands();
    if (jobManagerCommands!=null) {
      for (JobManagerCommand commandType : jobManagerCommands.keySet()) {
        JobManagerCommandResource r = new JobManagerCommandResource();
        r.setCommandType(commandType.toString());
        r.setCommand(jobManagerCommands.get(commandType));
        r.setResourceJobManagerId(resource.getResourceJobManagerId());
        r.save();
      }
    }
    return resource.getResourceJobManagerId();
  }
View Full Code Here

TOP

Related Classes of org.apache.aiaravata.application.catalog.data.resources.ResourceJobManagerResource

Copyright © 2018 www.massapicom. 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.