public class Catalog extends Object
Store.getCatalog()| Modifier and Type | Class and Description |
|---|---|
static class |
Catalog.CatalogException
An exception throw when errors occur when operating on the catalog.
|
| Modifier and Type | Method and Description |
|---|---|
Folder |
find(String folderName)
Find the specified folder by name.
|
Folder |
insert(String folderName)
Insert a new folder into the catalog.
|
List<Folder> |
list()
Return a list of all available folders.The list is not sorted, but Folder
implements Comparable so it can be readily sorted if desired.
|
void |
remove(String folderName)
Remove a folder.
|
public Folder find(String folderName) throws DAQException
folderName - The folder name to search fornull if the folder does not existDAQException - If some other error occurspublic List<Folder> list() throws DAQException
DAQExceptionpublic Folder insert(String folderName) throws Catalog.CatalogException, DAQException
folderName - The name of the new folder to createCatalog.CatalogException - If the folder cannot be created.DAQException - If something else goes wrongpublic void remove(String folderName) throws Catalog.CatalogException, DAQException
folderName - The name of the folder to be removedCatalog.CatalogException - If the folder cannot be removed.DAQException - If something else goes wrongCopyright © 2021 LSST. All rights reserved.