Package com.jalios.jcms
Class AppServerInfo
- java.lang.Object
-
- com.jalios.jcms.AppServerInfo
-
public class AppServerInfo extends java.lang.Object
This class manages information about the underlying application server.- Since:
- jcms-4.0
- Author:
- Olivier Dedieu
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AppServerInfo
getInstance(javax.servlet.ServletContext context)
Return an instance of AppServerInfojava.lang.String
getName()
java.lang.String
getPattern()
java.lang.String
getRestartFile()
java.lang.String
getServerInfo()
boolean
isRestartSupported()
Check if restart is fully supported under this Application Servervoid
setRestartSupported(boolean restartSupported)
Change current status regarding restart possibility under this Application Servervoid
setServerInfo(java.lang.String string)
Set the serverInfo Stringjava.lang.String
toString()
-
-
-
Method Detail
-
getInstance
public static AppServerInfo getInstance(javax.servlet.ServletContext context)
Return an instance of AppServerInfo- Parameters:
context
- the ServletContext- Returns:
- an instance of AppServerInfo
- Since:
- jcms-4.0
-
getName
public java.lang.String getName()
- Returns:
- the name
- Since:
- jcms-4.0
-
getPattern
public java.lang.String getPattern()
- Returns:
- the string pattern
- Since:
- jcms-4.0
-
getRestartFile
public java.lang.String getRestartFile()
- Returns:
- the restart file
- Since:
- jcms-4.0
-
getServerInfo
public java.lang.String getServerInfo()
- Returns:
- the serverInfo String
- Since:
- jcms-4.0
-
setServerInfo
public void setServerInfo(java.lang.String string)
Set the serverInfo String- Parameters:
string
- the serverInfo String- Since:
- jcms-4.0
-
isRestartSupported
public boolean isRestartSupported()
Check if restart is fully supported under this Application Server- Returns:
- true if restart can be performed from JCMS false otherwise.
-
setRestartSupported
public void setRestartSupported(boolean restartSupported)
Change current status regarding restart possibility under this Application Server- Parameters:
restartSupported
- set to true to allow restart to be performed false to disable it
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-