Package org.codelibs.fess.helper
Class SystemHelper
- java.lang.Object
-
- org.codelibs.fess.helper.SystemHelper
-
public class SystemHelper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,String>designJspFileNameMapprotected longeolTimeprotected StringfilterPathEncodingprotected AtomicBooleanforceStopprotected com.google.common.cache.LoadingCache<String,List<Map<String,String>>>langItemsCacheprotected intmajorVersionprotected intminorVersionprotected AtomicIntegerpreviousClusterStateprotected StringproductVersionprotected List<Runnable>shutdownHookListprotected String[]supportedLanguagesprotected Stringversion
-
Constructor Summary
Constructors Constructor Description SystemHelper()
-
Method Summary
-
-
-
Field Detail
-
forceStop
protected final AtomicBoolean forceStop
-
langItemsCache
protected com.google.common.cache.LoadingCache<String,List<Map<String,String>>> langItemsCache
-
filterPathEncoding
protected String filterPathEncoding
-
supportedLanguages
protected String[] supportedLanguages
-
previousClusterState
protected AtomicInteger previousClusterState
-
version
protected String version
-
majorVersion
protected int majorVersion
-
minorVersion
protected int minorVersion
-
productVersion
protected String productVersion
-
eolTime
protected long eolTime
-
-
Method Detail
-
init
@PostConstruct public void init()
-
parseProjectProperties
protected void parseProjectProperties()
-
destroy
@PreDestroy public void destroy()
-
getUsername
public String getUsername()
-
getCurrentTime
public Date getCurrentTime()
-
getCurrentTimeAsLong
public long getCurrentTimeAsLong()
-
getCurrentTimeAsLocalDateTime
public LocalDateTime getCurrentTimeAsLocalDateTime()
-
getLogFilePath
public String getLogFilePath()
-
refreshDesignJspFiles
public void refreshDesignJspFiles()
-
isForceStop
public boolean isForceStop()
-
setForceStop
public void setForceStop(boolean b)
-
sleep
@Deprecated public void sleep(int sec)
Deprecated.
-
addShutdownHook
public void addShutdownHook(Runnable hook)
-
getHostname
public String getHostname()
-
setupAdminHtmlData
public void setupAdminHtmlData(org.lastaflute.web.TypicalAction action, org.lastaflute.web.ruts.process.ActionRuntime runtime)
-
isEoled
protected boolean isEoled()
-
reloadConfiguration
public void reloadConfiguration()
-
updateSystemProperties
public void updateSystemProperties()
-
updateConfiguration
public String updateConfiguration()
-
isChangedClusterState
public boolean isChangedClusterState(int status)
-
createValidator
public org.lastaflute.web.validation.ActionValidator<FessMessages> createValidator(org.lastaflute.web.servlet.request.RequestManager requestManager, org.lastaflute.core.message.supplier.UserMessagesCreator<FessMessages> messagesCreator, Class<?>[] runtimeGroups)
-
getRedirectResponseToLogin
public org.lastaflute.web.response.HtmlResponse getRedirectResponseToLogin(org.lastaflute.web.response.HtmlResponse response)
-
getRedirectResponseToRoot
public org.lastaflute.web.response.HtmlResponse getRedirectResponseToRoot(org.lastaflute.web.response.HtmlResponse response)
-
setLogLevel
public void setLogLevel(String level)
-
getLogLevel
public String getLogLevel()
-
getVersion
public String getVersion()
-
getMajorVersion
public int getMajorVersion()
-
getMinorVersion
public int getMinorVersion()
-
getProductVersion
public String getProductVersion()
-
-