public class JrdsDataAdapter extends HttpDataAdapterBase<java.lang.Double,CsvDecoder<java.lang.Double>>
DataAdapter for JRDS.| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
ENCODING_PARAM_NAME |
static java.lang.String |
JRDS_FILTER |
static java.lang.String |
JRDS_TREE |
protected static java.lang.String |
TREE_VIEW_TAB_PARAM_NAME |
protected static java.lang.String |
ZONE_ID_PARAM_NAME |
BASE_ADDRESS_PARAM_NAMEDEFAULT_CACHE_SIZEclosed| Constructor and Description |
|---|
JrdsDataAdapter()
Default constructor
|
JrdsDataAdapter(java.net.URL baseURL,
java.time.ZoneId zoneId,
java.lang.String encoding,
JrdsTreeViewTab treeViewTab,
java.lang.String filter)
Initializes a new instance of the
JrdsDataAdapter class. |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected java.net.URI |
craftFetchUri(java.lang.String path,
java.time.Instant begin,
java.time.Instant end) |
java.util.Collection<java.lang.String> |
discoverFilters() |
static JrdsDataAdapter |
fromUrl(java.lang.String address,
java.time.ZoneId zoneId,
JrdsTreeViewTab treeViewTab,
java.lang.String filter)
Builds a new instance of the
JrdsDataAdapter class from the provided parameters. |
javafx.scene.control.TreeItem<TimeSeriesBinding<java.lang.Double>> |
getBindingTree()
Return a hierarchical view of all the individual bindings exposed by the underlying source.
|
CsvDecoder<java.lang.Double> |
getDecoder()
Gets the
Decoder used to produce TimeSeriesProcessor from the source. |
java.lang.String |
getEncoding()
Gets the encoding used to decode textual data sent by the source.
|
java.util.Map<java.lang.String,java.lang.String> |
getParams()
Returns a map of all parameters required to establish a connection to the underlying data source
|
java.lang.String |
getSourceName()
Gets the name of the source.
|
java.time.ZoneId |
getTimeZoneId()
Gets the id of the time zone used to record dates in the source.
|
void |
loadParams(java.util.Map<java.lang.String,java.lang.String> params)
Sets the parameters required to establish a connection to the underlying data source
|
boolean |
ping()
Pings the data source
|
craftRequestUri, craftRequestUri, createSslCustomContext, doHttpGet, getBaseAddress, httpClientFactory, onCacheMiss, setBaseAddressfetchRawDatafetchDecodedData, getId, isClosed, onStart, setId, toString, validateParameter, validateParameterNullitypublic static final java.lang.String JRDS_FILTER
public static final java.lang.String JRDS_TREE
protected static final java.lang.String ENCODING_PARAM_NAME
protected static final java.lang.String ZONE_ID_PARAM_NAME
protected static final java.lang.String TREE_VIEW_TAB_PARAM_NAME
public JrdsDataAdapter()
throws DataAdapterException
DataAdapterExceptionpublic JrdsDataAdapter(java.net.URL baseURL,
java.time.ZoneId zoneId,
java.lang.String encoding,
JrdsTreeViewTab treeViewTab,
java.lang.String filter)
throws DataAdapterException
JrdsDataAdapter class.zoneId - the id of the time zone used to record dates.encoding - the encoding used by the download servlet.treeViewTab - the filter to apply to the tree viewDataAdapterExceptionpublic static JrdsDataAdapter fromUrl(java.lang.String address, java.time.ZoneId zoneId, JrdsTreeViewTab treeViewTab, java.lang.String filter) throws DataAdapterException
JrdsDataAdapter class from the provided parameters.address - the URL to the JRDS webapp.zoneId - the id of the time zone used to record dates.JrdsDataAdapter class.DataAdapterExceptionpublic javafx.scene.control.TreeItem<TimeSeriesBinding<java.lang.Double>> getBindingTree() throws DataAdapterException
DataAdaptergetBindingTree in class DataAdapter<java.lang.Double,CsvDecoder<java.lang.Double>>DataAdapterException - if an error occurs while retrieving bindings.protected java.net.URI craftFetchUri(java.lang.String path,
java.time.Instant begin,
java.time.Instant end)
throws DataAdapterException
craftFetchUri in class HttpDataAdapterBase<java.lang.Double,CsvDecoder<java.lang.Double>>DataAdapterExceptionpublic java.lang.String getSourceName()
DataAdaptergetSourceName in class DataAdapter<java.lang.Double,CsvDecoder<java.lang.Double>>public java.util.Map<java.lang.String,java.lang.String> getParams()
DataAdaptergetParams in class HttpDataAdapterBase<java.lang.Double,CsvDecoder<java.lang.Double>>public void loadParams(java.util.Map<java.lang.String,java.lang.String> params)
throws DataAdapterException
DataAdapterloadParams in class HttpDataAdapterBase<java.lang.Double,CsvDecoder<java.lang.Double>>params - the parameters required to establish a connection to the underlying data sourceDataAdapterExceptionpublic boolean ping()
DataAdapterping in class DataAdapter<java.lang.Double,CsvDecoder<java.lang.Double>>public java.lang.String getEncoding()
DataAdaptergetEncoding in class DataAdapter<java.lang.Double,CsvDecoder<java.lang.Double>>public java.time.ZoneId getTimeZoneId()
DataAdaptergetTimeZoneId in class DataAdapter<java.lang.Double,CsvDecoder<java.lang.Double>>public CsvDecoder<java.lang.Double> getDecoder()
DataAdapterDecoder used to produce TimeSeriesProcessor from the source.getDecoder in class DataAdapter<java.lang.Double,CsvDecoder<java.lang.Double>>Decoder used to produce TimeSeriesProcessor from the source.public void close()
close in interface java.lang.AutoCloseableclose in class HttpDataAdapterBase<java.lang.Double,CsvDecoder<java.lang.Double>>public java.util.Collection<java.lang.String> discoverFilters()
throws DataAdapterException,
java.net.URISyntaxException
DataAdapterExceptionjava.net.URISyntaxExceptionCopyright © 2018 Frederic Thevenet. All rights reserved.