Tabnine Logo
DataSetsModules.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
co.cask.cdap.data.runtime.DataSetsModules
constructor

Best Java code snippets using co.cask.cdap.data.runtime.DataSetsModules.<init> (Showing top 20 results out of 315)

origin: co.cask.cdap/cdap-app-fabric

private void addOnPremiseModules(List<Module> modules) {
 String instanceId = systemArgs.getOption(ProgramOptionConstants.INSTANCE_ID);
 modules.add(new LocationRuntimeModule().getDistributedModules());
 modules.add(new KafkaClientModule());
 modules.add(new LoggingModules().getDistributedModules());
 modules.add(new DataFabricModules(generateClientId(programRunId, instanceId)).getDistributedModules());
 modules.add(new DataSetsModules().getDistributedModules());
 modules.add(new NamespaceClientRuntimeModule().getDistributedModules());
 modules.add(new DistributedProgramStreamModule());
}
origin: cdapio/cdap

private void addOnPremiseModules(List<Module> modules) {
 String instanceId = systemArgs.getOption(ProgramOptionConstants.INSTANCE_ID);
 modules.add(new DFSLocationModule());
 modules.add(new KafkaClientModule());
 modules.add(new KafkaLogAppenderModule());
 modules.add(new DataFabricModules(generateClientId(programRunId, instanceId)).getDistributedModules());
 modules.add(new DataSetsModules().getDistributedModules());
 modules.add(new NamespaceQueryAdminModule());
 modules.add(new AbstractModule() {
  @Override
  protected void configure() {
   // bind explore client to ProgramDiscoveryExploreClient which is aware of the programId
   bind(ExploreClient.class).to(ProgramDiscoveryExploreClient.class).in(Scopes.SINGLETON);
  }
 });
}
origin: cdapio/cdap

@VisibleForTesting
public static Injector createInjector(CConfiguration cConf, Configuration hConf) {
 return Guice.createInjector(
  new ConfigModule(cConf, hConf),
  new IOModule(),
  new ZKClientModule(),
  new ZKDiscoveryModule(),
  new KafkaClientModule(),
  new DFSLocationModule(),
  new DataFabricModules(HBaseTableExporter.class.getName()).getDistributedModules(),
  new DataSetsModules().getDistributedModules(),
  new MessagingClientModule(),
  new MetricsClientRuntimeModule().getDistributedModules(),
  new KafkaLogAppenderModule(),
  new ExploreClientModule(),
  new AuthorizationModule(),
  new AuthorizationEnforcementModule().getMasterModule(),
  new AuthenticationContextModules().getMasterModule(),
  new NamespaceQueryAdminModule(),
  new SecureStoreServerModule(),
  new AbstractModule() {
   @Override
   protected void configure() {
    bind(UGIProvider.class).to(RemoteUGIProvider.class);
    bind(OwnerAdmin.class).to(DefaultOwnerAdmin.class);
   }
  }
 );
}
origin: cdapio/cdap

