Package com.jalios.jcms
Class AppServerInfo
- java.lang.Object
-
- com.jalios.jcms.AppServerInfo
-
public class AppServerInfo extends java.lang.ObjectThis 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 AppServerInfogetInstance(javax.servlet.ServletContext context)Return an instance of AppServerInfojava.lang.StringgetName()java.lang.StringgetPattern()java.lang.StringgetRestartFile()java.lang.StringgetServerInfo()booleanisRestartSupported()Check if restart is fully supported under this Application ServervoidsetRestartSupported(boolean restartSupported)Change current status regarding restart possibility under this Application ServervoidsetServerInfo(java.lang.String string)Set the serverInfo Stringjava.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
-