}
//-------------------------------------------------------------------------
@Override
public void notifyViewProcessAdded(UniqueId viewProcessId) {
ViewProcessInternal view = _viewProcessor.getViewProcess(viewProcessId);
if (view == null) {
return;
}
ViewProcessMXBeanImpl viewManagement = new ViewProcessMXBeanImpl(view, _viewProcessor);
try {
registerViewProcess(viewManagement);
} catch (Exception e) {
s_logger.warn("Error registering view for management for " + viewManagement.getObjectName() + " . Error was " + e.getMessage(), e);
}
ViewDefinition definition = view.getLatestViewDefinition();
Set<String> configurationNames = Collections.emptySet();
if (definition != null) {
configurationNames = definition.getAllCalculationConfigurationNames();
}
_calcConfigByViewProcessId.putIfAbsent(viewProcessId, configurationNames);