use of org.talend.designer.runprocess.ui.ProcessManager in project tdi-studio-se by Talend.
the class SparkJavaProcessorUtil method isStatistics.
public static boolean isStatistics() {
ProcessManager pm = ProcessManager.getInstance();
boolean stats = false;
if (pm != null && pm.getStat() != null) {
stats = pm.getStat();
}
return stats;
}
use of org.talend.designer.runprocess.ui.ProcessManager in project tesb-studio-se by Talend.
the class RunESBRuntimeProcess method applyContextConfiguration.
private void applyContextConfiguration(String configID) throws Exception {
ProcessManager processManager = ProcessManager.getInstance();
IContext context = processManager.getSelectContext();
String contextName = context.getName();
JMXUtil.deleteConfigProperties(configID);
JMXUtil.setConfigProperty(configID, "context", contextName);
/*
// The following code is only required if context parameters are
// to be modified dynamically at deployment into local runtime.
// Such functionaliy is currently not implemented in Talend Studio,
// but contexts are applied as generated.
List<org.talend.core.model.process.IContextParameter> params = context.getContextParameterList();
if (params != null) {
for (org.talend.core.model.process.IContextParameter param : params) {
String name = param.getName();
if ("context".equals(name)) {
continue;
}
JMXUtil.setConfigProperty(configID, name, param.getValue());
}
}
*/
}
Aggregations