Back to index

nordugrid-arc-nox  1.1.0~rc6
DataStatus.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 DataStatus {
00012   private long swigCPtr;
00013   protected boolean swigCMemOwn;
00014 
00015   protected DataStatus(long cPtr, boolean cMemoryOwn) {
00016     swigCMemOwn = cMemoryOwn;
00017     swigCPtr = cPtr;
00018   }
00019 
00020   protected static long getCPtr(DataStatus 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_DataStatus(swigCPtr);
00032     }
00033     swigCPtr = 0;
00034   }
00035 
00036   public DataStatus(DataStatus.DataStatusType status, String desc) {
00037     this(arcJNI.new_DataStatus__SWIG_0(status.swigValue(), desc), true);
00038   }
00039 
00040   public DataStatus(DataStatus.DataStatusType status) {
00041     this(arcJNI.new_DataStatus__SWIG_1(status.swigValue()), true);
00042   }
00043 
00044   public DataStatus() {
00045     this(arcJNI.new_DataStatus__SWIG_2(), true);
00046   }
00047 
00048   public boolean toBool() {
00049     return arcJNI.DataStatus_toBool(swigCPtr, this);
00050   }
00051 
00052   public boolean Passed() {
00053     return arcJNI.DataStatus_Passed(swigCPtr, this);
00054   }
00055 
00056   public boolean Retryable() {
00057     return arcJNI.DataStatus_Retryable(swigCPtr, this);
00058   }
00059 
00060   public void SetDesc(String d) {
00061     arcJNI.DataStatus_SetDesc(swigCPtr, this, d);
00062   }
00063 
00064   public String GetDesc() {
00065     return arcJNI.DataStatus_GetDesc(swigCPtr, this);
00066   }
00067 
00068   public String toString() {
00069     return arcJNI.DataStatus_toString(swigCPtr, this);
00070   }
00071 
00072   public final static class DataStatusType {
00073     public final static DataStatusType Success = new DataStatusType("Success", arcJNI.DataStatus_Success_get());
00074     public final static DataStatusType ReadAcquireError = new DataStatusType("ReadAcquireError", arcJNI.DataStatus_ReadAcquireError_get());
00075     public final static DataStatusType ReadAcquireErrorRetryable = new DataStatusType("ReadAcquireErrorRetryable", arcJNI.DataStatus_ReadAcquireErrorRetryable_get());
00076     public final static DataStatusType WriteAcquireError = new DataStatusType("WriteAcquireError", arcJNI.DataStatus_WriteAcquireError_get());
00077     public final static DataStatusType WriteAcquireErrorRetryable = new DataStatusType("WriteAcquireErrorRetryable", arcJNI.DataStatus_WriteAcquireErrorRetryable_get());
00078     public final static DataStatusType ReadResolveError = new DataStatusType("ReadResolveError", arcJNI.DataStatus_ReadResolveError_get());
00079     public final static DataStatusType ReadResolveErrorRetryable = new DataStatusType("ReadResolveErrorRetryable", arcJNI.DataStatus_ReadResolveErrorRetryable_get());
00080     public final static DataStatusType WriteResolveError = new DataStatusType("WriteResolveError", arcJNI.DataStatus_WriteResolveError_get());
00081     public final static DataStatusType WriteResolveErrorRetryable = new DataStatusType("WriteResolveErrorRetryable", arcJNI.DataStatus_WriteResolveErrorRetryable_get());
00082     public final static DataStatusType ReadStartError = new DataStatusType("ReadStartError", arcJNI.DataStatus_ReadStartError_get());
00083     public final static DataStatusType ReadStartErrorRetryable = new DataStatusType("ReadStartErrorRetryable", arcJNI.DataStatus_ReadStartErrorRetryable_get());
00084     public final static DataStatusType WriteStartError = new DataStatusType("WriteStartError", arcJNI.DataStatus_WriteStartError_get());
00085     public final static DataStatusType WriteStartErrorRetryable = new DataStatusType("WriteStartErrorRetryable", arcJNI.DataStatus_WriteStartErrorRetryable_get());
00086     public final static DataStatusType ReadError = new DataStatusType("ReadError", arcJNI.DataStatus_ReadError_get());
00087     public final static DataStatusType ReadErrorRetryable = new DataStatusType("ReadErrorRetryable", arcJNI.DataStatus_ReadErrorRetryable_get());
00088     public final static DataStatusType WriteError = new DataStatusType("WriteError", arcJNI.DataStatus_WriteError_get());
00089     public final static DataStatusType WriteErrorRetryable = new DataStatusType("WriteErrorRetryable", arcJNI.DataStatus_WriteErrorRetryable_get());
00090     public final static DataStatusType TransferError = new DataStatusType("TransferError", arcJNI.DataStatus_TransferError_get());
00091     public final static DataStatusType TransferErrorRetryable = new DataStatusType("TransferErrorRetryable", arcJNI.DataStatus_TransferErrorRetryable_get());
00092     public final static DataStatusType ReadStopError = new DataStatusType("ReadStopError", arcJNI.DataStatus_ReadStopError_get());
00093     public final static DataStatusType ReadStopErrorRetryable = new DataStatusType("ReadStopErrorRetryable", arcJNI.DataStatus_ReadStopErrorRetryable_get());
00094     public final static DataStatusType WriteStopError = new DataStatusType("WriteStopError", arcJNI.DataStatus_WriteStopError_get());
00095     public final static DataStatusType WriteStopErrorRetryable = new DataStatusType("WriteStopErrorRetryable", arcJNI.DataStatus_WriteStopErrorRetryable_get());
00096     public final static DataStatusType PreRegisterError = new DataStatusType("PreRegisterError", arcJNI.DataStatus_PreRegisterError_get());
00097     public final static DataStatusType PreRegisterErrorRetryable = new DataStatusType("PreRegisterErrorRetryable", arcJNI.DataStatus_PreRegisterErrorRetryable_get());
00098     public final static DataStatusType PostRegisterError = new DataStatusType("PostRegisterError", arcJNI.DataStatus_PostRegisterError_get());
00099     public final static DataStatusType PostRegisterErrorRetryable = new DataStatusType("PostRegisterErrorRetryable", arcJNI.DataStatus_PostRegisterErrorRetryable_get());
00100     public final static DataStatusType UnregisterError = new DataStatusType("UnregisterError", arcJNI.DataStatus_UnregisterError_get());
00101     public final static DataStatusType UnregisterErrorRetryable = new DataStatusType("UnregisterErrorRetryable", arcJNI.DataStatus_UnregisterErrorRetryable_get());
00102     public final static DataStatusType CacheError = new DataStatusType("CacheError", arcJNI.DataStatus_CacheError_get());
00103     public final static DataStatusType CacheErrorRetryable = new DataStatusType("CacheErrorRetryable", arcJNI.DataStatus_CacheErrorRetryable_get());
00104     public final static DataStatusType CredentialsExpiredError = new DataStatusType("CredentialsExpiredError", arcJNI.DataStatus_CredentialsExpiredError_get());
00105     public final static DataStatusType DeleteError = new DataStatusType("DeleteError", arcJNI.DataStatus_DeleteError_get());
00106     public final static DataStatusType DeleteErrorRetryable = new DataStatusType("DeleteErrorRetryable", arcJNI.DataStatus_DeleteErrorRetryable_get());
00107     public final static DataStatusType NoLocationError = new DataStatusType("NoLocationError", arcJNI.DataStatus_NoLocationError_get());
00108     public final static DataStatusType LocationAlreadyExistsError = new DataStatusType("LocationAlreadyExistsError", arcJNI.DataStatus_LocationAlreadyExistsError_get());
00109     public final static DataStatusType NotSupportedForDirectDataPointsError = new DataStatusType("NotSupportedForDirectDataPointsError", arcJNI.DataStatus_NotSupportedForDirectDataPointsError_get());
00110     public final static DataStatusType UnimplementedError = new DataStatusType("UnimplementedError", arcJNI.DataStatus_UnimplementedError_get());
00111     public final static DataStatusType IsReadingError = new DataStatusType("IsReadingError", arcJNI.DataStatus_IsReadingError_get());
00112     public final static DataStatusType IsWritingError = new DataStatusType("IsWritingError", arcJNI.DataStatus_IsWritingError_get());
00113     public final static DataStatusType CheckError = new DataStatusType("CheckError", arcJNI.DataStatus_CheckError_get());
00114     public final static DataStatusType CheckErrorRetryable = new DataStatusType("CheckErrorRetryable", arcJNI.DataStatus_CheckErrorRetryable_get());
00115     public final static DataStatusType ListError = new DataStatusType("ListError", arcJNI.DataStatus_ListError_get());
00116     public final static DataStatusType ListErrorRetryable = new DataStatusType("ListErrorRetryable", arcJNI.DataStatus_ListErrorRetryable_get());
00117     public final static DataStatusType NotInitializedError = new DataStatusType("NotInitializedError", arcJNI.DataStatus_NotInitializedError_get());
00118     public final static DataStatusType SystemError = new DataStatusType("SystemError", arcJNI.DataStatus_SystemError_get());
00119     public final static DataStatusType StageError = new DataStatusType("StageError", arcJNI.DataStatus_StageError_get());
00120     public final static DataStatusType StageErrorRetryable = new DataStatusType("StageErrorRetryable", arcJNI.DataStatus_StageErrorRetryable_get());
00121     public final static DataStatusType InconsistentMetadataError = new DataStatusType("InconsistentMetadataError", arcJNI.DataStatus_InconsistentMetadataError_get());
00122     public final static DataStatusType UnknownError = new DataStatusType("UnknownError", arcJNI.DataStatus_UnknownError_get());
00123 
00124     public final int swigValue() {
00125       return swigValue;
00126     }
00127 
00128     public String toString() {
00129       return swigName;
00130     }
00131 
00132     public static DataStatusType swigToEnum(int swigValue) {
00133       if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
00134         return swigValues[swigValue];
00135       for (int i = 0; i < swigValues.length; i++)
00136         if (swigValues[i].swigValue == swigValue)
00137           return swigValues[i];
00138       throw new IllegalArgumentException("No enum " + DataStatusType.class + " with value " + swigValue);
00139     }
00140 
00141     private DataStatusType(String swigName) {
00142       this.swigName = swigName;
00143       this.swigValue = swigNext++;
00144     }
00145 
00146     private DataStatusType(String swigName, int swigValue) {
00147       this.swigName = swigName;
00148       this.swigValue = swigValue;
00149       swigNext = swigValue+1;
00150     }
00151 
00152     private DataStatusType(String swigName, DataStatusType swigEnum) {
00153       this.swigName = swigName;
00154       this.swigValue = swigEnum.swigValue;
00155       swigNext = this.swigValue+1;
00156     }
00157 
00158     private static DataStatusType[] swigValues = { Success, ReadAcquireError, ReadAcquireErrorRetryable, WriteAcquireError, WriteAcquireErrorRetryable, ReadResolveError, ReadResolveErrorRetryable, WriteResolveError, WriteResolveErrorRetryable, ReadStartError, ReadStartErrorRetryable, WriteStartError, WriteStartErrorRetryable, ReadError, ReadErrorRetryable, WriteError, WriteErrorRetryable, TransferError, TransferErrorRetryable, ReadStopError, ReadStopErrorRetryable, WriteStopError, WriteStopErrorRetryable, PreRegisterError, PreRegisterErrorRetryable, PostRegisterError, PostRegisterErrorRetryable, UnregisterError, UnregisterErrorRetryable, CacheError, CacheErrorRetryable, CredentialsExpiredError, DeleteError, DeleteErrorRetryable, NoLocationError, LocationAlreadyExistsError, NotSupportedForDirectDataPointsError, UnimplementedError, IsReadingError, IsWritingError, CheckError, CheckErrorRetryable, ListError, ListErrorRetryable, NotInitializedError, SystemError, StageError, StageErrorRetryable, InconsistentMetadataError, UnknownError };
00159     private static int swigNext = 0;
00160     private final int swigValue;
00161     private final String swigName;
00162   }
00163 
00164 }