@VisibleForTesting
static Injector createInjector(CConfiguration cConf, Configuration hConf) {
 return Guice.createInjector(
  new ConfigModule(cConf, hConf),
  new ZKClientModule(),
  new DFSLocationModule(),
  new NamespaceQueryAdminModule(),
  new ZKDiscoveryModule(),
  new DataFabricModules("cdap.explore.ContextManager").getDistributedModules(),
  new DataSetsModules().getDistributedModules(),
  new ExploreClientModule(),
  new KafkaClientModule(),
  new AuditModule().getDistributedModules(),
  new AuthorizationEnforcementModule().getDistributedModules(),
  new SecureStoreClientModule(),
  new AuthenticationContextModules().getMasterModule(),
  new MessagingClientModule(),
  new AbstractModule() {
   @Override
   protected void configure() {
    bind(UGIProvider.class).to(RemoteUGIProvider.class).in(Scopes.SINGLETON);
    bind(MetricsCollectionService.class).to(NoOpMetricsCollectionService.class).in(Scopes.SINGLETON);
    // bind PrivilegesManager to a remote implementation, so it does not need to instantiate the authorizer
    bind(PrivilegesManager.class).to(RemotePrivilegesManager.class);
    bind(OwnerAdmin.class).to(DefaultOwnerAdmin.class);
   }
  }
 );
}
origin: cdapio/cdap

 @VisibleForTesting
 static Injector createGuiceInjector(CConfiguration cConf, Configuration hConf, TwillContext twillContext) {
  String txClientId = String.format("cdap.service.%s.%d", Constants.Service.LOGSAVER, twillContext.getInstanceId());
  return Guice.createInjector(
   new ConfigModule(cConf, hConf),
   new IOModule(),
   new ZKClientModule(),
   new ZKDiscoveryModule(),
   new KafkaClientModule(),
   new MetricsClientRuntimeModule().getDistributedModules(),
   new DFSLocationModule(),
   new NamespaceQueryAdminModule(),
   new DataFabricModules(txClientId).getDistributedModules(),
   new DataSetsModules().getDistributedModules(),
   new DistributedLogFrameworkModule(twillContext),
   new KafkaLogAppenderModule(),
   new AuditModule().getDistributedModules(),
   new AuthorizationEnforcementModule().getDistributedModules(),
   new AuthenticationContextModules().getMasterModule(),
   new MessagingClientModule(),
   new AbstractModule() {
    @Override
    protected void configure() {
     bind(OwnerAdmin.class).to(DefaultOwnerAdmin.class);
     bind(UGIProvider.class).to(RemoteUGIProvider.class).in(Scopes.SINGLETON);
    }
   }
  );
 }
}
origin: caskdata/cdap

@BeforeClass
public static void init() throws Exception {
 cConf = CConfiguration.create();
 cConf.set(Constants.CFG_LOCAL_DATA_DIR, tmpFolder.newFolder().getAbsolutePath());
 Injector injector = Guice.createInjector(
  new ConfigModule(cConf),
  new NonCustomLocationUnitTestModule(),
  new InMemoryDiscoveryModule(),
  new DataSetsModules().getStandaloneModules(),
  new DataFabricLevelDBModule(),
  new TransactionMetricsModule(),
  new AuthorizationTestModule(),
  new AuthorizationEnforcementModule().getStandaloneModules(),
  new AuthenticationContextModules().getMasterModule());
 service = injector.getInstance(LevelDBTableService.class);
}
origin: caskdata/cdap

@BeforeClass
public static void createInjector() throws IOException {
 CConfiguration cConf = CConfiguration.create();
 cConf.set(Constants.CFG_LOCAL_DATA_DIR, TEMP_FOLDER.newFolder().getAbsolutePath());
 Injector injector = Guice.createInjector(
  new ConfigModule(cConf),
  new DataSetsModules().getInMemoryModules(),
  new LocalLocationModule(),
  new TransactionInMemoryModule(),
  new SystemDatasetRuntimeModule().getInMemoryModules(),
  new NamespaceAdminTestModule(),
  new AuthorizationTestModule(),
  new AuthorizationEnforcementModule().getInMemoryModules(),
  new AuthenticationContextModules().getMasterModule()
 );
 TransactionManager txManager = injector.getInstance(TransactionManager.class);
 txManager.startAndWait();
 ownerStore = injector.getInstance(OwnerStore.class);
}
origin: caskdata/cdap

@BeforeClass
public static void init() throws Exception {
 CConfiguration conf = CConfiguration.create();
 conf.set(Constants.CFG_LOCAL_DATA_DIR, tmpFolder.newFolder().getAbsolutePath());
 injector = Guice.createInjector(
  new ConfigModule(conf),
  new NonCustomLocationUnitTestModule(),
  new InMemoryDiscoveryModule(),
  new DataSetsModules().getStandaloneModules(),
  new DataFabricLevelDBModule(),
  new TransactionMetricsModule(),
  new AuthorizationTestModule(),
  new AuthorizationEnforcementModule().getStandaloneModules(),
  new AuthenticationContextModules().getMasterModule());
 service = injector.getInstance(LevelDBTableService.class);
}
origin: cdapio/cdap

