Tabnine Logo
StatsProvider.close
Code IndexAdd Tabnine to your IDE (free)

How to use
close
method
in
io.pravega.shared.metrics.StatsProvider

Best Java code snippets using io.pravega.shared.metrics.StatsProvider.close (Showing top 6 results out of 315)

origin: pravega/pravega

@Override
public void close() {
  instance.get().close();
}
origin: pravega/pravega

@Override
protected void shutDown() {
  this.serviceBuilder.close();
  stopBookKeeper();
  val zk = this.zkClient;
  if (zk != null) {
    zk.close();
    this.zkClient = null;
  }
  StatsProvider sp = this.statsProvider;
  if (sp != null) {
    sp.close();
    this.statsProvider = null;
  }
  Runtime.getRuntime().removeShutdownHook(this.stopBookKeeperProcess);
}
origin: pravega/pravega

public void shutdown() {
  if (!this.closed) {
    this.serviceBuilder.close();
    log.info("StreamSegmentService shut down.");
    if (this.listener != null) {
      this.listener.close();
      log.info("PravegaConnectionListener closed.");
    }
    if (this.statsProvider != null) {
      statsProvider.close();
      statsProvider = null;
      log.info("Metrics statsProvider is now closed.");
    }
    if (this.zkClient != null) {
      this.zkClient.close();
      this.zkClient = null;
      log.info("ZooKeeper Client shut down.");
    }
    if (this.segmentStatsFactory != null) {
      segmentStatsFactory.close();
    }
    if (this.serviceConfig.isSecureZK()) {
      ZKTLSUtils.unsetSecureZKClientProperties();
    }
    this.closed = true;
  }
}
origin: pravega/pravega

@After
public void tearDown() throws Exception {
  if (this.statsProvider != null) {
    statsProvider.close();
    statsProvider = null;
    log.info("Metrics statsProvider is now closed.");
  }
  if (this.controllerWrapper != null) {
    this.controllerWrapper.close();
    this.controllerWrapper = null;
  }
  if (this.server != null) {
    this.server.close();
    this.server = null;
  }
  if (this.zkTestServer != null) {
    this.zkTestServer.close();
    this.zkTestServer = null;
  }
}
origin: pravega/pravega

@After
public void tearDown() throws Exception {
  if (this.statsProvider != null) {
    statsProvider.close();
    statsProvider = null;
    log.info("Metrics statsProvider is now closed.");
  }
  ExecutorServiceHelpers.shutdown(executor);
  controllerWrapper.close();
  server.close();
  serviceBuilder.close();
  zkTestServer.close();
}
origin: pravega/pravega

} finally {
  if (statsProvider != null) {
    statsProvider.close();
io.pravega.shared.metricsStatsProviderclose

Javadoc

Close the stats provider.

Popular methods of StatsProvider

  • start
    Initialize the stats provider.
  • createDynamicLogger
    Create a dynamic logger.
  • createStatsLogger
    Return the StatsLogger instance associated with the given scope.

Popular in Java

  • Reading from database using SQL prepared statement
  • startActivity (Activity)
  • getResourceAsStream (ClassLoader)
  • notifyDataSetChanged (ArrayAdapter)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Menu (java.awt)
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • 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