Back to index

nordugrid-arc-nox  1.1.0~rc6
FileCache.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 FileCache {
00012   private long swigCPtr;
00013   protected boolean swigCMemOwn;
00014 
00015   protected FileCache(long cPtr, boolean cMemoryOwn) {
00016     swigCMemOwn = cMemoryOwn;
00017     swigCPtr = cPtr;
00018   }
00019 
00020   protected static long getCPtr(FileCache obj) {
00021     return (obj == null) ? 0 : obj.swigCPtr;
00022   }
00023 
00024   public synchronized void delete() {
00025     if(swigCPtr != 0 && swigCMemOwn) {
00026       swigCMemOwn = false;
00027       throw new UnsupportedOperationException("C++ destructor does not have public access");
00028     }
00029     swigCPtr = 0;
00030   }
00031 
00032   public FileCache(String cache_path, String id, SWIGTYPE_p_uid_t job_uid, SWIGTYPE_p_gid_t job_gid) {
00033     this(arcJNI.new_FileCache__SWIG_0(cache_path, id, SWIGTYPE_p_uid_t.getCPtr(job_uid), SWIGTYPE_p_gid_t.getCPtr(job_gid)), true);
00034   }
00035 
00036   public FileCache(SWIGTYPE_p_std__vectorT_std__string_t caches, String id, SWIGTYPE_p_uid_t job_uid, SWIGTYPE_p_gid_t job_gid) {
00037     this(arcJNI.new_FileCache__SWIG_1(SWIGTYPE_p_std__vectorT_std__string_t.getCPtr(caches), id, SWIGTYPE_p_uid_t.getCPtr(job_uid), SWIGTYPE_p_gid_t.getCPtr(job_gid)), true);
00038   }
00039 
00040   public FileCache(SWIGTYPE_p_std__vectorT_std__string_t caches, SWIGTYPE_p_std__vectorT_std__string_t remote_caches, SWIGTYPE_p_std__vectorT_std__string_t draining_caches, String id, SWIGTYPE_p_uid_t job_uid, SWIGTYPE_p_gid_t job_gid, int cache_max, int cache_min) {
00041     this(arcJNI.new_FileCache__SWIG_2(SWIGTYPE_p_std__vectorT_std__string_t.getCPtr(caches), SWIGTYPE_p_std__vectorT_std__string_t.getCPtr(remote_caches), SWIGTYPE_p_std__vectorT_std__string_t.getCPtr(draining_caches), id, SWIGTYPE_p_uid_t.getCPtr(job_uid), SWIGTYPE_p_gid_t.getCPtr(job_gid), cache_max, cache_min), true);
00042   }
00043 
00044   public FileCache(SWIGTYPE_p_std__vectorT_std__string_t caches, SWIGTYPE_p_std__vectorT_std__string_t remote_caches, SWIGTYPE_p_std__vectorT_std__string_t draining_caches, String id, SWIGTYPE_p_uid_t job_uid, SWIGTYPE_p_gid_t job_gid, int cache_max) {
00045     this(arcJNI.new_FileCache__SWIG_3(SWIGTYPE_p_std__vectorT_std__string_t.getCPtr(caches), SWIGTYPE_p_std__vectorT_std__string_t.getCPtr(remote_caches), SWIGTYPE_p_std__vectorT_std__string_t.getCPtr(draining_caches), id, SWIGTYPE_p_uid_t.getCPtr(job_uid), SWIGTYPE_p_gid_t.getCPtr(job_gid), cache_max), true);
00046   }
00047 
00048   public FileCache(SWIGTYPE_p_std__vectorT_std__string_t caches, SWIGTYPE_p_std__vectorT_std__string_t remote_caches, SWIGTYPE_p_std__vectorT_std__string_t draining_caches, String id, SWIGTYPE_p_uid_t job_uid, SWIGTYPE_p_gid_t job_gid) {
00049     this(arcJNI.new_FileCache__SWIG_4(SWIGTYPE_p_std__vectorT_std__string_t.getCPtr(caches), SWIGTYPE_p_std__vectorT_std__string_t.getCPtr(remote_caches), SWIGTYPE_p_std__vectorT_std__string_t.getCPtr(draining_caches), id, SWIGTYPE_p_uid_t.getCPtr(job_uid), SWIGTYPE_p_gid_t.getCPtr(job_gid)), true);
00050   }
00051 
00052   public FileCache() {
00053     this(arcJNI.new_FileCache__SWIG_5(), true);
00054   }
00055 
00056   public boolean Start(String url, SWIGTYPE_p_bool available, SWIGTYPE_p_bool is_locked, boolean use_remote) {
00057     return arcJNI.FileCache_Start__SWIG_0(swigCPtr, this, url, SWIGTYPE_p_bool.getCPtr(available), SWIGTYPE_p_bool.getCPtr(is_locked), use_remote);
00058   }
00059 
00060   public boolean Start(String url, SWIGTYPE_p_bool available, SWIGTYPE_p_bool is_locked) {
00061     return arcJNI.FileCache_Start__SWIG_1(swigCPtr, this, url, SWIGTYPE_p_bool.getCPtr(available), SWIGTYPE_p_bool.getCPtr(is_locked));
00062   }
00063 
00064   public boolean Stop(String url) {
00065     return arcJNI.FileCache_Stop(swigCPtr, this, url);
00066   }
00067 
00068   public boolean StopAndDelete(String url) {
00069     return arcJNI.FileCache_StopAndDelete(swigCPtr, this, url);
00070   }
00071 
00072   public String File(String url) {
00073     return arcJNI.FileCache_File(swigCPtr, this, url);
00074   }
00075 
00076   public boolean Link(String link_path, String url) {
00077     return arcJNI.FileCache_Link(swigCPtr, this, link_path, url);
00078   }
00079 
00080   public boolean Copy(String dest_path, String url, boolean executable) {
00081     return arcJNI.FileCache_Copy__SWIG_0(swigCPtr, this, dest_path, url, executable);
00082   }
00083 
00084   public boolean Copy(String dest_path, String url) {
00085     return arcJNI.FileCache_Copy__SWIG_1(swigCPtr, this, dest_path, url);
00086   }
00087 
00088   public boolean Release() {
00089     return arcJNI.FileCache_Release(swigCPtr, this);
00090   }
00091 
00092   public boolean AddDN(String url, String DN, Time expiry_time) {
00093     return arcJNI.FileCache_AddDN(swigCPtr, this, url, DN, Time.getCPtr(expiry_time), expiry_time);
00094   }
00095 
00096   public boolean CheckDN(String url, String DN) {
00097     return arcJNI.FileCache_CheckDN(swigCPtr, this, url, DN);
00098   }
00099 
00100   public boolean CheckCreated(String url) {
00101     return arcJNI.FileCache_CheckCreated(swigCPtr, this, url);
00102   }
00103 
00104   public Time GetCreated(String url) {
00105     return new Time(arcJNI.FileCache_GetCreated(swigCPtr, this, url), true);
00106   }
00107 
00108   public boolean CheckValid(String url) {
00109     return arcJNI.FileCache_CheckValid(swigCPtr, this, url);
00110   }
00111 
00112   public Time GetValid(String url) {
00113     return new Time(arcJNI.FileCache_GetValid(swigCPtr, this, url), true);
00114   }
00115 
00116   public boolean SetValid(String url, Time val) {
00117     return arcJNI.FileCache_SetValid(swigCPtr, this, url, Time.getCPtr(val), val);
00118   }
00119 
00120   public boolean toBool() {
00121     return arcJNI.FileCache_toBool(swigCPtr, this);
00122   }
00123 
00124 }