@Test public void testSystemTempDir( ) throws IOException { File tempDir = PropertyLoader.getSystemTemporaryDirectory(); System.out.println(tempDir); File secondCall = PropertyLoader.getSystemTemporaryDirectory(); assertTrue(tempDir == secondCall); }
public static File getSystemTemporaryDirectory( ) throws IOException { if (systemTemporaryDirectory != null) { return systemTemporaryDirectory; } File query = File.createTempFile("PropertyLoaderQuery",null); systemTemporaryDirectory = query.getParentFile(); query.delete(); return systemTemporaryDirectory; }
PropertyLoader { public static File getSystemTemporaryDirectory( ) throws IOException { if (systemTemporaryDirectory != null) { return systemTemporaryDirectory; } File query = File.createTempFile("PropertyLoaderQuery",null); systemTemporaryDirectory = query.getParentFile(); query.delete(); return systemTemporaryDirectory; } }
PropertyLoader { public static File getSystemTemporaryDirectory( ) throws IOException { if (systemTemporaryDirectory != null) { return systemTemporaryDirectory; } File query = File.createTempFile("PropertyLoaderQuery",null); systemTemporaryDirectory = query.getParentFile(); query.delete(); return systemTemporaryDirectory; } PropertyLoader(); }
PropertyLoader { public static File getSystemTemporaryDirectory( ) throws IOException { if (systemTemporaryDirectory != null) { return systemTemporaryDirectory; } File query = File.createTempFile("PropertyLoaderQuery",null); systemTemporaryDirectory = query.getParentFile(); query.delete(); return systemTemporaryDirectory; } PropertyLoader(); static void sendErrorsToMongo( ); static File getSystemTemporaryDirectory( ); final static boolean getBooleanProperty(String propertyName, boolean defaultValue); final static int getIntProperty(String propertyName, int defaultValue); final static long getLongProperty(String propertyName, long defaultValue); final static String getProperty(String propertyName, String defaultValue); final static File getRequiredDirectory(String propertyName); final static File getOptionalDirectory(String propertyName); final static synchronized String getRequiredProperty(String propertyName); final static void loadProperties(String[] required); @Deprecated final static void loadProperties(boolean throwException, boolean validate); final static void loadProperties(); final static void show(); static String getSecretValue(String secretValueProperty, String secretFileProperty); }
PropertyLoader { public static File getSystemTemporaryDirectory( ) throws IOException { if (systemTemporaryDirectory != null) { return systemTemporaryDirectory; } File query = File.createTempFile("PropertyLoaderQuery",null); systemTemporaryDirectory = query.getParentFile(); query.delete(); return systemTemporaryDirectory; } PropertyLoader(); static void sendErrorsToMongo( ); static File getSystemTemporaryDirectory( ); final static boolean getBooleanProperty(String propertyName, boolean defaultValue); final static int getIntProperty(String propertyName, int defaultValue); final static long getLongProperty(String propertyName, long defaultValue); final static String getProperty(String propertyName, String defaultValue); final static File getRequiredDirectory(String propertyName); final static File getOptionalDirectory(String propertyName); final static synchronized String getRequiredProperty(String propertyName); final static void loadProperties(String[] required); @Deprecated final static void loadProperties(boolean throwException, boolean validate); final static void loadProperties(); final static void show(); static String getSecretValue(String secretValueProperty, String secretFileProperty); static final String ADMINISTRATOR_ACCOUNT; static final String ADMINISTRATOR_ID; static final String propertyFileProperty; static final String vcellServerIDProperty; static final String simPerUserMemoryLimitFile; static final String primarySimDataDirInternalProperty; static final String secondarySimDataDirInternalProperty; static final String primarySimDataDirExternalProperty; static final String secondarySimDataDirExternalProperty; static final String simDataDirArchiveHost; static final String PARALLEL_DATA_DIR_EXTERNAL; static final String jobMemoryOverheadMB; static final String htcBatchSystemQueue; static final String htcLogDirExternal; static final String htcLogDirInternal; static final String htcUser; static final String htcPbsHome; static final String htcSgeHome; static final String htcNodeList; static final String slurm_cmd_sbatch; static final String slurm_cmd_scancel; static final String slurm_cmd_sacct; static final String slurm_cmd_squeue; static final String slurm_cmd_scontrol; static final String slurm_cmd_sinfo; static final String slurm_partition; static final String slurm_reservation; static final String slurm_partition_pu; static final String slurm_reservation_pu; static final String slurm_tmpdir; static final String slurm_local_singularity_dir; static final String slurm_central_singularity_dir; static final String sgeModulePath; static final String pbsModulePath; static final String MPI_HOME_INTERNAL; static final String MPI_HOME_EXTERNAL; static final String nativeSolverDir_External; static final String comsolRootDir; static final String comsolJarDir; static final String vcellServerHost; static final String pythonExe; static final String vcellapiKeystoreFile; static final String vcellapiKeystorePswd; static final String vcellapiKeystorePswdFile; static final String bioformatsJarFileName; static final String bioformatsJarDownloadURL; static final String COPASI_WEB_URL; static final String SMOLDYN_WEB_URL; static final String BIONETGEN_WEB_URL; static final String NFSIM_WEB_URL; static final String ACKNOWLEGE_PUB__WEB_URL; static final String VCELL_URL; static final String VC_BNG_INDEX_URL; static final String VC_BNG_FAQ_URL; static final String VC_BNG_TUTORIAL_URL; static final String VC_BNG_SAMPLES_URL; static final String VC_SUPPORT_URL; static final String VC_GOOGLE_DISCUSS_URL; static final String VC_TUT_PERMISSION_URL; static final String BMDB_URL; static final String CONTINUUM_URL; static final String DOI_URL; static final String BMDB_DOWNLOAD_URL; static final String PATHWAY_QUERY_URL; static final String PATHWAY_WEB_DO_URL; static final String SABIO_SRCH_KINETIC_URL; static final String SABIO_DIRECT_IFRAME_URL; static final String COPASI_TIKI_URL; static final String BIONUMBERS_SRCH1_URL; static final String BIONUMBERS_SRCH2_URL; static final String SIGNALLING_QUERY_URL; static final String BIOPAX_RSABIO12_URL; static final String BIOPAX_RSABIO11452_URL; static final String BIOPAX_RSABIO65_URL; static final String BIOPAX_RKEGGR01026_URL; static final String COMSOL_URL; static final String databaseThreadsProperty; static final String exportdataThreadsProperty; static final String simdataThreadsProperty; static final String htcworkerThreadsProperty; static final String databaseCacheSizeProperty; static final String simdataCacheSizeProperty; static final String exportBaseURLProperty; static final String exportBaseDirInternalProperty; static final String exportMaxInMemoryLimit; static final String dbDriverName; static final String dbConnectURL; static final String dbUserid; static final String dbPasswordValue; static final String dbPasswordFile; static final String jmsIntHostInternal; static final String jmsIntPortInternal; static final String jmsSimHostInternal; static final String jmsSimPortInternal; static final String jmsSimRestPortInternal; static final String jmsSimHostExternal; static final String jmsSimPortExternal; static final String jmsSimRestPortExternal; static final String jmsUser; static final String jmsPasswordValue; static final String jmsPasswordFile; static final String jmsRestPasswordFile; static final String jmsSimReqQueue; static final String jmsDataRequestQueue; static final String jmsDbRequestQueue; static final String jmsSimJobQueue; static final String jmsWorkerEventQueue; static final String jmsServiceControlTopic; static final String jmsDaemonControlTopic; static final String jmsClientStatusTopic; static final String jmsBlobMessageMinSize; static final String jmsBlobMessageTempDir; static final String jmsBlobMessageUseMongo; static final String vcellClientTimeoutMS; static final String maxOdeJobsPerUser; static final String maxPdeJobsPerUser; static final String maxJobsPerScan; static final String vcellSoftwareVersion; static final String vcellThirdPartyLicense; static final String vcellPublicationHost; static final String vcellSMTPHostName; static final String vcellSMTPPort; static final String vcellSMTPEmailAddress; static final String vcellbatch_docker_name; static final String vcellbatch_singularity_image; static final String javaSimulationExecutable; static final String simulationPreprocessor; static final String simulationPostprocessor; final static String mongodbHostInternal; final static String mongodbPortInternal; final static String mongodbHostExternal; final static String mongodbPortExternal; final static String mongodbDatabase; final static String mongodbLoggingCollection; final static String mongodbThreadSleepMS; static final String amplistorVCellServiceURL; static final String amplistorVCellServiceUser; static final String amplistorVCellServicePassword; static final String installationRoot; static final String vcellDownloadDir; static final String autoflushStandardOutAndErr; static final String suppressQStatStandardOutLogging; static final String nagiosMonitorPort; static final String imageJVcellPluginURL; static final String NATIVE_LIB_DIR; static final String USE_CURRENT_WORKING_DIRECTORY; }