Examples of JobRepositoryException


Examples of org.apache.oodt.cas.resource.structs.exceptions.JobRepositoryException

        try {
            jobHash = (Hashtable) client.execute("resourcemgr.getJobInfo",
                    argList);
        } catch (XmlRpcException e) {
            throw new JobRepositoryException(e.getMessage(), e);
        } catch (IOException e) {
            throw new JobRepositoryException(e.getMessage(), e);
        }

        return XmlRpcStructFactory.getJobFromXmlRpc(jobHash);
    }
View Full Code Here

Examples of org.apache.oodt.cas.resource.structs.exceptions.JobRepositoryException

    public int getJobQueueSize() throws JobRepositoryException {
        try {
            Vector argList = new Vector();
            return ((Integer) client.execute("resourcemgr.getJobQueueSize", argList));
        } catch (Exception e) {
            throw new JobRepositoryException("Failed to get JobQueue from server : " + e.getMessage(), e);
        }
    }
View Full Code Here

Examples of org.apache.oodt.cas.resource.structs.exceptions.JobRepositoryException

    public int getJobQueueCapacity() throws JobRepositoryException {
        try {
            Vector argList = new Vector();
            return ((Integer) client.execute("resourcemgr.getJobQueueCapacity", argList));
        } catch (Exception e) {
            throw new JobRepositoryException("Failed to get JobQueue capacity from server : " + e.getMessage(), e);
        }
    }
View Full Code Here

Examples of org.apache.oodt.cas.resource.structs.exceptions.JobRepositoryException

     */
    public int getJobQueueSize() throws JobRepositoryException {
      try {
        return this.scheduler.getJobQueue().getSize();
      }catch (Exception e) {
        throw new JobRepositoryException("Failed to get size of JobQueue : " + e.getMessage(), e);
      }
    }
View Full Code Here

Examples of org.apache.oodt.cas.resource.structs.exceptions.JobRepositoryException

     */
    public int getJobQueueCapacity() throws JobRepositoryException {
      try {
        return this.scheduler.getJobQueue().getCapacity();
      }catch (Exception e) {
        throw new JobRepositoryException("Failed to get capacity of JobQueue : " + e.getMessage(), e);
      }
    }
View Full Code Here

Examples of org.apache.oodt.cas.resource.structs.exceptions.JobRepositoryException

                    .getJobById(jobId);
        } catch (JobRepositoryException e) {
            LOG.log(Level.WARNING,
                    "Exception communicating with job repository for job: ["
                            + jobId + "]: Message: " + e.getMessage());
            throw new JobRepositoryException("Unable to get job: [" + jobId
                    + "] from repository!");
        }

        return XmlRpcStructFactory.getXmlRpcJob(spec.getJob());
    }
View Full Code Here

Examples of org.apache.oodt.cas.resource.structs.exceptions.JobRepositoryException

     */
    public int getJobQueueSize() throws JobRepositoryException {
      try {
        return this.scheduler.getJobQueue().getSize();
      }catch (Exception e) {
        throw new JobRepositoryException("Failed to get size of JobQueue : " + e.getMessage(), e);
      }
    }
View Full Code Here

Examples of org.apache.oodt.cas.resource.structs.exceptions.JobRepositoryException

     */
    public int getJobQueueCapacity() throws JobRepositoryException {
      try {
        return this.scheduler.getJobQueue().getCapacity();
      }catch (Exception e) {
        throw new JobRepositoryException("Failed to get capacity of JobQueue : " + e.getMessage(), e);
      }
    }
View Full Code Here

Examples of org.apache.oodt.cas.resource.structs.exceptions.JobRepositoryException

                    .getJobById(jobId);
        } catch (JobRepositoryException e) {
            LOG.log(Level.WARNING,
                    "Exception communicating with job repository for job: ["
                            + jobId + "]: Message: " + e.getMessage());
            throw new JobRepositoryException("Unable to get job: [" + jobId
                    + "] from repository!");
        }

        return XmlRpcStructFactory.getXmlRpcJob(spec.getJob());
    }
View Full Code Here

Examples of org.apache.oodt.cas.resource.structs.exceptions.JobRepositoryException

        try {
            complete = ((Boolean) client.execute("resourcemgr.isJobComplete",
                    argList)).booleanValue();
        } catch (XmlRpcException e) {
            throw new JobRepositoryException(e.getMessage(), e);
        } catch (IOException e) {
            throw new JobRepositoryException(e.getMessage(), e);
        }

        return complete;
    }
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.