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

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


    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


        }
    return localSubmissionResource;
  }
   
    private static Resource createJobManagerCommand(JobManagerCommand o) {
    JobManagerCommandResource jobManagerCommandResource = new JobManagerCommandResource();
        if (o != null){
            jobManagerCommandResource.setResourceJobManagerId(o.getResourceJobManagerId());
            jobManagerCommandResource.setResourceJobManagerResource((ResourceJobManagerResource)createResourceJobManager(o.getResourceJobManager()));
            jobManagerCommandResource.setCommandType(o.getCommandType());
            jobManagerCommandResource.setCommand(o.getCommand());
        }
    return jobManagerCommandResource;
  }
View Full Code Here

TOP

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

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.