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

How to use
org.apache.gobblin.service.NoopRequesterService
constructor

Best Java code snippets using org.apache.gobblin.service.NoopRequesterService.<init> (Showing top 5 results out of 315)

origin: apache/incubator-gobblin

 @Override
 public void configure(Binder binder) {
  binder.bind(FlowConfigsResourceHandler.class)
    .annotatedWith(Names.named(FlowConfigsResource.INJECT_FLOW_CONFIG_RESOURCE_HANDLER))
    .toInstance(GobblinServiceManager.this.resourceHandler);
  binder.bind(FlowConfigsResourceHandler.class)
    .annotatedWith(Names.named(FlowConfigsV2Resource.FLOW_CONFIG_GENERATOR_INJECT_NAME))
    .toInstance(GobblinServiceManager.this.v2ResourceHandler);
  binder.bindConstant()
    .annotatedWith(Names.named(FlowConfigsResource.INJECT_READY_TO_USE))
    .to(Boolean.TRUE);
  binder.bind(RequesterService.class)
    .annotatedWith(Names.named(FlowConfigsResource.INJECT_REQUESTER_SERVICE))
    .toInstance(new NoopRequesterService(config));
 }
});
origin: apache/incubator-gobblin

  @Override
  public void configure(Binder binder) {
   binder.bind(FlowConfigsResourceHandler.class)
     .annotatedWith(Names.named(FlowConfigsResource.INJECT_FLOW_CONFIG_RESOURCE_HANDLER))
     .toInstance(new FlowConfigResourceLocalHandler(flowCatalog));
   // indicate that we are in unit testing since the resource is being blocked until flow catalog changes have
   // been made
   binder.bindConstant().annotatedWith(Names.named(FlowConfigsResource.INJECT_READY_TO_USE)).to(Boolean.TRUE);
   binder.bind(RequesterService.class)
     .annotatedWith(Names.named(FlowConfigsResource.INJECT_REQUESTER_SERVICE)).toInstance(new NoopRequesterService(config));
  }
});
origin: apache/incubator-gobblin

public void testSerDerWithEmptyRequester() throws IOException {
 List<ServiceRequester> list = new ArrayList<>();
 RequesterService rs = new NoopRequesterService(ConfigBuilder.create().build());
 String serialize = rs.serialize(list);
 Properties props = new Properties();
 props.put(RequesterService.REQUESTER_LIST, serialize);
 Config initConfig = ConfigBuilder.create().build();
 Config config = initConfig.withFallback(ConfigFactory.parseString(props.toString()).resolve());
 Properties props2 = ConfigUtils.configToProperties(config);
 String serialize2 = props2.getProperty(RequesterService.REQUESTER_LIST);
 Assert.assertTrue(serialize.equals(serialize2));
 List<ServiceRequester> list2 = rs.deserialize(serialize);
 Assert.assertTrue(list.equals(list2));
}
origin: apache/incubator-gobblin

 public void testSerDerWithConfig() throws IOException {
  ServiceRequester sr1 = new ServiceRequester("kafkaetl", "user", "dv");
  ServiceRequester sr2 = new ServiceRequester("gobblin", "group", "dv");
  ServiceRequester sr3 = new ServiceRequester("crm-backend", "service", "cert");

  List<ServiceRequester> list = new ArrayList<>();
  sr1.getProperties().put("customKey", "${123}");
  list.add(sr1);
  list.add(sr2);
  list.add(sr3);

  RequesterService rs = new NoopRequesterService(ConfigBuilder.create().build());
  String serialize = rs.serialize(list);
  Properties props = new Properties();

  props.put(RequesterService.REQUESTER_LIST, serialize);

  Config initConfig = ConfigBuilder.create().build();
  Config config = initConfig.withFallback(ConfigFactory.parseString(props.toString()).resolve());

  Properties props2 = ConfigUtils.configToProperties(config);
  String serialize2 = props2.getProperty(RequesterService.REQUESTER_LIST);

  Assert.assertTrue(serialize.equals(serialize2));
  List<ServiceRequester> list2 = rs.deserialize(serialize);
  Assert.assertTrue(list.equals(list2));
 }
}
origin: org.apache.gobblin/gobblin-service

 @Override
 public void configure(Binder binder) {
  binder.bind(FlowConfigsResourceHandler.class)
    .annotatedWith(Names.named(FlowConfigsResource.INJECT_FLOW_CONFIG_RESOURCE_HANDLER))
    .toInstance(GobblinServiceManager.this.resourceHandler);
  binder.bind(FlowConfigsResourceHandler.class)
    .annotatedWith(Names.named(FlowConfigsV2Resource.FLOW_CONFIG_GENERATOR_INJECT_NAME))
    .toInstance(GobblinServiceManager.this.v2ResourceHandler);
  binder.bindConstant()
    .annotatedWith(Names.named(FlowConfigsResource.INJECT_READY_TO_USE))
    .to(Boolean.TRUE);
  binder.bind(RequesterService.class)
    .annotatedWith(Names.named(FlowConfigsResource.INJECT_REQUESTER_SERVICE))
    .toInstance(new NoopRequesterService(config));
 }
});
org.apache.gobblin.serviceNoopRequesterService<init>

Popular methods of NoopRequesterService

    Popular in Java

    • Updating database using SQL prepared statement
    • compareTo (BigDecimal)
    • getResourceAsStream (ClassLoader)
    • setScale (BigDecimal)
    • GridLayout (java.awt)
      The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
    • InetAddress (java.net)
      An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
    • Selector (java.nio.channels)
      A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
    • PriorityQueue (java.util)
      A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
    • TimeUnit (java.util.concurrent)
      A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
    • Notification (javax.management)
    • 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