Back to index

nordugrid-arc-nox  1.1.0~rc6
DataPoint.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 DataPoint {
00012   private long swigCPtr;
00013   protected boolean swigCMemOwn;
00014 
00015   protected DataPoint(long cPtr, boolean cMemoryOwn) {
00016     swigCMemOwn = cMemoryOwn;
00017     swigCPtr = cPtr;
00018   }
00019 
00020   protected static long getCPtr(DataPoint 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_DataPoint(swigCPtr);
00032     }
00033     swigCPtr = 0;
00034   }
00035 
00036   public URL GetURL() {
00037     return new URL(arcJNI.DataPoint_GetURL(swigCPtr, this), false);
00038   }
00039 
00040   public UserConfig GetUserConfig() {
00041     return new UserConfig(arcJNI.DataPoint_GetUserConfig(swigCPtr, this), false);
00042   }
00043 
00044   public String str() {
00045     return arcJNI.DataPoint_str(swigCPtr, this);
00046   }
00047 
00048   public boolean toBool() {
00049     return arcJNI.DataPoint_toBool(swigCPtr, this);
00050   }
00051 
00052   public DataStatus StartReading(DataBuffer buffer) {
00053     return new DataStatus(arcJNI.DataPoint_StartReading(swigCPtr, this, DataBuffer.getCPtr(buffer), buffer), true);
00054   }
00055 
00056   public DataStatus StartWriting(DataBuffer buffer, SWIGTYPE_p_Arc__DataCallback space_cb) {
00057     return new DataStatus(arcJNI.DataPoint_StartWriting__SWIG_0(swigCPtr, this, DataBuffer.getCPtr(buffer), buffer, SWIGTYPE_p_Arc__DataCallback.getCPtr(space_cb)), true);
00058   }
00059 
00060   public DataStatus StartWriting(DataBuffer buffer) {
00061     return new DataStatus(arcJNI.DataPoint_StartWriting__SWIG_1(swigCPtr, this, DataBuffer.getCPtr(buffer), buffer), true);
00062   }
00063 
00064   public DataStatus StopReading() {
00065     return new DataStatus(arcJNI.DataPoint_StopReading(swigCPtr, this), true);
00066   }
00067 
00068   public DataStatus StopWriting() {
00069     return new DataStatus(arcJNI.DataPoint_StopWriting(swigCPtr, this), true);
00070   }
00071 
00072   public DataStatus Check() {
00073     return new DataStatus(arcJNI.DataPoint_Check(swigCPtr, this), true);
00074   }
00075 
00076   public DataStatus Remove() {
00077     return new DataStatus(arcJNI.DataPoint_Remove(swigCPtr, this), true);
00078   }
00079 
00080   public DataStatus ListFiles(SWIGTYPE_p_std__listT_Arc__FileInfo_t files, boolean long_list, boolean resolve, boolean metadata) {
00081     return new DataStatus(arcJNI.DataPoint_ListFiles__SWIG_0(swigCPtr, this, SWIGTYPE_p_std__listT_Arc__FileInfo_t.getCPtr(files), long_list, resolve, metadata), true);
00082   }
00083 
00084   public DataStatus ListFiles(SWIGTYPE_p_std__listT_Arc__FileInfo_t files, boolean long_list, boolean resolve) {
00085     return new DataStatus(arcJNI.DataPoint_ListFiles__SWIG_1(swigCPtr, this, SWIGTYPE_p_std__listT_Arc__FileInfo_t.getCPtr(files), long_list, resolve), true);
00086   }
00087 
00088   public DataStatus ListFiles(SWIGTYPE_p_std__listT_Arc__FileInfo_t files, boolean long_list) {
00089     return new DataStatus(arcJNI.DataPoint_ListFiles__SWIG_2(swigCPtr, this, SWIGTYPE_p_std__listT_Arc__FileInfo_t.getCPtr(files), long_list), true);
00090   }
00091 
00092   public DataStatus ListFiles(SWIGTYPE_p_std__listT_Arc__FileInfo_t files) {
00093     return new DataStatus(arcJNI.DataPoint_ListFiles__SWIG_3(swigCPtr, this, SWIGTYPE_p_std__listT_Arc__FileInfo_t.getCPtr(files)), true);
00094   }
00095 
00096   public void ReadOutOfOrder(boolean v) {
00097     arcJNI.DataPoint_ReadOutOfOrder(swigCPtr, this, v);
00098   }
00099 
00100   public boolean WriteOutOfOrder() {
00101     return arcJNI.DataPoint_WriteOutOfOrder(swigCPtr, this);
00102   }
00103 
00104   public void SetAdditionalChecks(boolean v) {
00105     arcJNI.DataPoint_SetAdditionalChecks(swigCPtr, this, v);
00106   }
00107 
00108   public boolean GetAdditionalChecks() {
00109     return arcJNI.DataPoint_GetAdditionalChecks(swigCPtr, this);
00110   }
00111 
00112   public void SetSecure(boolean v) {
00113     arcJNI.DataPoint_SetSecure(swigCPtr, this, v);
00114   }
00115 
00116   public boolean GetSecure() {
00117     return arcJNI.DataPoint_GetSecure(swigCPtr, this);
00118   }
00119 
00120   public void Passive(boolean v) {
00121     arcJNI.DataPoint_Passive(swigCPtr, this, v);
00122   }
00123 
00124   public DataStatus GetFailureReason() {
00125     return new DataStatus(arcJNI.DataPoint_GetFailureReason(swigCPtr, this), true);
00126   }
00127 
00128   public void Range(java.math.BigInteger start, java.math.BigInteger end) {
00129     arcJNI.DataPoint_Range__SWIG_0(swigCPtr, this, start, end);
00130   }
00131 
00132   public void Range(java.math.BigInteger start) {
00133     arcJNI.DataPoint_Range__SWIG_1(swigCPtr, this, start);
00134   }
00135 
00136   public void Range() {
00137     arcJNI.DataPoint_Range__SWIG_2(swigCPtr, this);
00138   }
00139 
00140   public DataStatus Resolve(boolean source) {
00141     return new DataStatus(arcJNI.DataPoint_Resolve(swigCPtr, this, source), true);
00142   }
00143 
00144   public boolean Registered() {
00145     return arcJNI.DataPoint_Registered(swigCPtr, this);
00146   }
00147 
00148   public DataStatus PreRegister(boolean replication, boolean force) {
00149     return new DataStatus(arcJNI.DataPoint_PreRegister__SWIG_0(swigCPtr, this, replication, force), true);
00150   }
00151 
00152   public DataStatus PreRegister(boolean replication) {
00153     return new DataStatus(arcJNI.DataPoint_PreRegister__SWIG_1(swigCPtr, this, replication), true);
00154   }
00155 
00156   public DataStatus PostRegister(boolean replication) {
00157     return new DataStatus(arcJNI.DataPoint_PostRegister(swigCPtr, this, replication), true);
00158   }
00159 
00160   public DataStatus PreUnregister(boolean replication) {
00161     return new DataStatus(arcJNI.DataPoint_PreUnregister(swigCPtr, this, replication), true);
00162   }
00163 
00164   public DataStatus Unregister(boolean all) {
00165     return new DataStatus(arcJNI.DataPoint_Unregister(swigCPtr, this, all), true);
00166   }
00167 
00168   public boolean CheckSize() {
00169     return arcJNI.DataPoint_CheckSize(swigCPtr, this);
00170   }
00171 
00172   public void SetSize(java.math.BigInteger val) {
00173     arcJNI.DataPoint_SetSize(swigCPtr, this, val);
00174   }
00175 
00176   public java.math.BigInteger GetSize() {
00177     return arcJNI.DataPoint_GetSize(swigCPtr, this);
00178   }
00179 
00180   public boolean CheckCheckSum() {
00181     return arcJNI.DataPoint_CheckCheckSum(swigCPtr, this);
00182   }
00183 
00184   public void SetCheckSum(String val) {
00185     arcJNI.DataPoint_SetCheckSum(swigCPtr, this, val);
00186   }
00187 
00188   public String GetCheckSum() {
00189     return arcJNI.DataPoint_GetCheckSum(swigCPtr, this);
00190   }
00191 
00192   public String DefaultCheckSum() {
00193     return arcJNI.DataPoint_DefaultCheckSum(swigCPtr, this);
00194   }
00195 
00196   public boolean CheckCreated() {
00197     return arcJNI.DataPoint_CheckCreated(swigCPtr, this);
00198   }
00199 
00200   public void SetCreated(Time val) {
00201     arcJNI.DataPoint_SetCreated(swigCPtr, this, Time.getCPtr(val), val);
00202   }
00203 
00204   public Time GetCreated() {
00205     return new Time(arcJNI.DataPoint_GetCreated(swigCPtr, this), false);
00206   }
00207 
00208   public boolean CheckValid() {
00209     return arcJNI.DataPoint_CheckValid(swigCPtr, this);
00210   }
00211 
00212   public void SetValid(Time val) {
00213     arcJNI.DataPoint_SetValid(swigCPtr, this, Time.getCPtr(val), val);
00214   }
00215 
00216   public Time GetValid() {
00217     return new Time(arcJNI.DataPoint_GetValid(swigCPtr, this), false);
00218   }
00219 
00220   public long BufSize() {
00221     return arcJNI.DataPoint_BufSize(swigCPtr, this);
00222   }
00223 
00224   public int BufNum() {
00225     return arcJNI.DataPoint_BufNum(swigCPtr, this);
00226   }
00227 
00228   public boolean Cache() {
00229     return arcJNI.DataPoint_Cache(swigCPtr, this);
00230   }
00231 
00232   public boolean Local() {
00233     return arcJNI.DataPoint_Local(swigCPtr, this);
00234   }
00235 
00236   public boolean ReadOnly() {
00237     return arcJNI.DataPoint_ReadOnly(swigCPtr, this);
00238   }
00239 
00240   public int GetTries() {
00241     return arcJNI.DataPoint_GetTries(swigCPtr, this);
00242   }
00243 
00244   public void SetTries(int n) {
00245     arcJNI.DataPoint_SetTries(swigCPtr, this, n);
00246   }
00247 
00248   public void NextTry() {
00249     arcJNI.DataPoint_NextTry(swigCPtr, this);
00250   }
00251 
00252   public boolean IsIndex() {
00253     return arcJNI.DataPoint_IsIndex(swigCPtr, this);
00254   }
00255 
00256   public boolean AcceptsMeta() {
00257     return arcJNI.DataPoint_AcceptsMeta(swigCPtr, this);
00258   }
00259 
00260   public boolean ProvidesMeta() {
00261     return arcJNI.DataPoint_ProvidesMeta(swigCPtr, this);
00262   }
00263 
00264   public void SetMeta(DataPoint p) {
00265     arcJNI.DataPoint_SetMeta(swigCPtr, this, DataPoint.getCPtr(p), p);
00266   }
00267 
00268   public boolean CompareMeta(DataPoint p) {
00269     return arcJNI.DataPoint_CompareMeta(swigCPtr, this, DataPoint.getCPtr(p), p);
00270   }
00271 
00272   public URL CurrentLocation() {
00273     return new URL(arcJNI.DataPoint_CurrentLocation(swigCPtr, this), false);
00274   }
00275 
00276   public String CurrentLocationMetadata() {
00277     return arcJNI.DataPoint_CurrentLocationMetadata(swigCPtr, this);
00278   }
00279 
00280   public DataStatus CompareLocationMetadata() {
00281     return new DataStatus(arcJNI.DataPoint_CompareLocationMetadata(swigCPtr, this), true);
00282   }
00283 
00284   public boolean NextLocation() {
00285     return arcJNI.DataPoint_NextLocation(swigCPtr, this);
00286   }
00287 
00288   public boolean LocationValid() {
00289     return arcJNI.DataPoint_LocationValid(swigCPtr, this);
00290   }
00291 
00292   public boolean HaveLocations() {
00293     return arcJNI.DataPoint_HaveLocations(swigCPtr, this);
00294   }
00295 
00296   public DataStatus AddLocation(URL url, String meta) {
00297     return new DataStatus(arcJNI.DataPoint_AddLocation(swigCPtr, this, URL.getCPtr(url), url, meta), true);
00298   }
00299 
00300   public DataStatus RemoveLocation() {
00301     return new DataStatus(arcJNI.DataPoint_RemoveLocation(swigCPtr, this), true);
00302   }
00303 
00304   public DataStatus RemoveLocations(DataPoint p) {
00305     return new DataStatus(arcJNI.DataPoint_RemoveLocations(swigCPtr, this, DataPoint.getCPtr(p), p), true);
00306   }
00307 
00308 }