public final class RegistryOperationsFactory extends Object
Each created instance will be returned initialized.
That is, the service will have had Service.init(conf)
applied
to it —possibly after the configuration has been modified to
support the specific binding/security mechanism used
Modifier and Type | Method and Description |
---|---|
static RegistryOperations |
createAnonymousInstance(org.apache.hadoop.conf.Configuration conf)
Create and initialize an anonymous read/write registry operations instance.
|
static RegistryOperations |
createAuthenticatedInstance(org.apache.hadoop.conf.Configuration conf,
String id,
String password)
Create and initialize an operations instance authenticated with write
access via an
id:password pair. |
static RegistryOperations |
createInstance(org.apache.hadoop.conf.Configuration conf)
Create and initialize a registry operations instance.
|
static RegistryOperations |
createInstance(String name,
org.apache.hadoop.conf.Configuration conf)
Create and initialize a registry operations instance.
|
static RegistryOperations |
createKerberosInstance(org.apache.hadoop.conf.Configuration conf,
String jaasContext)
Create and initialize an secure, Kerberos-authenticated instance.
|
public static RegistryOperations createInstance(org.apache.hadoop.conf.Configuration conf)
conf
- configurationorg.apache.hadoop.service.ServiceStateException
- on any failure to initializepublic static RegistryOperations createInstance(String name, org.apache.hadoop.conf.Configuration conf)
name
- name of the instanceconf
- configurationorg.apache.hadoop.service.ServiceStateException
- on any failure to initializepublic static RegistryOperations createAnonymousInstance(org.apache.hadoop.conf.Configuration conf)
conf
- configurationorg.apache.hadoop.service.ServiceStateException
- on any failure to initializepublic static RegistryOperations createKerberosInstance(org.apache.hadoop.conf.Configuration conf, String jaasContext)
conf
- configurationjaasContext
- the JAAS context of the account.org.apache.hadoop.service.ServiceStateException
- on any failure to initializepublic static RegistryOperations createAuthenticatedInstance(org.apache.hadoop.conf.Configuration conf, String id, String password)
id:password
pair.
The instance will have the read access
across the registry, but write access only to that part of the registry
to which it has been give the relevant permissions.conf
- configurationid
- user IDpassword
- passwordorg.apache.hadoop.service.ServiceStateException
- on any failure to initializeIllegalArgumentException
- if an argument is invalidCopyright © 2017 Apache Software Foundation. All Rights Reserved.