|
GlueGen v2.6.0-rc-20250712
GlueGen, Native Binding Generator for Java (public API).
|
Public Member Functions | |
| TempFileCache () | |
Create the getTempDir(). More... | |
| void | destroy () |
Delete the getTempDir() recursively and remove it's reference. More... | |
| boolean | isValid (final boolean forExecutables) |
| File | getTempDir () |
| Temporary directory for individual files (eg. More... | |
Static Public Member Functions | |
| static boolean | initSingleton () |
| Documented way to kick off static initialization. More... | |
| static File | getBaseDir () |
Base temp directory used by TempFileCache. More... | |
| static File | getRootDir () |
| Root temp directory for this JVM instance. More... | |
Definition at line 42 of file TempFileCache.java.
| com.jogamp.common.util.cache.TempFileCache.TempFileCache | ( | ) |
Create the getTempDir().
Definition at line 431 of file TempFileCache.java.
| void com.jogamp.common.util.cache.TempFileCache.destroy | ( | ) |
Delete the getTempDir() recursively and remove it's reference.
Definition at line 451 of file TempFileCache.java.
|
static |
Base temp directory used by TempFileCache.
Lifecycle: For one user's concurrently running JVMs and ClassLoader
This is set to:
${java.io.tmpdir}/tmpDirPrefix
Definition at line 493 of file TempFileCache.java.
|
static |
Root temp directory for this JVM instance.
Used to store individual directories.
This directory is a sub-folder to getBaseDir().
Lifecycle: For one user's concurrently running JVMs and ClassLoader
tmpBaseDir/tmpRootPropValue
Use Case: Per ClassLoader files, eg. native libraries.
Old temp directories are cleaned up the next time a JVM is launched that uses TempFileCache.
Definition at line 522 of file TempFileCache.java.
| File com.jogamp.common.util.cache.TempFileCache.getTempDir | ( | ) |
Temporary directory for individual files (eg.
native libraries of one ClassLoader instance).
This directory is a sub-folder to getRootDir().
Lifecycle: Within each JVM .. use case dependent, ie. per ClassLoader and per TempFileCache instance!
The directory name is:
tmpRootDir/jlnMMMMM
where jlnMMMMM is the unique filename created by File.createTempFile() without the ".tmp" extension.
Definition at line 546 of file TempFileCache.java.
|
static |
Documented way to kick off static initialization.
Definition at line 130 of file TempFileCache.java.
| boolean com.jogamp.common.util.cache.TempFileCache.isValid | ( | final boolean | forExecutables | ) |
| forExecutables | if true, method also tests whether the underlying getBaseDir() is suitable to load native libraries or launch executables |
Definition at line 475 of file TempFileCache.java.