Back to index

nordugrid-arc-nox  1.1.0~rc6
TargetGenerator.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 TargetGenerator {
00012   private long swigCPtr;
00013   protected boolean swigCMemOwn;
00014 
00015   protected TargetGenerator(long cPtr, boolean cMemoryOwn) {
00016     swigCMemOwn = cMemoryOwn;
00017     swigCPtr = cPtr;
00018   }
00019 
00020   protected static long getCPtr(TargetGenerator 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_TargetGenerator(swigCPtr);
00032     }
00033     swigCPtr = 0;
00034   }
00035 
00036   public TargetGenerator(UserConfig usercfg) {
00037     this(arcJNI.new_TargetGenerator(UserConfig.getCPtr(usercfg), usercfg), true);
00038   }
00039 
00040   public void GetTargets(int targetType, int detailLevel) {
00041     arcJNI.TargetGenerator_GetTargets(swigCPtr, this, targetType, detailLevel);
00042   }
00043 
00044   public ExecutionTargetList FoundTargets() {
00045     return new ExecutionTargetList(arcJNI.TargetGenerator_FoundTargets(swigCPtr, this), false);
00046   }
00047 
00048   public ExecutionTargetList ModifyFoundTargets() {
00049     return new ExecutionTargetList(arcJNI.TargetGenerator_ModifyFoundTargets(swigCPtr, this), false);
00050   }
00051 
00052   public SWIGTYPE_p_std__listT_Arc__XMLNode_p_t FoundJobs() {
00053     return new SWIGTYPE_p_std__listT_Arc__XMLNode_p_t(arcJNI.TargetGenerator_FoundJobs(swigCPtr, this), false);
00054   }
00055 
00056   public boolean AddService(URL url) {
00057     return arcJNI.TargetGenerator_AddService(swigCPtr, this, URL.getCPtr(url), url);
00058   }
00059 
00060   public boolean AddIndexServer(URL url) {
00061     return arcJNI.TargetGenerator_AddIndexServer(swigCPtr, this, URL.getCPtr(url), url);
00062   }
00063 
00064   public void AddTarget(ExecutionTarget target) {
00065     arcJNI.TargetGenerator_AddTarget(swigCPtr, this, ExecutionTarget.getCPtr(target), target);
00066   }
00067 
00068   public void AddJob(XMLNode job) {
00069     arcJNI.TargetGenerator_AddJob(swigCPtr, this, XMLNode.getCPtr(job), job);
00070   }
00071 
00072   public void RetrieverDone() {
00073     arcJNI.TargetGenerator_RetrieverDone(swigCPtr, this);
00074   }
00075 
00076   public void PrintTargetInfo(boolean longlist) {
00077     arcJNI.TargetGenerator_PrintTargetInfo(swigCPtr, this, longlist);
00078   }
00079 
00080 }