|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@InterfaceAudience.Public @InterfaceStability.Evolving public interface RegistryOperations
Registry Operations
Method Summary | |
---|---|
boolean |
addWriteAccessor(String id,
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(String path,
ServiceRecord record,
int flags)
Bind a path in the registry to a service record |
void |
clearWriteAccessors()
Clear all write accessors. |
void |
delete(String path,
boolean recursive)
Delete a path. |
boolean |
exists(String path)
Probe for a path existing. |
List<String> |
list(String path)
List all entries under a registry path, returning the relative names of the entries. |
boolean |
mknode(String path,
boolean createParents)
Create a path. |
ServiceRecord |
resolve(String path)
Resolve the record at a path |
RegistryPathStatus |
stat(String path)
Get the status of a path |
Methods inherited from interface org.apache.hadoop.service.Service |
---|
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, registerServiceListener, start, stop, unregisterServiceListener, waitForServiceToStop |
Method Detail |
---|
boolean mknode(String path, boolean createParents) throws org.apache.hadoop.fs.PathNotFoundException, InvalidPathnameException, 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.
IOException
- Any other IO Exception.void bind(String path, ServiceRecord record, int flags) throws org.apache.hadoop.fs.PathNotFoundException, FileAlreadyExistsException, InvalidPathnameException, IOException
path
- path to service recordrecord
- service record service record to create/updateflags
- bind flags
org.apache.hadoop.fs.PathNotFoundException
- the parent path does not exist
FileAlreadyExistsException
- path exists but create flags
do not include "overwrite"
InvalidPathnameException
- path name is invalid.
IOException
- Any other IO Exception.ServiceRecord resolve(String path) throws org.apache.hadoop.fs.PathNotFoundException, NoRecordException, InvalidRecordException, IOException
path
- path to an entry containing a ServiceRecord
org.apache.hadoop.fs.PathNotFoundException
- path is not in the registry.
NoRecordException
- if there is not a service record
InvalidRecordException
- if there was a service record but it could
not be parsed.
IOException
- Any other IO ExceptionRegistryPathStatus stat(String path) throws org.apache.hadoop.fs.PathNotFoundException, InvalidPathnameException, IOException
path
- path to query
org.apache.hadoop.fs.PathNotFoundException
- path is not in the registry.
InvalidPathnameException
- the path is invalid.
IOException
- Any other IO Exceptionboolean exists(String path) throws IOException
stat(String)
with
any failure downgraded to a
path
- path to query
IOException
List<String> list(String path) throws org.apache.hadoop.fs.PathNotFoundException, InvalidPathnameException, IOException
path
- path to query
org.apache.hadoop.fs.PathNotFoundException
InvalidPathnameException
IOException
void delete(String path, boolean recursive) throws org.apache.hadoop.fs.PathNotFoundException, org.apache.hadoop.fs.PathIsNotEmptyDirectoryException, InvalidPathnameException, IOException
path
- path delete recursivelyrecursive
- recursive flag
org.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.
IOException
- Any other IO Exceptionboolean addWriteAccessor(String id, String pass) throws IOException
id
- ID to usepass
- password
IOException
- on any failure to build the digestvoid clearWriteAccessors()
addWriteAccessor(String, String)
are removed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |