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.
|
public ELogConnection(String baseURL) throws URISyntaxException
baseURL - The base URL for the logbook, e.g.
"http://dbweb0.fnal.gov:8080/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 void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2016 LSST. All rights reserved.