@Path(value="/")
public interface CaveRepositoryService
| Modifier and Type | Method and Description |
|---|---|
CaveRepository |
create(String name,
boolean scan)
Create a Cave repository.
|
CaveRepository |
create(String name,
String location,
boolean scan)
Create a Cave repository.
|
void |
destroy(String name)
Destroy a Cave repository, including the storage.
|
CaveRepository[] |
getRepositories()
Get the list of all Cave repositories.
|
CaveRepository |
getRepository(String name)
Get a Cave repository identified by the given name.
|
void |
install(String name)
Install a Cave repository into the OBR service.
|
void |
remove(String name)
Remove a Cave repository from the repositories registry.
|
void |
uninstall(String name)
Uninstall a Cave repository from the OBR service.
|
CaveRepository create(String name, boolean scan) throws Exception
name - the name of the repositoryscan - if true, the repository is scanned at creation time, and the OBR metadata are created.Exception - in case of creation failure.CaveRepository create(String name, String location, boolean scan) throws Exception
name - the name of the repository.location - the storage location of the repository.scan - if true, the repository is scanned at creation time, and the OBR metadata are created.Exception - in case of creation failure.void uninstall(String name) throws Exception
name - the name of the repository.Exception - in case of uninstall failure.void remove(String name) throws Exception
name - the name of the repository.Exception - in case of remove failure.void destroy(String name) throws Exception
name - the name of the repository.Exception - incase of remove failure.void install(String name) throws Exception
name - the name of the Cave repository.Exception - in case of registration failure.@Path(value="/repositories") CaveRepository[] getRepositories()
@Path(value="/repositories/{name}")
CaveRepository getRepository(String name)
name - the name of the Cave repository.Copyright © 2014 The Apache Software Foundation. All Rights Reserved.