Internal singleton used for initializing correctly the APR native library and the associated root memory pool.
It'll finalize nicely the native resources (libraries and memory pools).
Each memory pool used in the APR transport module needs to be children of the root poolAprLibrary#getRootPool().
| Modifier and Type | Field and Description |
|---|---|
| private static AprLibrary | |
| private final long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| pack-priv static String | |
| protected void | finalize()
Overrides java. Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. |
| public static synchronized AprLibrary | Returns: the current APR library singletonget the shared instance of APR library, if none, initialize one |
| pack-priv long | Returns: number identifying the root poolget the package wide root pool, the mother of all the pool created in APR transport module. |
| private static synchronized void | initialize()
initialize the APR Library by loading the associated native libraries and creating the associated singleton |
| public static synchronized boolean | Returns: true if the Library is initialized, false otherwiseis the APR library was initialized. |
| pack-priv static void |
| library | back to summary |
|---|---|
| private static AprLibrary library | |
| pool | back to summary |
|---|---|
| private final long pool | |
| AprLibrary | back to summary |
|---|---|
| private AprLibrary() APR library singleton constructor. Called only when accessing the singleton the first time. It is initializing an APR memory pool for the whole package (a.k.a mother or root pool).
| |
| chmodOwner | back to summary |
|---|---|
| private static void chmodOwner(String authSocket, boolean execute) throws IOException | |
| createLocalSocketAddress | back to summary |
|---|---|
| pack-priv static String createLocalSocketAddress() throws IOException | |
| finalize | back to summary |
|---|---|
| protected void finalize() throws Throwable Overrides java. Doc from java. Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
A subclass overrides the
When running in a Java virtual machine in which finalization has been
disabled or removed, the garbage collector will never call
The general contract of
The
The Java programming language does not guarantee which thread will
invoke the
After the
The
Any exception thrown by the
| |
| getInstance | back to summary |
|---|---|
| public static synchronized AprLibrary getInstance() get the shared instance of APR library, if none, initialize one
| |
| getRootPool | back to summary |
|---|---|
| pack-priv long getRootPool() get the package wide root pool, the mother of all the pool created in APR transport module.
| |
| initialize | back to summary |
|---|---|
| private static synchronized void initialize() initialize the APR Library by loading the associated native libraries and creating the associated singleton | |
| isInitialized | back to summary |
|---|---|
| public static synchronized boolean isInitialized() is the APR library was initialized.
| |
| secureLocalSocket | back to summary |
|---|---|
| pack-priv static void secureLocalSocket(String authSocket, long handle) throws IOException | |