Package gri.tasks.managers

Examples of gri.tasks.managers.JobManager


     * Creates a GridpServiceProxy that wraps around a local GridpSystem.
     * Messages are sent through a GridpWebService and serialized just as
     * though they were sent to a remote service.
     */
    protected static JobManager createRemoteJobManager(TaskProvider taskProvider) throws Exception {
        JobManager localSystem = createLocalJobManager(taskProvider);
 
        File baseDir = new File("C:\\GRIDP_EXEC");
  SimpleJobFolderFactory jobFolderFactory = new SimpleJobFolderFactory(baseDir);
 
        JobManagerServiceImpl webService = new JobManagerServiceImpl(localSystem, new BasicSerializerSet(), jobFolderFactory);
View Full Code Here


   * is then submitted to this manager and all submit listeners are
   * notified.
   */
  protected void submitJob(TaskInfo taskInfo, JobSubmission submission) throws Exception {
    //execute:
    JobManager jobManager = taskInfo.getJobManager();
    String jobId = jobManager.submitJob(submission);

    //notify listeners (provide running task object):
    JobEntry jobEntry = new JobEntry(submission.getTaskId(), jobId, jobManager);
   
    for (int i=0; i<submitListeners.size(); i++)
View Full Code Here

    List entries = jobManagers.getJobManagerEntries();
    JobManagerEntry entry;
    for (int i=0; i<entries.size(); i++) {
      entry = (JobManagerEntry)entries.get(i);
      JobManager jobManager = entry.getJobManager();

      JobInfo [] jobInfo = jobManager.listJobs();
      for (int j=0; j<jobInfo.length; j++) {
        JobEntry job = new JobEntry(
            jobInfo[j].getTaskId(),
            jobInfo[j].getTaskId(),
            jobManager);
View Full Code Here

      List entries = jobManagers.getJobManagerEntries();
      JobManagerEntry entry;
      for (int i=0; i<entries.size(); i++) {
        entry = (JobManagerEntry)entries.get(i);
        JobManager jobManager = entry.getJobManager();

        System.out.println(entry.getDisplayName());
        System.out.println("-------------------------");
        JobInfo [] jobs = jobManager.listJobs();
        for (int j=0; j<jobs.length; j++) {
          System.out.println(jobs[j].getJobId() + " " + jobs[j].getStatus());

        }
        System.out.println();
View Full Code Here

      if (entry == null) {
        panel.updateUI();
        throw new RuntimeException("Job manager not found: " + id);
      }

      JobManager jobManager = entry.getJobManager();
      List taskInfoList = getTaskInfoList(jobManager);
      for (int i=0; i<taskInfoList.size(); i++)
        panel.addTask((TaskInfo)taskInfoList.get(i));

      panel.updateUI();
View Full Code Here

TOP

Related Classes of gri.tasks.managers.JobManager

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.