Package org.summerboot.jexpress.boot
Class BackOffice
java.lang.Object
org.summerboot.jexpress.boot.config.BootConfig
org.summerboot.jexpress.boot.BackOffice
- All Implemented Interfaces:
JExpressConfig
- Author:
- Changski Tie Zheng Zhang 张铁铮, 魏泽北, 杜旺财, 杜富贵
-
Nested Class Summary
Nested classes/interfaces inherited from class org.summerboot.jexpress.boot.config.BootConfig
BootConfig.ThreadingMode -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BackOfficeprotected ThreadPoolExecutorprotected BootConfig.ThreadingModeFields inherited from class org.summerboot.jexpress.boot.config.BootConfig
BR, cache, cfgFile, configName, CPU_CORE, DESC_KMF, DESC_PLAINPWD, DESC_TMF, FILENAME_KEYSTORE, FILENAME_SRC_TRUSTSTORE, generateTemplate, logger, props -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLoadBalancingPingEndpoint(String loadBalancingPingEndpoint) static voidprotected voidintorg.apache.logging.log4j.Levellongintlongbooleanbooleanbooleanprotected voidloadCustomizedConfigs(File cfgFile, boolean isReal, ConfigUtil helper, Properties props) static voidvoidshutdown()Methods inherited from class org.summerboot.jexpress.boot.config.BootConfig
buildThreadPoolExecutor, buildThreadPoolExecutor, buildThreadPoolExecutor, createIfNotExist, generateTemplate, getCfgFile, getLength, getProperties, info, instance, lineBreak, load, loadField, name, parse, preLoad, registerSingleton, temp, updateConfigFile, updateFilePath
-
Field Details
-
agent
-
tpe
-
tpeThreadingMode
@Config(key="backoffice.executor.mode", defaultValue="VirtualThread", desc="valid value = VirtualThread (default for Java 21+), CPU, IO and Mixed (default for old Java) \n use CPU core + 1 when application is CPU bound\nuse CPU core x 2 + 1 when application is I/O bound\nneed to find the best value based on your performance test result when nio.server.BizExecutor.mode=Mixed") protected volatile BootConfig.ThreadingMode tpeThreadingMode
-
-
Constructor Details
-
BackOffice
protected BackOffice()
-
-
Method Details
-
main
-
loadCustomizedConfigs
protected void loadCustomizedConfigs(File cfgFile, boolean isReal, ConfigUtil helper, Properties props) throws Exception - Specified by:
loadCustomizedConfigsin classBootConfig- Throws:
Exception
-
shutdown
public void shutdown() -
execute
-
getLoadBalancingPingEndpoints
-
addLoadBalancingPingEndpoint
-
getVersion
-
getVersionShort
-
generateTemplate_keystore
-
getBootErrorCodeMapping
-
getRootPackageNames
-
isTraceWithSystemOut
public boolean isTraceWithSystemOut() -
isErrorCodeAsInt
public boolean isErrorCodeAsInt() -
isJwtAudAsCSV
public boolean isJwtAudAsCSV() -
getCfgChangeMonitorIntervalSec
public int getCfgChangeMonitorIntervalSec() -
getWebResourceCacheTtlSec
public long getWebResourceCacheTtlSec() -
getReflectionPackageLevel
public int getReflectionPackageLevel() -
getProcessTimeoutMilliseconds
public long getProcessTimeoutMilliseconds() -
getProcessTimeoutAlertMessage
-
getPortInUseAlertMessage
-
getDomainFolderPrefix
-
getConfigFolderName
-
getLogFolderName
-
getPluginFolderName
-
getAuthConfigFileName
-
getSmtpConfigFileName
-
getNioConfigFileName
-
getgRPCConfigFileName
-
getPauseLockCodeViaFile
-
getPauseLockCodeViaWeb
-
getLog4J2LogId
-
getLog4j2LogFilePath
-
getLog4j2LogFileName
-
getLog4j2ServerName
-
getLog4j2AppPackageName
-
getCliName_usage
-
getCliName_version
-
getCliName_domain
-
getCliName_cfgdir
-
getCliName_monitorInterval
-
getCliName_i18n
-
getCliName_use
-
getCliName_cfgdemo
-
getCliName_list
-
getCliName_authfile
-
getCliName_auth
-
getCliName_jwt
-
getCliName_encrypt
-
getCliName_decrypt
-
getCliName_psv
-
getMemoDelimiter
-
getJobListenerLogLevel
public org.apache.logging.log4j.Level getJobListenerLogLevel()
-