private void parseListeners() throws XMLStreamException, EndDocumentException { // cursor --> START_ELEMENT of network-listeners while (true) { skipToButNotPast("network-listeners", "network-listener"); final String name = parser.getLocalName(); if ("network-listener".equals(name)) { listenerAttributes.add(parseAttributes()); } else if ("network-listeners".equals(name)) { break; } } }
private void parseJvmAndProfilerOptions() throws XMLStreamException, EndDocumentException { while (skipToButNotPast("java-config", "jvm-options", "profiler")) { if ("jvm-options".equals(parser.getLocalName())) { jvmOptions.add(parser.getElementText()); } else {// profiler parseProfiler(); } } }
private void parseJvmAndProfilerOptions() throws XMLStreamException, EndDocumentException { while (skipToButNotPast("java-config", "jvm-options", "profiler")) { if ("jvm-options".equals(parser.getLocalName())) { jvmOptions.add(parser.getElementText()); } else {// profiler parseProfiler(); } } }
private void parseListeners() throws XMLStreamException, EndDocumentException { // cursor --> START_ELEMENT of network-listeners while (true) { skipToButNotPast("network-listeners", "network-listener"); final String name = parser.getLocalName(); if ("network-listener".equals(name)) { listenerAttributes.add(parseAttributes()); } else if ("network-listeners".equals(name)) { break; } } }
private void parseAdminService() throws XMLStreamException, EndDocumentException { Map<String, String> attributes = null; skipToButNotPast("admin-service", "jmx-connector"); String name = parser.getLocalName(); if ("jmx-connector".equals(name)) { attributes = parseAttributes(); adminRealm = attributes.get("auth-realm-name"); } }
private void parseProtocols() throws XMLStreamException, EndDocumentException { // cursor --> START_ELEMENT of protocols while (true) { skipToButNotPast("protocols", "protocol"); final String name = parser.getLocalName(); if ("protocol".equals(name)) { protocolAttributes.add(parseAttributes()); } else if ("protocols".equals(name)) { break; } } }
private void parseProtocols() throws XMLStreamException, EndDocumentException { // cursor --> START_ELEMENT of protocols while (true) { skipToButNotPast("protocols", "protocol"); final String name = parser.getLocalName(); if ("protocol".equals(name)) { protocolAttributes.add(parseAttributes()); } else if ("protocols".equals(name)) { break; } } }
private void parseAdminService() throws XMLStreamException, EndDocumentException { Map<String, String> attributes = null; skipToButNotPast("admin-service", "jmx-connector"); String name = parser.getLocalName(); if ("jmx-connector".equals(name)) { attributes = parseAttributes(); adminRealm = attributes.get("auth-realm-name"); } }
private void parseListeners() throws XMLStreamException, EndDocumentException { // cursor --> START_ELEMENT of network-listeners while (true) { skipToButNotPast("network-listeners", "network-listener"); final String name = parser.getLocalName(); if ("network-listener".equals(name)) { listenerAttributes.add(parseAttributes()); } else if ("network-listeners".equals(name)) { break; } } }
private void parseJvmAndProfilerOptions() throws XMLStreamException, EndDocumentException { while (skipToButNotPast("java-config", "jvm-options", "profiler")) { if ("jvm-options".equals(parser.getLocalName())) { jvmOptions.add(parser.getElementText()); } else {// profiler parseProfiler(); } } }
private void parseProtocols() throws XMLStreamException, EndDocumentException { // cursor --> START_ELEMENT of protocols while (true) { skipToButNotPast("protocols", "protocol"); final String name = parser.getLocalName(); if ("protocol".equals(name)) { protocolAttributes.add(parseAttributes()); } else if ("protocols".equals(name)) { break; } } }
private void parseProfiler() throws XMLStreamException, EndDocumentException { // cursor --> START_ELEMENT of profiler // it has attributes and <jvm-options>'s and <property>'s profilerConfig = parseAttributes(); // the default is true if (!profilerConfig.containsKey("enabled")) profilerConfig.put("enabled", "true"); while (skipToButNotPast("profiler", "jvm-options", "property")) { if ("jvm-options".equals(parser.getLocalName())) { profilerJvmOptions.add(parser.getElementText()); } else { parseProperty(profilerSysProps); } } }
private void parseProfiler() throws XMLStreamException, EndDocumentException { // cursor --> START_ELEMENT of profiler // it has attributes and <jvm-options>'s and <property>'s profilerConfig = parseAttributes(); // the default is true if (!profilerConfig.containsKey("enabled")) profilerConfig.put("enabled", "true"); while (skipToButNotPast("profiler", "jvm-options", "property")) { if ("jvm-options".equals(parser.getLocalName())) { profilerJvmOptions.add(parser.getElementText()); } else { parseProperty(profilerSysProps); } } }
private void parseProfiler() throws XMLStreamException, EndDocumentException { // cursor --> START_ELEMENT of profiler // it has attributes and <jvm-options>'s and <property>'s profilerConfig = parseAttributes(); // the default is true if (!profilerConfig.containsKey("enabled")) profilerConfig.put("enabled", "true"); while (skipToButNotPast("profiler", "jvm-options", "property")) { if ("jvm-options".equals(parser.getLocalName())) { profilerJvmOptions.add(parser.getElementText()); } else { parseProperty(profilerSysProps); } } }
private void parseClusters() throws XMLStreamException, EndDocumentException { // cursor ==> clusters // if there is more than one clusters element (!weird!) only use the last one clusters = new ArrayList<ParsedCluster>(); while (skipToButNotPast("clusters", "cluster")) { // cursor ==> "cluster" ParsedCluster pc = new ParsedCluster(parseAttributes().get("name")); clusters.add(pc); parseCluster(pc); } }
private void parseClusters() throws XMLStreamException, EndDocumentException { // cursor ==> clusters // if there is more than one clusters element (!weird!) only use the last one clusters = new ArrayList<ParsedCluster>(); while (skipToButNotPast("clusters", "cluster")) { // cursor ==> "cluster" ParsedCluster pc = new ParsedCluster(parseAttributes().get("name")); clusters.add(pc); parseCluster(pc); } }
private void parseClusters() throws XMLStreamException, EndDocumentException { // cursor ==> clusters // if there is more than one clusters element (!weird!) only use the last one clusters = new ArrayList<ParsedCluster>(); while (skipToButNotPast("clusters", "cluster")) { // cursor ==> "cluster" ParsedCluster pc = new ParsedCluster(parseAttributes().get("name")); clusters.add(pc); parseCluster(pc); } }
private void parseCluster(ParsedCluster pc) throws XMLStreamException, EndDocumentException { // cursor --> cluster element while (skipToButNotPast("cluster", "system-property", "server-ref")) { String name = parser.getLocalName(); if ("system-property".equals(name)) { // NOT parseSystemProperty() because this might not be "our" cluster // finalTouches() will add the correct system-property's parseProperty(pc.sysProps); } else if ("server-ref".equals(name)) { Map<String, String> atts = parseAttributes(); // atts is guaranteed to be non-null String sname = atts.get("ref"); if (GFLauncherUtils.ok(sname)) pc.serverNames.add(sname); } } }
private void parseCluster(ParsedCluster pc) throws XMLStreamException, EndDocumentException { // cursor --> cluster element while (skipToButNotPast("cluster", "system-property", "server-ref")) { String name = parser.getLocalName(); if ("system-property".equals(name)) { // NOT parseSystemProperty() because this might not be "our" cluster // finalTouches() will add the correct system-property's parseProperty(pc.sysProps); } else if ("server-ref".equals(name)) { Map<String, String> atts = parseAttributes(); // atts is guaranteed to be non-null String sname = atts.get("ref"); if (GFLauncherUtils.ok(sname)) pc.serverNames.add(sname); } } }
private void parseCluster(ParsedCluster pc) throws XMLStreamException, EndDocumentException { // cursor --> cluster element while (skipToButNotPast("cluster", "system-property", "server-ref")) { String name = parser.getLocalName(); if ("system-property".equals(name)) { // NOT parseSystemProperty() because this might not be "our" cluster // finalTouches() will add the correct system-property's parseProperty(pc.sysProps); } else if ("server-ref".equals(name)) { Map<String, String> atts = parseAttributes(); // atts is guaranteed to be non-null String sname = atts.get("ref"); if (GFLauncherUtils.ok(sname)) pc.serverNames.add(sname); } } }