public class ServerTsDB extends java.lang.Object implements RemoteTsDB
Constructor and Description |
---|
ServerTsDB(TsDB tsdb) |
Modifier and Type | Method and Description |
---|---|
TimestampSeries |
cache(java.lang.String streamName,
java.lang.String[] columnNames,
AggregationInterval aggregationInterval) |
java.lang.String[] |
cacheStorageGetStreamNames() |
void |
clearData() |
Pair<java.lang.Boolean,java.lang.String[]> |
console_comand_get_output(long commandThreadId) |
long |
execute_console_command(java.lang.String input_line) |
java.lang.String |
get_tubedb_version() |
java.lang.String[] |
getBaseSchema(java.lang.String[] rawSchema) |
java.lang.String[] |
getCacheSchemaNames(java.lang.String streamName) |
java.lang.String[] |
getGeneralStationLongNames(java.lang.String regionName) |
GeneralStationInfo[] |
getGeneralStations() |
GeneralStationInfo[] |
getGeneralStationsOfRegion(java.lang.String regionName) |
java.lang.String[] |
getInternalStoredStationNames() |
LoggerType |
getLoggerType(java.lang.String loggerTypeName) |
LoggerType[] |
getLoggerTypes() |
java.lang.String[] |
getPlotIDsByGeneralStationByLongName(java.lang.String longName) |
PlotInfo[] |
getPlots() |
java.lang.String[] |
getPlotStations(java.lang.String plotID) |
java.util.ArrayList<PlotStatus> |
getPlotStatuses() |
java.util.ArrayList<PlotStatus> |
getPlotStatusesOfGeneralStation(java.lang.String generalStationName) |
java.util.ArrayList<PlotStatus> |
getPlotStatusesOfRegion(java.lang.String regionName) |
java.util.ArrayList<TimestampInterval<java.lang.String>> |
getPlotTimeSpans() |
java.util.ArrayList<TimestampInterval<java.lang.String>> |
getPlotTimeSpansOfGeneralStation(java.lang.String generalStationName) |
java.util.ArrayList<TimestampInterval<java.lang.String>> |
getPlotTimeSpansOfRegion(java.lang.String regionName) |
Region |
getRegionByLongName(java.lang.String longName) |
Region |
getRegionByName(java.lang.String name) |
Region |
getRegionByPlot(java.lang.String plotID) |
java.lang.String[] |
getRegionLongNames() |
Region[] |
getRegions() |
Sensor |
getSensor(java.lang.String sensorName) |
java.lang.String[] |
getSensorNamesOfGeneralStationWithVirtual(java.lang.String generalStationName) |
java.lang.String[] |
getSensorNamesOfPlotWithVirtual(java.lang.String plotID)
plotID format:
for plot or virtual plot: PLOT_ID for virtual plot of one station: PLOT_ID:STATION_ID for one station: STATION_ID |
Sensor[] |
getSensors() |
SourceEntry[] |
getSourceCatalogEntries() |
java.lang.String |
getStationLoggerTypeName(java.lang.String stationName) |
java.lang.String[] |
getStationNames() |
StationInfo[] |
getStations() |
TimeSeriesMask |
getTimeSeriesMask(java.lang.String stationName,
java.lang.String sensorName) |
java.lang.String[] |
getValidSchema(java.lang.String plotID,
java.lang.String[] sensorNames) |
java.lang.String[] |
getValidSchemaWithVirtualSensors(java.lang.String plotID,
java.lang.String[] sensorNames) |
VirtualPlotInfo |
getVirtualPlot(java.lang.String plotID) |
VirtualPlotInfo[] |
getVirtualPlots() |
void |
insertDataRows(java.lang.String stationName,
java.lang.String[] sensorNames,
java.util.Collection<DataRow> dataRows) |
void |
insertOneValue(java.lang.String stationName,
java.lang.String sensorName,
int timestamp,
float value) |
void |
insertSourceCatalogEntry(SourceEntry sourceEntry) |
TimestampSeries |
plot(java.lang.String queryType,
java.lang.String plotID,
java.lang.String[] columnNames,
AggregationInterval aggregationInterval,
DataQuality dataQuality,
boolean interpolated,
java.lang.Long start,
java.lang.Long end) |
TimestampSeries |
plotQuartile(java.lang.String plotID,
java.lang.String[] columnNames,
AggregationInterval aggregationInterval,
DataQuality dataQuality,
boolean interpolated,
java.lang.Long start,
java.lang.Long end) |
DataEntry[] |
readRawData(java.lang.String stationName,
java.lang.String sensorName) |
TimestampSeries |
readRawData(java.lang.String stationName,
java.lang.String[] sensorNames) |
void |
setTimeSeriesMask(java.lang.String stationName,
java.lang.String sensorName,
TimeSeriesMask timeSeriesMask) |
java.lang.String[] |
supplementSchema(java.lang.String[] schema,
java.lang.String[] availableSchema) |
public ServerTsDB(TsDB tsdb) throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String[] getSensorNamesOfPlotWithVirtual(java.lang.String plotID)
RemoteTsDB
getSensorNamesOfPlotWithVirtual
in interface RemoteTsDB
public java.lang.String[] getSensorNamesOfGeneralStationWithVirtual(java.lang.String generalStationName)
getSensorNamesOfGeneralStationWithVirtual
in interface RemoteTsDB
public Sensor[] getSensors()
getSensors
in interface RemoteTsDB
public Sensor getSensor(java.lang.String sensorName)
getSensor
in interface RemoteTsDB
public java.lang.String[] getBaseSchema(java.lang.String[] rawSchema)
getBaseSchema
in interface RemoteTsDB
public java.lang.String[] getCacheSchemaNames(java.lang.String streamName)
getCacheSchemaNames
in interface RemoteTsDB
public java.lang.String[] getValidSchema(java.lang.String plotID, java.lang.String[] sensorNames)
getValidSchema
in interface RemoteTsDB
public java.lang.String[] getValidSchemaWithVirtualSensors(java.lang.String plotID, java.lang.String[] sensorNames)
getValidSchemaWithVirtualSensors
in interface RemoteTsDB
public java.lang.String[] supplementSchema(java.lang.String[] schema, java.lang.String[] availableSchema)
supplementSchema
in interface RemoteTsDB
public Region[] getRegions()
getRegions
in interface RemoteTsDB
public Region getRegionByName(java.lang.String name)
getRegionByName
in interface RemoteTsDB
public java.lang.String[] getRegionLongNames()
getRegionLongNames
in interface RemoteTsDB
public Region getRegionByLongName(java.lang.String longName)
getRegionByLongName
in interface RemoteTsDB
public Region getRegionByPlot(java.lang.String plotID)
getRegionByPlot
in interface RemoteTsDB
public GeneralStationInfo[] getGeneralStations()
getGeneralStations
in interface RemoteTsDB
public GeneralStationInfo[] getGeneralStationsOfRegion(java.lang.String regionName)
getGeneralStationsOfRegion
in interface RemoteTsDB
public java.lang.String[] getGeneralStationLongNames(java.lang.String regionName)
getGeneralStationLongNames
in interface RemoteTsDB
public PlotInfo[] getPlots()
getPlots
in interface RemoteTsDB
public StationInfo[] getStations()
getStations
in interface RemoteTsDB
public java.lang.String getStationLoggerTypeName(java.lang.String stationName) throws java.rmi.RemoteException
getStationLoggerTypeName
in interface RemoteTsDB
java.rmi.RemoteException
public java.lang.String[] getPlotStations(java.lang.String plotID)
getPlotStations
in interface RemoteTsDB
public VirtualPlotInfo[] getVirtualPlots()
getVirtualPlots
in interface RemoteTsDB
public VirtualPlotInfo getVirtualPlot(java.lang.String plotID)
getVirtualPlot
in interface RemoteTsDB
public java.lang.String[] getStationNames()
getStationNames
in interface RemoteTsDB
public java.lang.String[] cacheStorageGetStreamNames()
cacheStorageGetStreamNames
in interface RemoteTsDB
public java.lang.String[] getPlotIDsByGeneralStationByLongName(java.lang.String longName)
getPlotIDsByGeneralStationByLongName
in interface RemoteTsDB
public java.util.ArrayList<TimestampInterval<java.lang.String>> getPlotTimeSpans()
getPlotTimeSpans
in interface RemoteTsDB
public java.util.ArrayList<TimestampInterval<java.lang.String>> getPlotTimeSpansOfGeneralStation(java.lang.String generalStationName) throws java.rmi.RemoteException
getPlotTimeSpansOfGeneralStation
in interface RemoteTsDB
java.rmi.RemoteException
public java.util.ArrayList<TimestampInterval<java.lang.String>> getPlotTimeSpansOfRegion(java.lang.String regionName) throws java.rmi.RemoteException
getPlotTimeSpansOfRegion
in interface RemoteTsDB
java.rmi.RemoteException
public java.util.ArrayList<PlotStatus> getPlotStatuses()
getPlotStatuses
in interface RemoteTsDB
public java.util.ArrayList<PlotStatus> getPlotStatusesOfGeneralStation(java.lang.String generalStationName)
getPlotStatusesOfGeneralStation
in interface RemoteTsDB
public java.util.ArrayList<PlotStatus> getPlotStatusesOfRegion(java.lang.String regionName)
getPlotStatusesOfRegion
in interface RemoteTsDB
public LoggerType[] getLoggerTypes()
getLoggerTypes
in interface RemoteTsDB
public LoggerType getLoggerType(java.lang.String loggerTypeName)
getLoggerType
in interface RemoteTsDB
public SourceEntry[] getSourceCatalogEntries()
getSourceCatalogEntries
in interface RemoteTsDB
public long execute_console_command(java.lang.String input_line) throws java.rmi.RemoteException
execute_console_command
in interface RemoteTsDB
java.rmi.RemoteException
public Pair<java.lang.Boolean,java.lang.String[]> console_comand_get_output(long commandThreadId) throws java.rmi.RemoteException
console_comand_get_output
in interface RemoteTsDB
java.rmi.RemoteException
public TimestampSeries plot(java.lang.String queryType, java.lang.String plotID, java.lang.String[] columnNames, AggregationInterval aggregationInterval, DataQuality dataQuality, boolean interpolated, java.lang.Long start, java.lang.Long end)
plot
in interface RemoteTsDB
public TimestampSeries plotQuartile(java.lang.String plotID, java.lang.String[] columnNames, AggregationInterval aggregationInterval, DataQuality dataQuality, boolean interpolated, java.lang.Long start, java.lang.Long end)
plotQuartile
in interface RemoteTsDB
public TimestampSeries cache(java.lang.String streamName, java.lang.String[] columnNames, AggregationInterval aggregationInterval)
cache
in interface RemoteTsDB
public TimeSeriesMask getTimeSeriesMask(java.lang.String stationName, java.lang.String sensorName)
getTimeSeriesMask
in interface RemoteTsDB
public void setTimeSeriesMask(java.lang.String stationName, java.lang.String sensorName, TimeSeriesMask timeSeriesMask)
setTimeSeriesMask
in interface RemoteTsDB
public java.lang.String get_tubedb_version() throws java.rmi.RemoteException
get_tubedb_version
in interface RemoteTsDB
java.rmi.RemoteException
public void clearData() throws java.rmi.RemoteException
clearData
in interface RemoteTsDB
java.rmi.RemoteException
public void insertOneValue(java.lang.String stationName, java.lang.String sensorName, int timestamp, float value) throws java.rmi.RemoteException
insertOneValue
in interface RemoteTsDB
java.rmi.RemoteException
public java.lang.String[] getInternalStoredStationNames() throws java.rmi.RemoteException
getInternalStoredStationNames
in interface RemoteTsDB
java.rmi.RemoteException
public DataEntry[] readRawData(java.lang.String stationName, java.lang.String sensorName) throws java.rmi.RemoteException
readRawData
in interface RemoteTsDB
java.rmi.RemoteException
public TimestampSeries readRawData(java.lang.String stationName, java.lang.String[] sensorNames) throws java.rmi.RemoteException
readRawData
in interface RemoteTsDB
java.rmi.RemoteException
public void insertDataRows(java.lang.String stationName, java.lang.String[] sensorNames, java.util.Collection<DataRow> dataRows) throws java.rmi.RemoteException
insertDataRows
in interface RemoteTsDB
java.rmi.RemoteException
public void insertSourceCatalogEntry(SourceEntry sourceEntry) throws java.rmi.RemoteException
insertSourceCatalogEntry
in interface RemoteTsDB
java.rmi.RemoteException