Back to index

nordugrid-arc-nox  1.1.0~rc6
JobController.java
Go to the documentation of this file.
00001 /* ----------------------------------------------------------------------------
00002  * This file was automatically generated by SWIG (http://www.swig.org).
00003  * Version 1.3.36
00004  *
00005  * Do not make changes to this file unless you know what you are doing--modify
00006  * the SWIG interface file instead.
00007  * ----------------------------------------------------------------------------- */
00008 
00009 package nordugrid.arc;
00010 
00011 public class JobController {
00012   private long swigCPtr;
00013   protected boolean swigCMemOwn;
00014 
00015   protected JobController(long cPtr, boolean cMemoryOwn) {
00016     swigCMemOwn = cMemoryOwn;
00017     swigCPtr = cPtr;
00018   }
00019 
00020   protected static long getCPtr(JobController obj) {
00021     return (obj == null) ? 0 : obj.swigCPtr;
00022   }
00023 
00024   protected void finalize() {
00025     delete();
00026   }
00027 
00028   public synchronized void delete() {
00029     if(swigCPtr != 0 && swigCMemOwn) {
00030       swigCMemOwn = false;
00031       arcJNI.delete_JobController(swigCPtr);
00032     }
00033     swigCPtr = 0;
00034   }
00035 
00036   public void FillJobStore(URLList jobids) {
00037     arcJNI.JobController_FillJobStore__SWIG_0(swigCPtr, this, URLList.getCPtr(jobids), jobids);
00038   }
00039 
00040   public void FillJobStore(Job job) {
00041     arcJNI.JobController_FillJobStore__SWIG_1(swigCPtr, this, Job.getCPtr(job), job);
00042   }
00043 
00044   public boolean Get(StringList status, String downloaddir, boolean keep) {
00045     return arcJNI.JobController_Get(swigCPtr, this, StringList.getCPtr(status), status, downloaddir, keep);
00046   }
00047 
00048   public boolean Kill(StringList status, boolean keep) {
00049     return arcJNI.JobController_Kill(swigCPtr, this, StringList.getCPtr(status), status, keep);
00050   }
00051 
00052   public boolean Clean(StringList status, boolean force) {
00053     return arcJNI.JobController_Clean(swigCPtr, this, StringList.getCPtr(status), status, force);
00054   }
00055 
00056   public boolean Cat(StringList status, String whichfile) {
00057     return arcJNI.JobController_Cat(swigCPtr, this, StringList.getCPtr(status), status, whichfile);
00058   }
00059 
00060   public boolean PrintJobStatus(StringList status, boolean longlist) {
00061     return arcJNI.JobController_PrintJobStatus(swigCPtr, this, StringList.getCPtr(status), status, longlist);
00062   }
00063 
00064   public boolean Migrate(TargetGenerator targetGen, Broker broker, UserConfig usercfg, boolean forcemigration, URLList migratedJobIDs) {
00065     return arcJNI.JobController_Migrate(swigCPtr, this, TargetGenerator.getCPtr(targetGen), targetGen, Broker.getCPtr(broker), broker, UserConfig.getCPtr(usercfg), usercfg, forcemigration, URLList.getCPtr(migratedJobIDs), migratedJobIDs);
00066   }
00067 
00068   public boolean Renew(StringList status) {
00069     return arcJNI.JobController_Renew(swigCPtr, this, StringList.getCPtr(status), status);
00070   }
00071 
00072   public boolean Resume(StringList status) {
00073     return arcJNI.JobController_Resume(swigCPtr, this, StringList.getCPtr(status), status);
00074   }
00075 
00076   public boolean RemoveJobs(URLList jobids) {
00077     return arcJNI.JobController_RemoveJobs(swigCPtr, this, URLList.getCPtr(jobids), jobids);
00078   }
00079 
00080   public StringList GetDownloadFiles(URL dir) {
00081     return new StringList(arcJNI.JobController_GetDownloadFiles(swigCPtr, this, URL.getCPtr(dir), dir), true);
00082   }
00083 
00084   public boolean ARCCopyFile(URL src, URL dst) {
00085     return arcJNI.JobController_ARCCopyFile(swigCPtr, this, URL.getCPtr(src), src, URL.getCPtr(dst), dst);
00086   }
00087 
00088   public JobList GetJobDescriptions(StringList status, boolean getlocal) {
00089     return new JobList(arcJNI.JobController_GetJobDescriptions(swigCPtr, this, StringList.getCPtr(status), status, getlocal), true);
00090   }
00091 
00092   public void CheckLocalDescription(JobList jobs) {
00093     arcJNI.JobController_CheckLocalDescription(swigCPtr, this, JobList.getCPtr(jobs), jobs);
00094   }
00095 
00096   public JobList GetJobs() {
00097     return new JobList(arcJNI.JobController_GetJobs(swigCPtr, this), false);
00098   }
00099 
00100   public void GetJobInformation() {
00101     arcJNI.JobController_GetJobInformation(swigCPtr, this);
00102   }
00103 
00104   public boolean GetJob(Job job, String downloaddir) {
00105     return arcJNI.JobController_GetJob(swigCPtr, this, Job.getCPtr(job), job, downloaddir);
00106   }
00107 
00108   public boolean CleanJob(Job job, boolean force) {
00109     return arcJNI.JobController_CleanJob(swigCPtr, this, Job.getCPtr(job), job, force);
00110   }
00111 
00112   public boolean CancelJob(Job job) {
00113     return arcJNI.JobController_CancelJob(swigCPtr, this, Job.getCPtr(job), job);
00114   }
00115 
00116   public boolean RenewJob(Job job) {
00117     return arcJNI.JobController_RenewJob(swigCPtr, this, Job.getCPtr(job), job);
00118   }
00119 
00120   public boolean ResumeJob(Job job) {
00121     return arcJNI.JobController_ResumeJob(swigCPtr, this, Job.getCPtr(job), job);
00122   }
00123 
00124   public URL GetFileUrlForJob(Job job, String whichfile) {
00125     return new URL(arcJNI.JobController_GetFileUrlForJob(swigCPtr, this, Job.getCPtr(job), job, whichfile), true);
00126   }
00127 
00128   public boolean GetJobDescription(Job job, SWIGTYPE_p_std__string desc_str) {
00129     return arcJNI.JobController_GetJobDescription(swigCPtr, this, Job.getCPtr(job), job, SWIGTYPE_p_std__string.getCPtr(desc_str));
00130   }
00131 
00132 }