private void handleConfig() { String name = reader.getAttributeValue(null, NAME); printf("CONFIG: " + name); configNames.add(name); }
private void handleConfig() { String name = reader.getAttributeValue(null, NAME); printf("CONFIG: " + name); configNames.add(name); }
private void handleServer() { String name = getName(); String configRef = getConfigRef(); printf("SERVER: " + name + ", ref= " + configRef); if (instanceName.equals(name)) serverConfigRef = configRef; }
private void handleClusters() throws XMLStreamException { // we are pointed at the servers element printf("FOUND CLUSTERS"); while (skipToStartButNotPast(CLUSTER, CLUSTERS)) { handleCluster(); } }
private void handleServer() { String name = getName(); String configRef = getConfigRef(); printf("SERVER: " + name + ", ref= " + configRef); if (instanceName.equals(name)) serverConfigRef = configRef; }
private void handleServers() throws XMLStreamException { // we are pointed at the servers element printf("FOUND SERVERS"); while (skipToStartButNotPast(SERVER, SERVERS)) { handleServer(); } }
private void handleConfigs() throws XMLStreamException { // we are pointed at the configs element printf("FOUND CONFIGS"); while (skipToStartButNotPast(CONFIG, CONFIGS)) { handleConfig(); } }
private void handleClusters() throws XMLStreamException { // we are pointed at the servers element printf("FOUND CLUSTERS"); while (skipToStartButNotPast(CLUSTER, CLUSTERS)) { handleCluster(); } }
private void handleConfigs() throws XMLStreamException { // we are pointed at the configs element printf("FOUND CONFIGS"); while (skipToStartButNotPast(CONFIG, CONFIGS)) { handleConfig(); } }
private void handleServers() throws XMLStreamException { // we are pointed at the servers element printf("FOUND SERVERS"); while (skipToStartButNotPast(SERVER, SERVERS)) { handleServer(); } }
private void handleCluster() throws XMLStreamException { ClusterData cd = new ClusterData(); cd.name = getName(); cd.configRef = getConfigRef(); handleServerRefs(cd); clusters.add(cd); printf(cd.toString()); }
private void handleCluster() throws XMLStreamException { ClusterData cd = new ClusterData(); cd.name = getName(); cd.configRef = getConfigRef(); handleServerRefs(cd); clusters.add(cd); printf(cd.toString()); }