use of org.pentaho.di.engine.api.reporting.LogLevel in project pentaho-kettle by pentaho.
the class MessageEncoderDecoderTest method executionRequest.
private ExecutionRequest executionRequest() {
Map<String, Object> parameters = new HashMap<>();
parameters.put("paramKey1", "paramValue1");
parameters.put("paramKey2", "paramValue2");
Map<String, Object> environment = new HashMap<>();
environment.put("environmentKey1", "environmentParam1");
environment.put("environmentKey2", "environmentParam2");
Map<String, Set<Class<? extends Serializable>>> reportingTopics = new HashMap<>();
Set<Class<? extends Serializable>> topics = new HashSet<>();
topics.add(Metrics.class);
topics.add(LogEntry.class);
reportingTopics.put("operation1", topics);
reportingTopics.put("operation2", topics);
LogLevel loggingLogLevel = LogLevel.BASIC;
Principal actingPrincipal = null;
Transformation transformation = new Transformation("myTransformation");
return new ExecutionRequest(parameters, environment, transformation, reportingTopics, loggingLogLevel, actingPrincipal);
}
Aggregations