Tabnine Logo
MetricsCollectionService
Code IndexAdd Tabnine to your IDE (free)

How to use
MetricsCollectionService
in
co.cask.cdap.api.metrics

Best Java code snippets using co.cask.cdap.api.metrics.MetricsCollectionService (Showing top 20 results out of 315)

origin: co.cask.cdap/cdap-common

 @Override
 public MetricsContext load(Map<String, String> key) throws Exception {
  return metricsCollectionService.getContext(key);
 }
});
origin: cdapio/cdap

 private void shutDownUnrequiredServices() {
  if (timer != null) {
   timer.cancel();
  }
  programRuntimeService.stopAndWait();
  applicationLifecycleService.stopAndWait();
  logAppenderInitializer.close();
  metricsCollectionService.stopAndWait();
  programNotificationSubscriberService.stopAndWait();
 }
}
origin: caskdata/cdap

datasetService.startAndWait();
metricsCollectionService = injector.getInstance(MetricsCollectionService.class);
metricsCollectionService.startAndWait();
programNotificationSubscriberService = injector.getInstance(ProgramNotificationSubscriberService.class);
programNotificationSubscriberService.startAndWait();
origin: co.cask.cdap/cdap-app-fabric

@Override
protected void startUp() throws Exception {
 if (messagingService instanceof Service) {
  ((Service) messagingService).startAndWait();
 }
 datasetService.startAndWait();
 // It is recommended to initialize log appender after datasetService is started,
 // since log appender instantiates a dataset.
 logAppenderInitializer.initialize();
 LoggingContextAccessor.setLoggingContext(new ServiceLoggingContext(NamespaceId.SYSTEM.getNamespace(),
                                   Constants.Logging.COMPONENT_NAME,
                                   Constants.Service.PREVIEW_HTTP));
 Futures.allAsList(
  applicationLifecycleService.start(),
  programRuntimeService.start(),
  metricsCollectionService.start(),
  programNotificationSubscriberService.start()
 ).get();
}
origin: co.cask.cdap/cdap-app-fabric

 private void shutDownUnrequiredServices() {
  if (timer != null) {
   timer.cancel();
  }
  programRuntimeService.stopAndWait();
  applicationLifecycleService.stopAndWait();
  logAppenderInitializer.close();
  metricsCollectionService.stopAndWait();
  programNotificationSubscriberService.stopAndWait();
 }
}
origin: cdapio/cdap

injector.getInstance(DatasetOpExecutor.class).startAndWait();
injector.getInstance(DatasetService.class).startAndWait();
injector.getInstance(MetricsCollectionService.class).startAndWait();
injector.getInstance(MetadataSubscriberService.class).startAndWait();
injector.getInstance(ProgramNotificationSubscriberService.class).startAndWait();
origin: cdapio/cdap

@Override
protected void startUp() throws Exception {
 if (messagingService instanceof Service) {
  ((Service) messagingService).startAndWait();
 }
 datasetService.startAndWait();
 // It is recommended to initialize log appender after datasetService is started,
 // since log appender instantiates a dataset.
 logAppenderInitializer.initialize();
 LoggingContextAccessor.setLoggingContext(new ServiceLoggingContext(NamespaceId.SYSTEM.getNamespace(),
                                   Constants.Logging.COMPONENT_NAME,
                                   Constants.Service.PREVIEW_HTTP));
 Futures.allAsList(
  applicationLifecycleService.start(),
  programRuntimeService.start(),
  metricsCollectionService.start(),
  programNotificationSubscriberService.start()
 ).get();
}
origin: caskdata/cdap

 @Override
 public MetricsContext load(Map<String, String> key) throws Exception {
  return metricsCollectionService.getContext(key);
 }
});
origin: caskdata/cdap

 ((Service) programScheduler).stopAndWait();
metricsCollectionService.stopAndWait();
programNotificationSubscriberService.stopAndWait();
if (scheduler instanceof Service) {
origin: co.cask.cdap/cdap-unit-test

metricsQueryService.startAndWait();
metricsCollectionService = injector.getInstance(MetricsCollectionService.class);
metricsCollectionService.startAndWait();
programNotificationSubscriberService = injector.getInstance(ProgramNotificationSubscriberService.class);
programNotificationSubscriberService.startAndWait();
origin: co.cask.cdap/cdap-data-fabric

 @Override
 public MetricsContext load(NamespaceId namespaceId) {
  return metricsCollectionService.getContext(getStreamMetricsContext(namespaceId));
 }
});
origin: co.cask.cdap/cdap-standalone

metricsCollectionService.stopAndWait();
metricsQueryService.stopAndWait();
txService.stopAndWait();
origin: cdapio/cdap

txClient = injector.getInstance(TransactionSystemClient.class);
metricsCollectionService = injector.getInstance(MetricsCollectionService.class);
metricsCollectionService.startAndWait();
serviceStore = injector.getInstance(ServiceStore.class);
serviceStore.startAndWait();
origin: cdapio/cdap

 @Override
 public MetricsContext get() {
  MetricsContext context = this.context;
  if (context == null) {
   // The service.getContext already handle concurrent calls, so no need to synchronize here
   this.context = context = serviceProvider.get().getContext(Constants.Metrics.TRANSACTION_MANAGER_CONTEXT);
  }
  return context;
 }
};
origin: co.cask.cdap/cdap-unit-test

metricsCollectionService.stopAndWait();
programNotificationSubscriberService.stopAndWait();
if (scheduler instanceof Service) {
origin: cdapio/cdap

metricsCollectionService.startAndWait();
datasetService.startAndWait();
serviceStore.startAndWait();
origin: co.cask.cdap/cdap-data-fabric

 @Override
 public MetricsContext get() {
  MetricsContext context = this.context;
  if (context == null) {
   // The service.getContext already handle concurrent calls, so no need to synchronize here
   this.context = context = serviceProvider.get().getContext(Constants.Metrics.TRANSACTION_MANAGER_CONTEXT);
  }
  return context;
 }
};
origin: cdapio/cdap

metricsCollectionService.stopAndWait();
metricsQueryService.stopAndWait();
txService.stopAndWait();
origin: co.cask.cdap/cdap-standalone

metricsCollectionService.startAndWait();
datasetService.startAndWait();
serviceStore.startAndWait();
origin: caskdata/cdap

 @Override
 protected Service createService(Set<Integer> topicNumbers) {
  return factory.create(topicNumbers,
             metricsCollectionService.getContext(Constants.Metrics.METRICS_PROCESSOR_CONTEXT), instanceId);
 }
}
co.cask.cdap.api.metricsMetricsCollectionService

Javadoc

Service for collects and publishes metrics.

Most used methods

  • getContext
  • stopAndWait
  • startAndWait
  • start

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (Timer)
  • addToBackStack (FragmentTransaction)
  • startActivity (Activity)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Collectors (java.util.stream)
  • Best plugins for Eclipse
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