Class AprStatus
java.lang.Object
org.apache.tomcat.jni.AprStatus
Holds APR status without the need to load other classes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intstatic ReentrantReadWriteLockCode that changes the status of the APR library MUST hold the write lock while making any changes.static booleanstatic booleanstatic booleanstatic booleanstatic voidsetAprAvailable(boolean aprAvailable) static voidsetAprInitialized(boolean aprInitialized) static voidsetInstanceCreated(boolean instanceCreated) static voidsetOpenSSLVersion(int openSSLVersion) static voidsetUseOpenSSL(boolean useOpenSSL)
-
Constructor Details
-
AprStatus
public AprStatus()
-
-
Method Details
-
isAprInitialized
public static boolean isAprInitialized() -
isAprAvailable
public static boolean isAprAvailable() -
getUseOpenSSL
public static boolean getUseOpenSSL() -
isInstanceCreated
public static boolean isInstanceCreated() -
setAprInitialized
public static void setAprInitialized(boolean aprInitialized) -
setAprAvailable
public static void setAprAvailable(boolean aprAvailable) -
setUseOpenSSL
public static void setUseOpenSSL(boolean useOpenSSL) -
setInstanceCreated
public static void setInstanceCreated(boolean instanceCreated) -
getOpenSSLVersion
public static int getOpenSSLVersion()- Returns:
- the openSSLVersion
-
setOpenSSLVersion
public static void setOpenSSLVersion(int openSSLVersion) - Parameters:
openSSLVersion- the openSSLVersion to set
-
getStatusLock
Code that changes the status of the APR library MUST hold the write lock while making any changes.Code that needs the status to be consistent for an operation must hold the read lock for the duration of that operation.
- Returns:
- The read/write lock for APR library status
-