@VisibleForTesting
static Injector createGuiceInjector(CConfiguration cConf, Configuration hConf, String txClientId,
                  TwillContext twillContext) {
 return Guice.createInjector(
  new ConfigModule(cConf, hConf),
  new IOModule(),
  new ZKClientModule(),
  new ZKDiscoveryModule(),
  new KafkaClientModule(),
  new MessagingClientModule(),
  new MetricsClientRuntimeModule().getDistributedModules(),
  new MetricsStoreModule(),
  new KafkaLogAppenderModule(),
  new DFSLocationModule(),
  new NamespaceQueryAdminModule(),
  new DataFabricModules(txClientId).getDistributedModules(),
  new DataSetsModules().getDistributedModules(),
  new MetricsProcessorModule(twillContext),
  new MetricsProcessorStatusServiceModule(),
  new AuditModule().getDistributedModules(),
  new AuthorizationEnforcementModule().getDistributedModules(),
  new AuthenticationContextModules().getMasterModule(),
  new AbstractModule() {
   @Override
   protected void configure() {
    bind(OwnerAdmin.class).to(DefaultOwnerAdmin.class);
   }
  }
 );
}
origin: cdapio/cdap

new NamespaceQueryAdminModule(),
new DataFabricModules(txClientId).getDistributedModules(),
new DataSetsModules().getDistributedModules(),
new KafkaLogAppenderModule(),
new ExploreRuntimeModule().getDistributedModules(),
origin: caskdata/cdap

@BeforeClass
public static void setup() throws Exception {
 CConfiguration conf = CConfiguration.create();
 conf.set(Constants.CFG_LOCAL_DATA_DIR, tmpFolder.newFolder().getAbsolutePath());
 Injector injector = Guice.createInjector(
  new ConfigModule(conf),
  new NonCustomLocationUnitTestModule(),
  new AuthorizationTestModule(),
  new AuthorizationEnforcementModule().getInMemoryModules(),
  new AuthenticationContextModules().getMasterModule(),
  new InMemoryDiscoveryModule(),
  new SystemDatasetRuntimeModule().getInMemoryModules(),
  new DataSetsModules().getInMemoryModules(),
  new DataFabricLevelDBModule(),
  new TransactionMetricsModule());
 dsFramework = injector.getInstance(DatasetFramework.class);
}
origin: caskdata/cdap

@BeforeClass
public static void setup() {
 Injector injector = Guice.createInjector(
  new ConfigModule(),
  Modules.override(
   new DataSetsModules().getInMemoryModules()).with(new AbstractModule() {
   @Override
   protected void configure() {
    // Need the distributed metadata store.
    bind(MetadataStore.class).to(DefaultMetadataStore.class);
   }
  }),
  new LocalLocationModule(),
  new TransactionInMemoryModule(),
  new SystemDatasetRuntimeModule().getInMemoryModules(),
  new NamespaceAdminTestModule(),
  new AuthorizationTestModule(),
  new AuthorizationEnforcementModule().getInMemoryModules(),
  new AuthenticationContextModules().getMasterModule()
 );
 txManager = injector.getInstance(TransactionManager.class);
 txManager.startAndWait();
 storage = injector.getInstance(DatasetMetadataStorage.class);
}
origin: cdapio/cdap

new MessagingClientModule(),
new DataFabricModules(txClientId).getDistributedModules(),
new DataSetsModules().getDistributedModules(),
new DFSLocationModule(),
new NamespaceQueryAdminModule(),
origin: cdapio/cdap

new MetricsClientRuntimeModule().getInMemoryModules(),
new DataFabricModules().getInMemoryModules(),
new DataSetsModules().getStandaloneModules(),
new DataSetServiceModules().getInMemoryModules(),
new ExploreClientModule(),
origin: cdapio/cdap

new MessagingClientModule(),
new DataFabricModules(txClientId).getDistributedModules(),
new DataSetsModules().getDistributedModules(),
new DFSLocationModule(),
new NamespaceQueryAdminModule(),
origin: cdapio/cdap

new NamespaceQueryAdminModule(),
new DataFabricModules(txClientId).getDistributedModules(),
new DataSetsModules().getDistributedModules(),
new DataSetServiceModules().getDistributedModules(),
new KafkaLogAppenderModule(),
origin: co.cask.cdap/cdap-explore

