use of io.cdap.cdap.data2.metadata.writer.LineageWriter in project cdap by caskdata.
the class DistributedProgramContainerModule method configure.
@Override
protected void configure() {
List<Module> modules = getCoreModules();
RuntimeMonitorType runtimeMonitorType = SystemArguments.getRuntimeMonitorType(cConf, programOpts);
modules.add(RuntimeMonitors.getRemoteAuthenticatorModule(runtimeMonitorType, programOpts));
install(Modules.override(modules).with(new AbstractModule() {
@Override
protected void configure() {
// Overrides the LineageWriter, UsageWriter to write to TMS instead
bind(LineageWriter.class).to(MessagingLineageWriter.class);
bind(FieldLineageWriter.class).to(MessagingLineageWriter.class);
bind(UsageWriter.class).to(MessagingUsageWriter.class);
// Overrides the metadata store to be no-op (programs never access it directly)
bind(MetadataStorage.class).to(NoopMetadataStorage.class);
}
}));
bind(RuntimeMonitorType.class).toInstance(runtimeMonitorType);
}
Aggregations