congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
CuratorService.zkStat
Code IndexAdd Tabnine to your IDE (free)

How to use
zkStat
method
in
org.apache.hadoop.registry.client.impl.zk.CuratorService

Best Java code snippets using org.apache.hadoop.registry.client.impl.zk.CuratorService.zkStat (Showing top 4 results out of 315)

origin: org.apache.hadoop/hadoop-yarn-registry

/**
 * Verify a path exists.
 *
 * @param path path of operation
 * @throws PathNotFoundException if the path is absent
 * @throws IOException
 */
public String zkPathMustExist(String path) throws IOException {
 zkStat(path);
 return path;
}
origin: io.hops/hadoop-yarn-registry

/**
 * Verify a path exists
 * @param path path of operation
 * @throws PathNotFoundException if the path is absent
 * @throws IOException
 */
public String zkPathMustExist(String path) throws IOException {
 zkStat(path);
 return path;
}
origin: io.hops/hadoop-yarn-registry

/**
 * Probe for a path existing
 * @param path path of operation
 * @return true if the path was visible from the ZK server
 * queried.
 * @throws IOException on any exception other than
 * {@link PathNotFoundException}
 */
public boolean zkPathExists(String path) throws IOException {
 checkServiceLive();
 try {
  // if zkStat(path) returns without throwing an exception, the return value
  // is guaranteed to be not null
  zkStat(path);
  return true;
 } catch (PathNotFoundException e) {
  return false;
 } catch (IOException e) {
  throw e;
 }
}
origin: org.apache.hadoop/hadoop-yarn-registry

/**
 * Probe for a path existing.
 *
 * @param path path of operation
 * @return true if the path was visible from the ZK server
 * queried.
 * @throws IOException on any exception other than
 *                     {@link PathNotFoundException}
 */
public boolean zkPathExists(String path) throws IOException {
 checkServiceLive();
 try {
  // if zkStat(path) returns without throwing an exception, the return value
  // is guaranteed to be not null
  zkStat(path);
  return true;
 } catch (PathNotFoundException e) {
  return false;
 } catch (IOException e) {
  throw e;
 }
}
org.apache.hadoop.registry.client.impl.zkCuratorServicezkStat

Javadoc

Stat the file

Popular methods of CuratorService

  • zkPathExists
    Probe for a path existing
  • bindingDiagnosticDetails
    Get the binding diagnostics
  • dumpPath
    Return a path dumper instance which can do a full dump of the registry tree in its toString() operat
  • zkCreate
    Create a path with given data. byte[0] is used for a path without data
  • zkMkPath
    Create a directory. It is not an error if it already exists
  • zkUpdate
    Update the data for a path
  • <init>
    Construct the service.
  • addService
  • buildConnectionString
    Override point: get the connection string used to connect to the ZK service
  • buildSecurityDiagnostics
    Build the security diagnostics string
  • checkServiceLive
    Internal check that a service is in the live state
  • createCurator
    Create a new curator instance off the root path; using configuration options provided in the service
  • checkServiceLive,
  • createCurator,
  • createEnsembleProvider,
  • createFullPath,
  • getConfig,
  • getName,
  • getRegistrySecurity,
  • getServiceState,
  • init,
  • isInState

Popular in Java

  • Reactive rest calls using spring rest template
  • setScale (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • runOnUiThread (Activity)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top Sublime Text 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