new DiscoveryRuntimeModule().getDistributedModules(),
new DataFabricModules("cdap.explore.ContextManager").getDistributedModules(),
new DataSetsModules().getDistributedModules(),
new ExploreClientModule(),
new ViewAdminModules().getDistributedModules(),
origin: caskdata/cdap

@BeforeClass
public static void setupDefaultStore() {
 injector = Guice.createInjector(
  new ConfigModule(),
  Modules.override(
   new DataSetsModules().getInMemoryModules()).with(new AbstractModule() {
   @Override
   protected void configure() {
    // Need the distributed metadata store.
    bind(MetadataStore.class).to(DefaultMetadataStore.class);
   }
  }),
  new LocalLocationModule(),
  new TransactionInMemoryModule(),
  new SystemDatasetRuntimeModule().getInMemoryModules(),
  new NamespaceAdminTestModule(),
  new AuthorizationTestModule(),
  new AuthorizationEnforcementModule().getInMemoryModules(),
  new AuthenticationContextModules().getMasterModule(),
  new AuditModule().getInMemoryModules()
 );
 txManager = injector.getInstance(TransactionManager.class);
 txManager.startAndWait();
 AbstractMetadataStoreTest.commonSetup();
}
origin: caskdata/cdap

@BeforeClass
public static void setupDefaultStore() {
 injector = Guice.createInjector(
  new ConfigModule(),
  Modules.override(
   new DataSetsModules().getInMemoryModules()).with(new AbstractModule() {
   @Override
   protected void configure() {
    // Need the distributed metadata store.
    bind(MetadataStore.class).to(StorageProviderMetadataStore.class);
    bind(MetadataStorage.class).to(DatasetMetadataStorage.class).in(Scopes.SINGLETON);
   }
  }),
  new LocalLocationModule(),
  new TransactionInMemoryModule(),
  new SystemDatasetRuntimeModule().getInMemoryModules(),
  new NamespaceAdminTestModule(),
  new AuthorizationTestModule(),
  new AuthorizationEnforcementModule().getInMemoryModules(),
  new AuthenticationContextModules().getMasterModule(),
  new AuditModule().getInMemoryModules()
 );
 txManager = injector.getInstance(TransactionManager.class);
 txManager.startAndWait();
 AbstractMetadataStoreTest.commonSetup();
}
origin: cdapio/cdap

 @Override
 protected void configure() {
  install(new DataFabricModules().getInMemoryModules());
  install(new DataSetsModules().getStandaloneModules());
  install(new TransactionExecutorModule());
  install(new DataSetServiceModules().getInMemoryModules());
  install(new ConfigModule(cConf, hConf, sConf));
  install(new IOModule());
  install(new InMemoryDiscoveryModule());
  install(new AppFabricServiceRuntimeModule().getInMemoryModules());
  install(new ServiceStoreModules().getInMemoryModules());
  install(new ProgramRunnerRuntimeModule().getInMemoryModules());
  install(new NonCustomLocationUnitTestModule());
  install(new LocalLogAppenderModule());
  install(new LogReaderRuntimeModules().getInMemoryModules());
  install(new LogQueryServerModule());
  install(new MetricsHandlerModule());
  install(new MetricsClientRuntimeModule().getInMemoryModules());
  install(new ExploreClientModule());
  install(new ConfigStoreModule().getInMemoryModule());
  install(new NamespaceStoreModule().getStandaloneModules());
  install(new MetadataServiceModule());
  install(new AuthorizationModule());
  install(new AuthorizationEnforcementModule().getStandaloneModules());
  install(new SecureStoreServerModule());
  install(new MetadataReaderWriterModules().getInMemoryModules());
  install(new MessagingServerRuntimeModule().getInMemoryModules());
  install(new MockProvisionerModule());
 }
}
co.cask.cdap.data.runtimeDataSetsModules<init>

Popular methods of DataSetsModules

  • getStandaloneModules
  • getDistributedModules
  • getInMemoryModules
  • getModule

Popular in Java

  • Reading from database using SQL prepared statement
  • getSystemService (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • runOnUiThread (Activity)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now