Back to index

nordugrid-arc-nox  1.1.0~rc6
DataMover.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 DataMover {
00012   private long swigCPtr;
00013   protected boolean swigCMemOwn;
00014 
00015   protected DataMover(long cPtr, boolean cMemoryOwn) {
00016     swigCMemOwn = cMemoryOwn;
00017     swigCPtr = cPtr;
00018   }
00019 
00020   protected static long getCPtr(DataMover 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_DataMover(swigCPtr);
00032     }
00033     swigCPtr = 0;
00034   }
00035 
00036   public DataMover() {
00037     this(arcJNI.new_DataMover(), true);
00038   }
00039 
00040   public DataStatus Transfer(DataPoint source, DataPoint destination, FileCache cache, URLMap map, SWIGTYPE_p_f_p_Arc__DataMover_Arc__DataStatus_p_void__void cb, SWIGTYPE_p_void arg, String prefix) {
00041     return new DataStatus(arcJNI.DataMover_Transfer__SWIG_0(swigCPtr, this, DataPoint.getCPtr(source), source, DataPoint.getCPtr(destination), destination, FileCache.getCPtr(cache), cache, URLMap.getCPtr(map), map, SWIGTYPE_p_f_p_Arc__DataMover_Arc__DataStatus_p_void__void.getCPtr(cb), SWIGTYPE_p_void.getCPtr(arg), prefix), true);
00042   }
00043 
00044   public DataStatus Transfer(DataPoint source, DataPoint destination, FileCache cache, URLMap map, SWIGTYPE_p_f_p_Arc__DataMover_Arc__DataStatus_p_void__void cb, SWIGTYPE_p_void arg) {
00045     return new DataStatus(arcJNI.DataMover_Transfer__SWIG_1(swigCPtr, this, DataPoint.getCPtr(source), source, DataPoint.getCPtr(destination), destination, FileCache.getCPtr(cache), cache, URLMap.getCPtr(map), map, SWIGTYPE_p_f_p_Arc__DataMover_Arc__DataStatus_p_void__void.getCPtr(cb), SWIGTYPE_p_void.getCPtr(arg)), true);
00046   }
00047 
00048   public DataStatus Transfer(DataPoint source, DataPoint destination, FileCache cache, URLMap map, SWIGTYPE_p_f_p_Arc__DataMover_Arc__DataStatus_p_void__void cb) {
00049     return new DataStatus(arcJNI.DataMover_Transfer__SWIG_2(swigCPtr, this, DataPoint.getCPtr(source), source, DataPoint.getCPtr(destination), destination, FileCache.getCPtr(cache), cache, URLMap.getCPtr(map), map, SWIGTYPE_p_f_p_Arc__DataMover_Arc__DataStatus_p_void__void.getCPtr(cb)), true);
00050   }
00051 
00052   public DataStatus Transfer(DataPoint source, DataPoint destination, FileCache cache, URLMap map) {
00053     return new DataStatus(arcJNI.DataMover_Transfer__SWIG_3(swigCPtr, this, DataPoint.getCPtr(source), source, DataPoint.getCPtr(destination), destination, FileCache.getCPtr(cache), cache, URLMap.getCPtr(map), map), true);
00054   }
00055 
00056   public DataStatus Transfer(DataPoint source, DataPoint destination, FileCache cache, URLMap map, java.math.BigInteger min_speed, SWIGTYPE_p_time_t min_speed_time, java.math.BigInteger min_average_speed, SWIGTYPE_p_time_t max_inactivity_time, SWIGTYPE_p_f_p_Arc__DataMover_Arc__DataStatus_p_void__void cb, SWIGTYPE_p_void arg, String prefix) {
00057     return new DataStatus(arcJNI.DataMover_Transfer__SWIG_4(swigCPtr, this, DataPoint.getCPtr(source), source, DataPoint.getCPtr(destination), destination, FileCache.getCPtr(cache), cache, URLMap.getCPtr(map), map, min_speed, SWIGTYPE_p_time_t.getCPtr(min_speed_time), min_average_speed, SWIGTYPE_p_time_t.getCPtr(max_inactivity_time), SWIGTYPE_p_f_p_Arc__DataMover_Arc__DataStatus_p_void__void.getCPtr(cb), SWIGTYPE_p_void.getCPtr(arg), prefix), true);
00058   }
00059 
00060   public DataStatus Transfer(DataPoint source, DataPoint destination, FileCache cache, URLMap map, java.math.BigInteger min_speed, SWIGTYPE_p_time_t min_speed_time, java.math.BigInteger min_average_speed, SWIGTYPE_p_time_t max_inactivity_time, SWIGTYPE_p_f_p_Arc__DataMover_Arc__DataStatus_p_void__void cb, SWIGTYPE_p_void arg) {
00061     return new DataStatus(arcJNI.DataMover_Transfer__SWIG_5(swigCPtr, this, DataPoint.getCPtr(source), source, DataPoint.getCPtr(destination), destination, FileCache.getCPtr(cache), cache, URLMap.getCPtr(map), map, min_speed, SWIGTYPE_p_time_t.getCPtr(min_speed_time), min_average_speed, SWIGTYPE_p_time_t.getCPtr(max_inactivity_time), SWIGTYPE_p_f_p_Arc__DataMover_Arc__DataStatus_p_void__void.getCPtr(cb), SWIGTYPE_p_void.getCPtr(arg)), true);
00062   }
00063 
00064   public DataStatus Transfer(DataPoint source, DataPoint destination, FileCache cache, URLMap map, java.math.BigInteger min_speed, SWIGTYPE_p_time_t min_speed_time, java.math.BigInteger min_average_speed, SWIGTYPE_p_time_t max_inactivity_time, SWIGTYPE_p_f_p_Arc__DataMover_Arc__DataStatus_p_void__void cb) {
00065     return new DataStatus(arcJNI.DataMover_Transfer__SWIG_6(swigCPtr, this, DataPoint.getCPtr(source), source, DataPoint.getCPtr(destination), destination, FileCache.getCPtr(cache), cache, URLMap.getCPtr(map), map, min_speed, SWIGTYPE_p_time_t.getCPtr(min_speed_time), min_average_speed, SWIGTYPE_p_time_t.getCPtr(max_inactivity_time), SWIGTYPE_p_f_p_Arc__DataMover_Arc__DataStatus_p_void__void.getCPtr(cb)), true);
00066   }
00067 
00068   public DataStatus Transfer(DataPoint source, DataPoint destination, FileCache cache, URLMap map, java.math.BigInteger min_speed, SWIGTYPE_p_time_t min_speed_time, java.math.BigInteger min_average_speed, SWIGTYPE_p_time_t max_inactivity_time) {
00069     return new DataStatus(arcJNI.DataMover_Transfer__SWIG_7(swigCPtr, this, DataPoint.getCPtr(source), source, DataPoint.getCPtr(destination), destination, FileCache.getCPtr(cache), cache, URLMap.getCPtr(map), map, min_speed, SWIGTYPE_p_time_t.getCPtr(min_speed_time), min_average_speed, SWIGTYPE_p_time_t.getCPtr(max_inactivity_time)), true);
00070   }
00071 
00072   public DataStatus Delete(DataPoint url, boolean errcont) {
00073     return new DataStatus(arcJNI.DataMover_Delete__SWIG_0(swigCPtr, this, DataPoint.getCPtr(url), url, errcont), true);
00074   }
00075 
00076   public DataStatus Delete(DataPoint url) {
00077     return new DataStatus(arcJNI.DataMover_Delete__SWIG_1(swigCPtr, this, DataPoint.getCPtr(url), url), true);
00078   }
00079 
00080   public boolean verbose() {
00081     return arcJNI.DataMover_verbose__SWIG_0(swigCPtr, this);
00082   }
00083 
00084   public void verbose(boolean arg0) {
00085     arcJNI.DataMover_verbose__SWIG_1(swigCPtr, this, arg0);
00086   }
00087 
00088   public void verbose(String prefix) {
00089     arcJNI.DataMover_verbose__SWIG_2(swigCPtr, this, prefix);
00090   }
00091 
00092   public boolean retry() {
00093     return arcJNI.DataMover_retry__SWIG_0(swigCPtr, this);
00094   }
00095 
00096   public void retry(boolean arg0) {
00097     arcJNI.DataMover_retry__SWIG_1(swigCPtr, this, arg0);
00098   }
00099 
00100   public void secure(boolean arg0) {
00101     arcJNI.DataMover_secure(swigCPtr, this, arg0);
00102   }
00103 
00104   public void passive(boolean arg0) {
00105     arcJNI.DataMover_passive(swigCPtr, this, arg0);
00106   }
00107 
00108   public void force_to_meta(boolean arg0) {
00109     arcJNI.DataMover_force_to_meta(swigCPtr, this, arg0);
00110   }
00111 
00112   public boolean checks() {
00113     return arcJNI.DataMover_checks__SWIG_0(swigCPtr, this);
00114   }
00115 
00116   public void checks(boolean v) {
00117     arcJNI.DataMover_checks__SWIG_1(swigCPtr, this, v);
00118   }
00119 
00120   public void set_default_min_speed(java.math.BigInteger min_speed, SWIGTYPE_p_time_t min_speed_time) {
00121     arcJNI.DataMover_set_default_min_speed(swigCPtr, this, min_speed, SWIGTYPE_p_time_t.getCPtr(min_speed_time));
00122   }
00123 
00124   public void set_default_min_average_speed(java.math.BigInteger min_average_speed) {
00125     arcJNI.DataMover_set_default_min_average_speed(swigCPtr, this, min_average_speed);
00126   }
00127 
00128   public void set_default_max_inactivity_time(SWIGTYPE_p_time_t max_inactivity_time) {
00129     arcJNI.DataMover_set_default_max_inactivity_time(swigCPtr, this, SWIGTYPE_p_time_t.getCPtr(max_inactivity_time));
00130   }
00131 
00132   public void set_progress_indicator(SWIGTYPE_p_f_p_FILE_p_q_const__char_unsigned_int_unsigned_long_long_unsigned_long_long_double_double__void func) {
00133     arcJNI.DataMover_set_progress_indicator__SWIG_0(swigCPtr, this, SWIGTYPE_p_f_p_FILE_p_q_const__char_unsigned_int_unsigned_long_long_unsigned_long_long_double_double__void.getCPtr(func));
00134   }
00135 
00136   public void set_progress_indicator() {
00137     arcJNI.DataMover_set_progress_indicator__SWIG_1(swigCPtr, this);
00138   }
00139 
00140 }