}
} else if(event instanceof ProvisionMonitorEvent) {
String label = "ProvisionMonitorEvent."+eventNode.getValueAt(0);
tableData.put("Event", label);
ProvisionMonitorEvent pme = (ProvisionMonitorEvent)event;
StringBuilder builder = new StringBuilder();
if(pme.getAction().equals(ProvisionMonitorEvent.Action.OPSTRING_DEPLOYED) ||
pme.getAction().equals(ProvisionMonitorEvent.Action.OPSTRING_UNDEPLOYED)) {
StringBuilder serviceNameBuilder = new StringBuilder();
for(ServiceElement service : pme.getOperationalString().getServices()) {
if(serviceNameBuilder.length()>0) {
serviceNameBuilder.append(", ");
}
serviceNameBuilder.append(service.getName());
}
builder.append(serviceNameBuilder.toString());
tableData.put("When", Constants.DATE_FORMAT.format(event.getDate()));
tableData.put("Deployment", pme.getOperationalStringName());
tableData.put("Services", builder.toString());
} else {
tableData.put("When", Constants.DATE_FORMAT.format(event.getDate()));
tableData.put("Deployment", pme.getOperationalStringName());
tableData.put("Description", eventNode.getDescription());
}
} else if(event instanceof ServiceLogEvent) {
String label = "ServiceLogEvent."+eventNode.getValueAt(0);