public void endElement(String uri, String name, String qName) { if (qName.equals("instanceId")) { this.instanceId = currentOrNull(); } else if (qName.equals("shutdownState") || qName.equals("currentState")) { inCurrentState = false; } else if (qName.equals("previousState")) { inPreviousState = false; } else if (qName.equals("name")) { if (inCurrentState) { shutdownState = InstanceState.fromValue(currentOrNull()); } else if (inPreviousState) { previousState = InstanceState.fromValue(currentOrNull()); } } else if (qName.equals("item")) { String region = AWSUtils.findRegionInArgsOrNull(getRequest()); if (region == null) region = defaultRegion.get(); instances.add(new InstanceStateChange(region, instanceId, shutdownState, previousState)); this.instanceId = null; this.shutdownState = null; this.previousState = null; } currentText.setLength(0); }
public void endElement(String uri, String name, String qName) { if (qName.equals("instanceId")) { this.instanceId = currentOrNull(); } else if (qName.equals("shutdownState") || qName.equals("currentState")) { inCurrentState = false; } else if (qName.equals("previousState")) { inPreviousState = false; } else if (qName.equals("name")) { if (inCurrentState) { shutdownState = InstanceState.fromValue(currentOrNull()); } else if (inPreviousState) { previousState = InstanceState.fromValue(currentOrNull()); } } else if (qName.equals("item")) { String region = AWSUtils.findRegionInArgsOrNull(getRequest()); if (region == null) region = defaultRegion.get(); instances.add(new InstanceStateChange(region, instanceId, shutdownState, previousState)); this.instanceId = null; this.shutdownState = null; this.previousState = null; } currentText = new StringBuilder(); }
public void endElement(String uri, String name, String qName) { if (qName.equals("instanceId")) { this.instanceId = currentOrNull(); } else if (qName.equals("shutdownState") || qName.equals("currentState")) { inCurrentState = false; } else if (qName.equals("previousState")) { inPreviousState = false; } else if (qName.equals("name")) { if (inCurrentState) { shutdownState = InstanceState.fromValue(currentOrNull()); } else if (inPreviousState) { previousState = InstanceState.fromValue(currentOrNull()); } } else if (qName.equals("item")) { String region = AWSUtils.findRegionInArgsOrNull(getRequest()); if (region == null) region = defaultRegion.get(); instances.add(new InstanceStateChange(region, instanceId, shutdownState, previousState)); this.instanceId = null; this.shutdownState = null; this.previousState = null; } currentText = new StringBuilder(); }
public void endElement(String uri, String name, String qName) { if (qName.equals("instanceId")) { this.instanceId = currentOrNull(); } else if (qName.equals("shutdownState") || qName.equals("currentState")) { inCurrentState = false; } else if (qName.equals("previousState")) { inPreviousState = false; } else if (qName.equals("name")) { if (inCurrentState) { shutdownState = InstanceState.fromValue(currentOrNull()); } else if (inPreviousState) { previousState = InstanceState.fromValue(currentOrNull()); } } else if (qName.equals("item")) { String region = AWSUtils.findRegionInArgsOrNull(getRequest()); if (region == null) region = defaultRegion.get(); instances.add(new InstanceStateChange(region, instanceId, shutdownState, previousState)); this.instanceId = null; this.shutdownState = null; this.previousState = null; } currentText.setLength(0); }
public void endElement(String uri, String name, String qName) { if (qName.equals("instanceId")) { this.instanceId = currentOrNull(); } else if (qName.equals("shutdownState") || qName.equals("currentState")) { inCurrentState = false; } else if (qName.equals("previousState")) { inPreviousState = false; } else if (qName.equals("name")) { if (inCurrentState) { shutdownState = InstanceState.fromValue(currentOrNull()); } else if (inPreviousState) { previousState = InstanceState.fromValue(currentOrNull()); } } else if (qName.equals("item")) { String region = AWSUtils.findRegionInArgsOrNull(getRequest()); if (region == null) region = defaultRegion.get(); instances.add(new InstanceStateChange(region, instanceId, shutdownState, previousState)); this.instanceId = null; this.shutdownState = null; this.previousState = null; } currentText.setLength(0); }
if (rawState != null) { builder.rawState(rawState); builder.instanceState(InstanceState.fromValue(rawState));
if (rawState != null) { builder.rawState(rawState); builder.instanceState(InstanceState.fromValue(rawState));
if (rawState != null) { builder.rawState(rawState); builder.instanceState(InstanceState.fromValue(rawState));
if (rawState != null) { builder.rawState(rawState); builder.instanceState(InstanceState.fromValue(rawState));
if (rawState != null) { builder.rawState(rawState); builder.instanceState(InstanceState.fromValue(rawState));
String rawState = currentOrNull(currentText); builder.rawState(rawState); builder.instanceState(InstanceState.fromValue(rawState)); } else if (equalsOrSuffix(qName, "instanceType")) { builder.instanceType(currentOrNull(currentText));
String rawState = currentOrNull(currentText); builder.rawState(rawState); builder.instanceState(InstanceState.fromValue(rawState)); } else if (equalsOrSuffix(qName, "instanceType")) { builder.instanceType(currentOrNull(currentText));
String rawState = currentOrNull(currentText); builder.rawState(rawState); builder.instanceState(InstanceState.fromValue(rawState)); } else if (equalsOrSuffix(qName, "instanceType")) { builder.instanceType(currentOrNull(currentText));