Back to index

nordugrid-arc-nox  1.1.0~rc6
UserConfig.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 UserConfig {
00012   private long swigCPtr;
00013   protected boolean swigCMemOwn;
00014 
00015   protected UserConfig(long cPtr, boolean cMemoryOwn) {
00016     swigCMemOwn = cMemoryOwn;
00017     swigCPtr = cPtr;
00018   }
00019 
00020   protected static long getCPtr(UserConfig 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_UserConfig(swigCPtr);
00032     }
00033     swigCPtr = 0;
00034   }
00035 
00036   public UserConfig(initializeCredentialsType initializeCredentials) {
00037     this(arcJNI.new_UserConfig__SWIG_0(initializeCredentialsType.getCPtr(initializeCredentials), initializeCredentials), true);
00038   }
00039 
00040   public UserConfig() {
00041     this(arcJNI.new_UserConfig__SWIG_1(), true);
00042   }
00043 
00044   public UserConfig(String conffile, initializeCredentialsType initializeCredentials, boolean loadSysConfig) {
00045     this(arcJNI.new_UserConfig__SWIG_2(conffile, initializeCredentialsType.getCPtr(initializeCredentials), initializeCredentials, loadSysConfig), true);
00046   }
00047 
00048   public UserConfig(String conffile, initializeCredentialsType initializeCredentials) {
00049     this(arcJNI.new_UserConfig__SWIG_3(conffile, initializeCredentialsType.getCPtr(initializeCredentials), initializeCredentials), true);
00050   }
00051 
00052   public UserConfig(String conffile) {
00053     this(arcJNI.new_UserConfig__SWIG_4(conffile), true);
00054   }
00055 
00056   public UserConfig(String conffile, String jfile, initializeCredentialsType initializeCredentials, boolean loadSysConfig) {
00057     this(arcJNI.new_UserConfig__SWIG_5(conffile, jfile, initializeCredentialsType.getCPtr(initializeCredentials), initializeCredentials, loadSysConfig), true);
00058   }
00059 
00060   public UserConfig(String conffile, String jfile, initializeCredentialsType initializeCredentials) {
00061     this(arcJNI.new_UserConfig__SWIG_6(conffile, jfile, initializeCredentialsType.getCPtr(initializeCredentials), initializeCredentials), true);
00062   }
00063 
00064   public UserConfig(String conffile, String jfile) {
00065     this(arcJNI.new_UserConfig__SWIG_7(conffile, jfile), true);
00066   }
00067 
00068   public UserConfig(int ptraddr) {
00069     this(arcJNI.new_UserConfig__SWIG_8(ptraddr), true);
00070   }
00071 
00072   public void InitializeCredentials() {
00073     arcJNI.UserConfig_InitializeCredentials(swigCPtr, this);
00074   }
00075 
00076   public boolean CredentialsFound() {
00077     return arcJNI.UserConfig_CredentialsFound(swigCPtr, this);
00078   }
00079 
00080   public boolean LoadConfigurationFile(String conffile, boolean ignoreJobListFile) {
00081     return arcJNI.UserConfig_LoadConfigurationFile__SWIG_0(swigCPtr, this, conffile, ignoreJobListFile);
00082   }
00083 
00084   public boolean LoadConfigurationFile(String conffile) {
00085     return arcJNI.UserConfig_LoadConfigurationFile__SWIG_1(swigCPtr, this, conffile);
00086   }
00087 
00088   public boolean SaveToFile(String filename) {
00089     return arcJNI.UserConfig_SaveToFile(swigCPtr, this, filename);
00090   }
00091 
00092   public void ApplyToConfig(BaseConfig ccfg) {
00093     arcJNI.UserConfig_ApplyToConfig(swigCPtr, this, BaseConfig.getCPtr(ccfg), ccfg);
00094   }
00095 
00096   public boolean toBool() {
00097     return arcJNI.UserConfig_toBool(swigCPtr, this);
00098   }
00099 
00100   public boolean JobListFile(String path) {
00101     return arcJNI.UserConfig_JobListFile__SWIG_0(swigCPtr, this, path);
00102   }
00103 
00104   public String JobListFile() {
00105     return arcJNI.UserConfig_JobListFile__SWIG_1(swigCPtr, this);
00106   }
00107 
00108   public boolean AddServices(StringList services, ServiceType st) {
00109     return arcJNI.UserConfig_AddServices__SWIG_0(swigCPtr, this, StringList.getCPtr(services), services, st.swigValue());
00110   }
00111 
00112   public boolean AddServices(StringList selected, StringList rejected, ServiceType st) {
00113     return arcJNI.UserConfig_AddServices__SWIG_1(swigCPtr, this, StringList.getCPtr(selected), selected, StringList.getCPtr(rejected), rejected, st.swigValue());
00114   }
00115 
00116   public URLListMap GetSelectedServices(ServiceType st) {
00117     return new URLListMap(arcJNI.UserConfig_GetSelectedServices(swigCPtr, this, st.swigValue()), false);
00118   }
00119 
00120   public URLListMap GetRejectedServices(ServiceType st) {
00121     return new URLListMap(arcJNI.UserConfig_GetRejectedServices(swigCPtr, this, st.swigValue()), false);
00122   }
00123 
00124   public void ClearSelectedServices() {
00125     arcJNI.UserConfig_ClearSelectedServices__SWIG_0(swigCPtr, this);
00126   }
00127 
00128   public void ClearSelectedServices(ServiceType st) {
00129     arcJNI.UserConfig_ClearSelectedServices__SWIG_1(swigCPtr, this, st.swigValue());
00130   }
00131 
00132   public void ClearRejectedServices() {
00133     arcJNI.UserConfig_ClearRejectedServices__SWIG_0(swigCPtr, this);
00134   }
00135 
00136   public void ClearRejectedServices(ServiceType st) {
00137     arcJNI.UserConfig_ClearRejectedServices__SWIG_1(swigCPtr, this, st.swigValue());
00138   }
00139 
00140   public boolean Timeout(int newTimeout) {
00141     return arcJNI.UserConfig_Timeout__SWIG_0(swigCPtr, this, newTimeout);
00142   }
00143 
00144   public int Timeout() {
00145     return arcJNI.UserConfig_Timeout__SWIG_1(swigCPtr, this);
00146   }
00147 
00148   public boolean Verbosity(String newVerbosity) {
00149     return arcJNI.UserConfig_Verbosity__SWIG_0(swigCPtr, this, newVerbosity);
00150   }
00151 
00152   public String Verbosity() {
00153     return arcJNI.UserConfig_Verbosity__SWIG_1(swigCPtr, this);
00154   }
00155 
00156   public boolean Broker(String name) {
00157     return arcJNI.UserConfig_Broker__SWIG_0(swigCPtr, this, name);
00158   }
00159 
00160   public boolean Broker(String name, String argument) {
00161     return arcJNI.UserConfig_Broker__SWIG_1(swigCPtr, this, name, argument);
00162   }
00163 
00164   public SWIGTYPE_p_std__pairT_std__string_std__string_t Broker() {
00165     return new SWIGTYPE_p_std__pairT_std__string_std__string_t(arcJNI.UserConfig_Broker__SWIG_2(swigCPtr, this), false);
00166   }
00167 
00168   public boolean Bartender(URLVector urls) {
00169     return arcJNI.UserConfig_Bartender__SWIG_0(swigCPtr, this, URLVector.getCPtr(urls), urls);
00170   }
00171 
00172   public void AddBartender(URL url) {
00173     arcJNI.UserConfig_AddBartender(swigCPtr, this, URL.getCPtr(url), url);
00174   }
00175 
00176   public URLVector Bartender() {
00177     return new URLVector(arcJNI.UserConfig_Bartender__SWIG_1(swigCPtr, this), false);
00178   }
00179 
00180   public boolean VOMSServerPath(String path) {
00181     return arcJNI.UserConfig_VOMSServerPath__SWIG_0(swigCPtr, this, path);
00182   }
00183 
00184   public String VOMSServerPath() {
00185     return arcJNI.UserConfig_VOMSServerPath__SWIG_1(swigCPtr, this);
00186   }
00187 
00188   public boolean UserName(String name) {
00189     return arcJNI.UserConfig_UserName__SWIG_0(swigCPtr, this, name);
00190   }
00191 
00192   public String UserName() {
00193     return arcJNI.UserConfig_UserName__SWIG_1(swigCPtr, this);
00194   }
00195 
00196   public boolean Password(String newPassword) {
00197     return arcJNI.UserConfig_Password__SWIG_0(swigCPtr, this, newPassword);
00198   }
00199 
00200   public String Password() {
00201     return arcJNI.UserConfig_Password__SWIG_1(swigCPtr, this);
00202   }
00203 
00204   public boolean ProxyPath(String newProxyPath) {
00205     return arcJNI.UserConfig_ProxyPath__SWIG_0(swigCPtr, this, newProxyPath);
00206   }
00207 
00208   public String ProxyPath() {
00209     return arcJNI.UserConfig_ProxyPath__SWIG_1(swigCPtr, this);
00210   }
00211 
00212   public boolean CertificatePath(String newCertificatePath) {
00213     return arcJNI.UserConfig_CertificatePath__SWIG_0(swigCPtr, this, newCertificatePath);
00214   }
00215 
00216   public String CertificatePath() {
00217     return arcJNI.UserConfig_CertificatePath__SWIG_1(swigCPtr, this);
00218   }
00219 
00220   public boolean KeyPath(String newKeyPath) {
00221     return arcJNI.UserConfig_KeyPath__SWIG_0(swigCPtr, this, newKeyPath);
00222   }
00223 
00224   public String KeyPath() {
00225     return arcJNI.UserConfig_KeyPath__SWIG_1(swigCPtr, this);
00226   }
00227 
00228   public boolean KeyPassword(String newKeyPassword) {
00229     return arcJNI.UserConfig_KeyPassword__SWIG_0(swigCPtr, this, newKeyPassword);
00230   }
00231 
00232   public String KeyPassword() {
00233     return arcJNI.UserConfig_KeyPassword__SWIG_1(swigCPtr, this);
00234   }
00235 
00236   public boolean KeySize(int newKeySize) {
00237     return arcJNI.UserConfig_KeySize__SWIG_0(swigCPtr, this, newKeySize);
00238   }
00239 
00240   public int KeySize() {
00241     return arcJNI.UserConfig_KeySize__SWIG_1(swigCPtr, this);
00242   }
00243 
00244   public boolean CACertificatePath(String newCACertificatePath) {
00245     return arcJNI.UserConfig_CACertificatePath__SWIG_0(swigCPtr, this, newCACertificatePath);
00246   }
00247 
00248   public String CACertificatePath() {
00249     return arcJNI.UserConfig_CACertificatePath__SWIG_1(swigCPtr, this);
00250   }
00251 
00252   public boolean CACertificatesDirectory(String newCACertificatesDirectory) {
00253     return arcJNI.UserConfig_CACertificatesDirectory__SWIG_0(swigCPtr, this, newCACertificatesDirectory);
00254   }
00255 
00256   public String CACertificatesDirectory() {
00257     return arcJNI.UserConfig_CACertificatesDirectory__SWIG_1(swigCPtr, this);
00258   }
00259 
00260   public boolean CertificateLifeTime(Period newCertificateLifeTime) {
00261     return arcJNI.UserConfig_CertificateLifeTime__SWIG_0(swigCPtr, this, Period.getCPtr(newCertificateLifeTime), newCertificateLifeTime);
00262   }
00263 
00264   public Period CertificateLifeTime() {
00265     return new Period(arcJNI.UserConfig_CertificateLifeTime__SWIG_1(swigCPtr, this), false);
00266   }
00267 
00268   public boolean SLCS(URL newSLCS) {
00269     return arcJNI.UserConfig_SLCS__SWIG_0(swigCPtr, this, URL.getCPtr(newSLCS), newSLCS);
00270   }
00271 
00272   public URL SLCS() {
00273     return new URL(arcJNI.UserConfig_SLCS__SWIG_1(swigCPtr, this), false);
00274   }
00275 
00276   public boolean StoreDirectory(String newStoreDirectory) {
00277     return arcJNI.UserConfig_StoreDirectory__SWIG_0(swigCPtr, this, newStoreDirectory);
00278   }
00279 
00280   public String StoreDirectory() {
00281     return arcJNI.UserConfig_StoreDirectory__SWIG_1(swigCPtr, this);
00282   }
00283 
00284   public boolean IdPName(String name) {
00285     return arcJNI.UserConfig_IdPName__SWIG_0(swigCPtr, this, name);
00286   }
00287 
00288   public String IdPName() {
00289     return arcJNI.UserConfig_IdPName__SWIG_1(swigCPtr, this);
00290   }
00291 
00292   public boolean OverlayFile(String path) {
00293     return arcJNI.UserConfig_OverlayFile__SWIG_0(swigCPtr, this, path);
00294   }
00295 
00296   public String OverlayFile() {
00297     return arcJNI.UserConfig_OverlayFile__SWIG_1(swigCPtr, this);
00298   }
00299 
00300   public boolean UtilsDirPath(String dir) {
00301     return arcJNI.UserConfig_UtilsDirPath__SWIG_0(swigCPtr, this, dir);
00302   }
00303 
00304   public String UtilsDirPath() {
00305     return arcJNI.UserConfig_UtilsDirPath__SWIG_1(swigCPtr, this);
00306   }
00307 
00308   public static String getARCUSERDIRECTORY() {
00309     return arcJNI.UserConfig_ARCUSERDIRECTORY_get();
00310   }
00311 
00312   public static String getSYSCONFIG() {
00313     return arcJNI.UserConfig_SYSCONFIG_get();
00314   }
00315 
00316   public static String getDEFAULTCONFIG() {
00317     return arcJNI.UserConfig_DEFAULTCONFIG_get();
00318   }
00319 
00320   public static String getEXAMPLECONFIG() {
00321     return arcJNI.UserConfig_EXAMPLECONFIG_get();
00322   }
00323 
00324   public static String getDEFAULT_BROKER() {
00325     return arcJNI.UserConfig_DEFAULT_BROKER_get();
00326   }
00327 
00328   public final static int DEFAULT_TIMEOUT = arcJNI.UserConfig_DEFAULT_TIMEOUT_get();
00329 }