Package com.avoka.fc.core.util
Class SystemUtil
- java.lang.Object
-
- com.avoka.fc.core.util.SystemUtil
-
public class SystemUtil extends Object
Provides a set of utilities around the environment SmartForm Manager is installed on.
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEPLOYMENTS_DIRThe deployments directorystatic StringJBOSS_HOME_PROPERTYThe Java system property pointing to the JBoss server homestatic StringLICENSING_DIRThe licensing directorystatic StringREPORTS_DIRThe report directorystatic StringSYSTEM_HEALTH_DIRThe system health directory
-
Constructor Summary
Constructors Constructor Description SystemUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetBaseDir()Return the base TM manager directory.static StringgetDeploymentsDirPath()Return the path where WAR files are locatedstatic DocumentgetJBossConfigDoc()Return the JBoss application server configuration standalone.xml document.static StringgetJBossHomeDir()Return the JBoss application server home directory.static StringgetLicensingDir()Return the licensing directory.static StringgetPhantomJsDir()Return the Phantom JS bin directory for the PhantomJSRenderReceiptService.static StringgetPhantomJsV2Dir()Return the Phantom JS bin directory for the PhantomJSRenderReceiptServiceV2.static StringgetPuppeteerDir()Return the Phantom JS bin directory for the PhantomJSRenderReceiptServiceV2.static StringgetReportsDirPath()Return the path where reports are being published tostatic StringgetSystemHealthDir()Return the system health directory.static booleanisWindowsServer()Determine whether SmartForm Manager is running on a Windows server, using Java system properties.
-
-
-
Field Detail
-
DEPLOYMENTS_DIR
public static final String DEPLOYMENTS_DIR
The deployments directory- See Also:
- Constant Field Values
-
JBOSS_HOME_PROPERTY
public static final String JBOSS_HOME_PROPERTY
The Java system property pointing to the JBoss server home- See Also:
- Constant Field Values
-
LICENSING_DIR
public static final String LICENSING_DIR
The licensing directory- See Also:
- Constant Field Values
-
SYSTEM_HEALTH_DIR
public static final String SYSTEM_HEALTH_DIR
The system health directory- See Also:
- Constant Field Values
-
REPORTS_DIR
public static final String REPORTS_DIR
The report directory- See Also:
- Constant Field Values
-
-
Method Detail
-
isWindowsServer
public static boolean isWindowsServer()
Determine whether SmartForm Manager is running on a Windows server, using Java system properties.- Returns:
- whether SmartForm Manager is running on Windows
-
getReportsDirPath
public static String getReportsDirPath()
Return the path where reports are being published to- Returns:
- the reports directory path
-
getDeploymentsDirPath
public static String getDeploymentsDirPath()
Return the path where WAR files are located- Returns:
- the path where WAR files are located
-
getJBossHomeDir
public static String getJBossHomeDir()
Return the JBoss application server home directory.- Returns:
- the JBoss application server home directory.
-
getJBossConfigDoc
public static final Document getJBossConfigDoc() throws IOException
Return the JBoss application server configuration standalone.xml document.- Returns:
- the JBoss application server configuration standalone.xml document, or null if JBoss not running
- Throws:
IOException- if an IO error occurs- Since:
- 5.0.1
-
getBaseDir
public static String getBaseDir()
Return the base TM manager directory.- Returns:
- the base TM manager directory.
- Since:
- 4.0.0
-
getPhantomJsDir
public static String getPhantomJsDir()
Return the Phantom JS bin directory for the PhantomJSRenderReceiptService.- Returns:
- the Phantom JS bin directory for the PhantomJSRenderReceiptService
- Since:
- 4.0.0
-
getPhantomJsV2Dir
public static String getPhantomJsV2Dir()
Return the Phantom JS bin directory for the PhantomJSRenderReceiptServiceV2.- Returns:
- the Phantom JS bin directory for the PhantomJSRenderReceiptServiceV2
- Since:
- 17.11.0
-
getPuppeteerDir
public static String getPuppeteerDir()
Return the Phantom JS bin directory for the PhantomJSRenderReceiptServiceV2.- Returns:
- the Phantom JS bin directory for the PhantomJSRenderReceiptServiceV2
- Since:
- 19.5.0
-
getLicensingDir
public static String getLicensingDir()
Return the licensing directory. Files are stored to this directory temporarily for licensing purposes.- Returns:
- the licensing directory
- Since:
- 4.3.4
-
getSystemHealthDir
public static String getSystemHealthDir()
Return the system health directory. Files are stored to this directory temporarily for licensing purposes.- Returns:
- the system health directory
- Since:
- 4.3.4
-
-