Tabnine Logo
CuratorService.getRegistrySecurity
Code IndexAdd Tabnine to your IDE (free)

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

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

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

/**
 * Clear all write accessors.
 */
public void clearWriteAccessors() {
 getRegistrySecurity().resetDigestACLs();
}
origin: io.hops/hadoop-yarn-registry

/**
 * Clear all write accessors
 */
public void clearWriteAccessors() {
 getRegistrySecurity().resetDigestACLs();
}
origin: io.hops/hadoop-yarn-registry

/**
 * Add a new write access entry for all future write operations.
 * @param id ID to use
 * @param pass password
 * @throws IOException on any failure to build the digest
 */
public boolean addWriteAccessor(String id, String pass) throws IOException {
 RegistrySecurity security = getRegistrySecurity();
 ACL digestACL = new ACL(ZooDefs.Perms.ALL,
   security.toDigestId(security.digest(id, pass)));
 return security.addDigestACL(digestACL);
}
origin: org.apache.hadoop/hadoop-yarn-registry

/**
 * Add a new write access entry for all future write operations.
 *
 * @param id   ID to use
 * @param pass password
 * @throws IOException on any failure to build the digest
 */
public boolean addWriteAccessor(String id, String pass) throws IOException {
 RegistrySecurity security = getRegistrySecurity();
 ACL digestACL = new ACL(ZooDefs.Perms.ALL,
   security.toDigestId(security.digest(id, pass)));
 return security.addDigestACL(digestACL);
}
org.apache.hadoop.registry.client.impl.zkCuratorServicegetRegistrySecurity

Javadoc

Get the registry security helper

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,
  • getServiceState,
  • init,
  • isInState

Popular in Java

  • Reading from database using SQL prepared statement
  • getSystemService (Context)
  • putExtra (Intent)
  • setRequestProperty (URLConnection)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JList (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Runner (org.openjdk.jmh.runner)
  • From CI to AI: The AI layer in your organization
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