java.lang.AutoCloseable, java.io.Closeable, org.apache.hadoop.service.ServiceFSRegistryOperationsService, RegistryAdminService, RegistryOperationsClient, RegistryOperationsService@Public
@Evolving
public interface RegistryOperations
extends org.apache.hadoop.service.Service
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
addWriteAccessor(java.lang.String id,
java.lang.String pass) |
Add a new write access entry to be added to node permissions in all
future write operations of a session connected to a secure registry.
|
void |
bind(java.lang.String path,
ServiceRecord record,
int flags) |
Bind a path in the registry to a service record
|
void |
clearWriteAccessors() |
Clear all write accessors.
|
void |
delete(java.lang.String path,
boolean recursive) |
Delete a path.
|
boolean |
exists(java.lang.String path) |
Probe for a path existing.
|
java.util.List<java.lang.String> |
list(java.lang.String path) |
List all entries under a registry path, returning the relative names
of the entries.
|
boolean |
mknode(java.lang.String path,
boolean createParents) |
Create a path.
|
ServiceRecord |
resolve(java.lang.String path) |
Resolve the record at a path
|
RegistryPathStatus |
stat(java.lang.String path) |
Get the status of a path
|
boolean mknode(java.lang.String path,
boolean createParents)
throws org.apache.hadoop.fs.PathNotFoundException,
InvalidPathnameException,
java.io.IOException
path - path to createcreateParents - also create the parents.org.apache.hadoop.fs.PathNotFoundException - parent path is not in the registry.InvalidPathnameException - path name is invalid.java.io.IOException - Any other IO Exception.void bind(java.lang.String path,
ServiceRecord record,
int flags)
throws org.apache.hadoop.fs.PathNotFoundException,
org.apache.hadoop.fs.FileAlreadyExistsException,
InvalidPathnameException,
java.io.IOException
path - path to service recordrecord - service record service record to create/updateflags - bind flagsorg.apache.hadoop.fs.PathNotFoundException - the parent path does not existorg.apache.hadoop.fs.FileAlreadyExistsException - path exists but create flags
do not include "overwrite"InvalidPathnameException - path name is invalid.java.io.IOException - Any other IO Exception.ServiceRecord resolve(java.lang.String path) throws org.apache.hadoop.fs.PathNotFoundException, NoRecordException, InvalidRecordException, java.io.IOException
path - path to an entry containing a ServiceRecordorg.apache.hadoop.fs.PathNotFoundException - path is not in the registry.NoRecordException - if there is not a service recordInvalidRecordException - if there was a service record but it could
not be parsed.java.io.IOException - Any other IO ExceptionRegistryPathStatus stat(java.lang.String path) throws org.apache.hadoop.fs.PathNotFoundException, InvalidPathnameException, java.io.IOException
path - path to queryorg.apache.hadoop.fs.PathNotFoundException - path is not in the registry.InvalidPathnameException - the path is invalid.java.io.IOException - Any other IO Exceptionboolean exists(java.lang.String path)
throws java.io.IOException
stat(String) with
any failure downgraded to apath - path to queryjava.io.IOExceptionjava.util.List<java.lang.String> list(java.lang.String path)
throws org.apache.hadoop.fs.PathNotFoundException,
InvalidPathnameException,
java.io.IOException
path - path to queryorg.apache.hadoop.fs.PathNotFoundExceptionInvalidPathnameExceptionjava.io.IOExceptionvoid delete(java.lang.String path,
boolean recursive)
throws org.apache.hadoop.fs.PathNotFoundException,
org.apache.hadoop.fs.PathIsNotEmptyDirectoryException,
InvalidPathnameException,
java.io.IOException
path - path delete recursivelyrecursive - recursive flagorg.apache.hadoop.fs.PathNotFoundException - path is not in the registry.InvalidPathnameException - the path is invalid.org.apache.hadoop.fs.PathIsNotEmptyDirectoryException - path has child entries, but
recursive is false.java.io.IOException - Any other IO Exceptionboolean addWriteAccessor(java.lang.String id,
java.lang.String pass)
throws java.io.IOException
id - ID to usepass - passwordjava.io.IOException - on any failure to build the digestvoid clearWriteAccessors()
addWriteAccessor(String, String)
are removed.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.