public abstract class AbstractNamespaceClient extends AbstractNamespaceQueryClient implements NamespaceAdmin
Constructor and Description |
---|
AbstractNamespaceClient() |
Modifier and Type | Method and Description |
---|---|
void |
create(NamespaceMeta metadata)
Creates a new namespace.
|
void |
delete(Id.Namespace namespaceId)
Deletes the specified namespace.
|
void |
deleteAll() |
void |
deleteDatasets(Id.Namespace namespaceId)
Deletes all datasets in the specified namespace.
|
void |
updateProperties(Id.Namespace namespaceId,
NamespaceMeta metadata)
Update namespace properties for a given namespace.
|
execute, exists, get, list, resolve
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exists, get, list
public void delete(Id.Namespace namespaceId) throws Exception
NamespaceAdmin
delete
in interface NamespaceAdmin
namespaceId
- the Id.Namespace
of the specified namespaceNamespaceNotFoundException
- if the specified namespace does not existNamespaceCannotBeDeletedException
- if the deletion operation was unsuccessfulException
public void create(NamespaceMeta metadata) throws Exception
NamespaceAdmin
create
in interface NamespaceAdmin
metadata
- the NamespaceMeta
for the new namespace to be createdNamespaceAlreadyExistsException
- if the specified namespace already existsNamespaceCannotBeCreatedException
- if the creation operation was unsuccessfulException
public void updateProperties(Id.Namespace namespaceId, NamespaceMeta metadata) throws Exception
NamespaceAdmin
updateProperties
in interface NamespaceAdmin
namespaceId
- the Id.Namespace
of the namespace to be updatedmetadata
- namespacemeta to updateNotFoundException
- if the specified namespace is not foundException
public void deleteDatasets(Id.Namespace namespaceId) throws Exception
NamespaceAdmin
deleteDatasets
in interface NamespaceAdmin
namespaceId
- the Id.Namespace
of the specified namespaceNotFoundException
- if the specified namespace does not existNamespaceCannotBeDeletedException
- if the deletion operation was unsuccessfulException
Copyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.