public class ELogConnection extends Object implements Closeable
| Constructor and Description |
|---|
ELogConnection(String baseURL)
Create a new electronic logbook connection.
|
ELogConnection(URI baseURI)
Create a new electronic logbook connection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
List<String> |
getCategories()
Get the list of categories available for this log book
|
List<String> |
getTags()
Get the list of tags available for this log book.
|
ElogTransactionResult |
postEntryToElog(ElogEntry entry)
Post an entry to the log book.
|
List<ElogEntrySummary> |
search(String query)
Get the list of entries matching a query for this log book
|
public ELogConnection(String baseURL) throws URISyntaxException
baseURL - The base URL for the logbook, e.g.
"http://dbweb0.fnal.gov/ECL/lsst_camera"URISyntaxException - If the baseURL is invalidpublic ELogConnection(URI baseURI)
baseURI - The URI for the logbook.public List<String> getCategories() throws IOException
IOException - if an error occurs, or the method returns a status
other than 200 (OK)public List<String> getTags() throws IOException
IOException - if an error occurs, or the method returns a status
other than 200 (OK)public ElogTransactionResult postEntryToElog(ElogEntry entry) throws IOException
entry - The entry to postIOException - If an error occurspublic List<ElogEntrySummary> search(String query) throws IOException
query - The query. Caller is responsible for knowing the language.IOException - if an error occurs, or the method returns a status
other than 200 (OK)public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2017 LSST. All rights reserved.