Package com.sun.enterprise.universal.xml
Class MiniXmlParser
- java.lang.Object
-
- com.sun.enterprise.universal.xml.MiniXmlParser
-
public class MiniXmlParser extends Object
A fairly simple but very specific stax XML Parser. Give it the location of domain.xml and the name of the server instance and it will return JVM options. Currently it is all package private.- Author:
- bnevins
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MiniXmlParser.JvmOption
-
Constructor Summary
Constructors Constructor Description MiniXmlParser(File domainXml)
MiniXmlParser(File domainXml, String serverName)
-
Method Summary
-
-
-
Constructor Detail
-
MiniXmlParser
public MiniXmlParser(File domainXml) throws MiniXmlParserException
- Throws:
MiniXmlParserException
-
MiniXmlParser
public MiniXmlParser(File domainXml, String serverName) throws MiniXmlParserException
- Throws:
MiniXmlParserException
-
-
Method Detail
-
getJavaConfig
public Map<String,String> getJavaConfig() throws MiniXmlParserException
- Throws:
MiniXmlParserException
-
getJvmOptions
public List<MiniXmlParser.JvmOption> getJvmOptions() throws MiniXmlParserException
- Throws:
MiniXmlParserException
-
getProfilerConfig
public Map<String,String> getProfilerConfig() throws MiniXmlParserException
- Throws:
MiniXmlParserException
-
getProfilerJvmOptions
public List<String> getProfilerJvmOptions() throws MiniXmlParserException
- Throws:
MiniXmlParserException
-
getProfilerSystemProperties
public Map<String,String> getProfilerSystemProperties() throws MiniXmlParserException
- Throws:
MiniXmlParserException
-
getSystemProperties
public Map<String,String> getSystemProperties() throws MiniXmlParserException
- Throws:
MiniXmlParserException
-
getDomainName
public String getDomainName()
-
getAdminAddresses
public List<HostAndPort> getAdminAddresses()
-
getProtocolAttributes
public List<Map<String,String>> getProtocolAttributes() throws MiniXmlParserException
- Throws:
MiniXmlParserException
-
getIiopSslAttributes
public List<Map<String,String>> getIiopSslAttributes() throws MiniXmlParserException
- Throws:
MiniXmlParserException
-
setupConfigDir
@Deprecated public void setupConfigDir(File configDir, File installDir)
Deprecated.usesetupConfigDir(java.io.File)
instead
-
setupConfigDir
public void setupConfigDir(File configDir)
-
getSecureAdminEnabled
public boolean getSecureAdminEnabled()
-
getLogFilename
public String getLogFilename()
Gets the log file name for the DAS loggingConfig will return an IOException if there is no logging properties file.- Returns:
- the log filename if available, otherwise return null
-
getInstanceLogFilename
public String getInstanceLogFilename()
Gets the log file name for instances and clusters loggingConfig will return an IOException if there is no logging properties file.- Returns:
- the log filename if available, otherwise return null
-
isMonitoringEnabled
public boolean isMonitoringEnabled()
-
hasNetworkConfig
public boolean hasNetworkConfig()
-
hasDefaultConfig
public boolean hasDefaultConfig()
-
getAdminRealmName
public String getAdminRealmName()
-
-