use of org.ow2.proactive.resourcemanager.common.event.RMNodeSourceEvent in project scheduling by ow2-proactive.
the class NodeSource method putAndPersistAdditionalInformation.
public void putAndPersistAdditionalInformation(String key, String value) {
String valueToUpdate = this.additionalInformation.get(key);
if (valueToUpdate == null || (valueToUpdate != null && !valueToUpdate.equals(value))) {
// Put additional information
this.additionalInformation.put(key, value);
this.descriptor.getAdditionalInformation().put(key, value);
// Persist additional information
persistAdditionalInformation();
// Notify the rm portal that the node source changed
this.monitoring.nodeSourceEvent(new RMNodeSourceEvent(RMEventType.NODESOURCE_UPDATED, this.administrator.getName(), this.name, this.getDescription(), this.additionalInformation, this.administrator.getName(), this.getStatus().toString()));
}
}
Aggregations