org.autoplot.hapi.HapiDataSource

HAPI data source uses transactions with HAPI servers to collect data.

HapiDataSource( java.net.URI uri )


FILL_VALUE


cacheFolder

cacheFolder( java.net.URL url, String id ) → File

return the folder containing data for this id.

Parameters

url - the hapi URL, such as http://jfaden.net/HapiServerDemo/hapi
id - the ID, such as "Iowa City Conditions"

Returns:

the folder containing the cache.

[search for examples] [view on GitHub] [view on old javadoc]


getDataSet

getDataSet( ProgressMonitor monitor ) → QDataSet

Parameters

monitor - a ProgressMonitor

Returns:

org.das2.qds.QDataSet

[search for examples] [view on GitHub] [view on old javadoc]


getDataSetViaBinary

getDataSetViaBinary( int totalFields, ProgressMonitor monitor, java.net.URL url, org.autoplot.hapi.HapiDataSource.ParamDescription[] pds, DatumRange tr, int nparam, int[] nfields, String useCacheUriParam ) → QDataSet

read the interval using binary.

Parameters

totalFields - an int
monitor - a ProgressMonitor
url - an URL
pds - an org.autoplot.hapi.HapiDataSource.ParamDescription[]
tr - a DatumRange
nparam - an int
nfields - an int[]
useCacheUriParam - a String

Returns:

a QDataSet

[search for examples] [view on GitHub] [view on old javadoc]


getDataSetViaCsv

getDataSetViaCsv( int totalFields, ProgressMonitor monitor, java.net.URL url, org.autoplot.hapi.HapiDataSource.ParamDescription[] pds, DatumRange tr, int nparam, int[] nfields, String useCacheUriParam ) → QDataSet

read the interval using CSV.

Parameters

totalFields - an int
monitor - a ProgressMonitor
url - an URL
pds - an org.autoplot.hapi.HapiDataSource.ParamDescription[]
tr - a DatumRange
nparam - an int
nfields - an int[]
useCacheUriParam - a String

Returns:

a QDataSet

[search for examples] [view on GitHub] [view on old javadoc]


getHapiCache

getHapiCache( ) → String

return the local folder of the cache for HAPI data. This will end with a slash.

Returns:

the local folder of the cache for HAPI data.

[search for examples] [view on GitHub] [view on old javadoc]


getParameterDescriptions

getParameterDescriptions( JSONObject doc ) → ParamDescription

Parameters

doc - a JSONObject

Returns:

org.autoplot.hapi.HapiDataSource.ParamDescription[]

[search for examples] [view on GitHub] [view on old javadoc]


printCacheStats

printCacheStats( ) → void

print the cache stats.

Returns:

void (returns nothing)

See Also:

https://sourceforge.net/p/autoplot/bugs/1996/


[search for examples] [view on GitHub] [view on old javadoc]