private void finalTouches() { if (clusters == null) return; for (ParsedCluster pc : clusters) { Map<String, String> props = pc.getMySysProps(serverName); if (props != null) { sysProps.add(SysPropsHandler.Type.CLUSTER, props); break; // done!! } } }
private void skipNonStartElements() throws XMLStreamException, EndDocumentException { while (true) { int event = next(); if (event == START_ELEMENT) { return; } } }
private void parseJavaConfig() throws XMLStreamException, EndDocumentException { // cursor --> <java-config> // get the attributes for <java-config> javaConfig = parseAttributes(); parseJvmAndProfilerOptions(); }
private void parseSystemProperty(SysPropsHandler.Type type) { // cursor --> <system-property> Map<String, String> map = parseAttributes(); String name = map.get("name"); String value = map.get("value"); if (name != null) { sysProps.add(type, name, value); } }
public Map<String, String> getSystemProperties() throws MiniXmlParserException { if (!valid) { throw new MiniXmlParserException(strings.get("invalid")); } return sysProps.getCombinedSysProps(); }
public Map<String, String> getJavaConfig() throws MiniXmlParserException { if (!valid) { throw new MiniXmlParserException(strings.get("invalid")); } return javaConfig; }
private void parseProperty(Map<String, String> map) { // cursor --> START_ELEMENT of property // it has 2 attributes: name and value Map<String, String> prop = parseAttributes(); String name = prop.get("name"); String value = prop.get("value"); if (name != null) { map.put(name, value); } }
private void setLogFilename(MiniXmlParser parser) throws GFLauncherException { logFilename = parser.getLogFilename(); if (logFilename == null) logFilename = DEFAULT_LOGFILE; }
private void finalTouches() { if (clusters == null) return; for (ParsedCluster pc : clusters) { Map<String, String> props = pc.getMySysProps(serverName); if (props != null) { sysProps.add(SysPropsHandler.Type.CLUSTER, props); break; // done!! } } }
private void parseSystemProperty(SysPropsHandler.Type type) { // cursor --> <system-property> Map<String, String> map = parseAttributes(); String name = map.get("name"); String value = map.get("value"); if (name != null) { sysProps.add(type, name, value); } }
private void parseJavaConfig() throws XMLStreamException, EndDocumentException { // cursor --> <java-config> // get the attributes for <java-config> javaConfig = parseAttributes(); parseJvmAndProfilerOptions(); }
public Map<String, String> getSystemProperties() throws MiniXmlParserException { if (!valid) { throw new MiniXmlParserException(strings.get("invalid")); } return sysProps.getCombinedSysProps(); }
private void skipNonStartElements() throws XMLStreamException, EndDocumentException { while (true) { int event = next(); if (event == START_ELEMENT) { return; } } }
public Map<String, String> getProfilerConfig() throws MiniXmlParserException { if (!valid) { throw new MiniXmlParserException(strings.get("invalid")); } return profilerConfig; }
private void finalTouches() { if (clusters == null) return; for (ParsedCluster pc : clusters) { Map<String, String> props = pc.getMySysProps(serverName); if (props != null) { sysProps.add(SysPropsHandler.Type.CLUSTER, props); break; // done!! } } }
private void parseSystemProperty(SysPropsHandler.Type type) { // cursor --> <system-property> Map<String, String> map = parseAttributes(); String name = map.get("name"); String value = map.get("value"); if (name != null) { sysProps.add(type, name, value); } }
private void parseJavaConfig() throws XMLStreamException, EndDocumentException { // cursor --> <java-config> // get the attributes for <java-config> javaConfig = parseAttributes(); parseJvmAndProfilerOptions(); }
public Map<String, String> getSystemProperties() throws MiniXmlParserException { if (!valid) { throw new MiniXmlParserException(strings.get("invalid")); } return sysProps.getCombinedSysProps(); }
private void skipNonStartElements() throws XMLStreamException, EndDocumentException { while (true) { int event = next(); if (event == START_ELEMENT) { return; } } }
public Map<String, String> getProfilerSystemProperties() throws MiniXmlParserException { if (!valid) { throw new MiniXmlParserException(strings.get("invalid")); } return profilerSysProps; }