public abstract class HdbReader extends Object
Modifier and Type | Field and Description |
---|---|
static int |
MODE_CORRELATED
Correlate all HdbDataSet to the HdbDataSet which have the lowest number of data
|
static int |
MODE_FILLED
Filling gaps by correlating to the last known value of the HdbDataSet
|
static int |
MODE_IGNORE_ERROR
Extract data and ignore errors (all HdbData which has failed are removed)
|
static int |
MODE_NORMAL
Normal extraction mode
|
Constructor and Description |
---|
HdbReader() |
Modifier and Type | Method and Description |
---|---|
void |
addProgressListener(HdbProgressListener l)
Add a progress listener on this HdbReader
|
void |
checkDates(String startDate,
String stopDate)
Check input dates
|
void |
disableExtraPoint()
Disable extra point lookup
|
abstract void |
disconnect() |
void |
enableExtraPoint()
Enable extra point lookup
|
abstract HdbDataSet |
findErrors(String attName,
String startDate,
String stopDate)
This method finds the errors occurred inside a time interval for the specified attribute
|
abstract String[] |
getAttributeList()
Retrieves the list of all archived attributes (fully qualified name eg: tango://hostname:port/domain/family/member/attname).
|
HdbDataSet[] |
getData(HdbSigInfo[] sigInfos,
String startDate,
String stopDate,
int extractMode)
Fetch data from the database from several attributes.
|
HdbDataSet |
getData(HdbSigInfo sigInfo,
String startDate,
String stopDate)
Fetch data from the database.
|
HdbDataSet[] |
getData(String[] attNames,
String startDate,
String stopDate,
int extractMode)
Fetch data from the database from several attributes.
|
HdbDataSet |
getData(String attName,
String startDate,
String stopDate)
Fetch data from the database.
|
abstract String[] |
getDomains(String host)
Returns the domain list for the specified host.
|
long |
getExtraPointLookupPeriod()
Returns the current extra point lookup period.
|
abstract String[] |
getFamilies(String host,
String domain)
Returns the family list for the specified host/domain.
|
abstract String[] |
getHosts()
Returns the list hostname.
|
abstract String |
getInfo()
Returns information on this connection.
|
abstract HdbSigParam |
getLastParam(HdbSigInfo sigInfo)
Return last known configurations of the specified attribute
|
HdbSigParam |
getLastParam(String attName)
Return last known configurations of the specified attribute
|
abstract String[] |
getMembers(String host,
String domain,
String family)
Returns the member list for the specified host/domain/family.
|
abstract String[] |
getNames(String host,
String domain,
String family,
String member)
Returns the name list for the specified host/domain/family/member.
|
abstract ArrayList<HdbSigParam> |
getParams(HdbSigInfo sigInfo,
String startDate,
String stopDate) |
abstract ArrayList<HdbSigParam> |
getParams(String attName,
String startDate,
String stopDate)
Return history of configurations of the specified attribute
|
abstract HdbSigInfo |
getSigInfo(String attName)
Returns signal info
|
HdbSigInfo |
getSigInfo(String attName,
int queryMode)
Return signal info
|
boolean |
hasProgressListener()
Return true if this reader has a progress listener
|
boolean |
isExtraPointEnabled()
Return true whether extra point lookup is enabled
|
void |
removeProgressListener(HdbProgressListener l)
Remove a progress listener from this HdbReader
|
void |
setExtraPointLookupPeriod(long time)
Sets the extra point lookup period.
|
public static final int MODE_NORMAL
public static final int MODE_IGNORE_ERROR
public static final int MODE_FILLED
public static final int MODE_CORRELATED
public HdbDataSet getData(String attName, String startDate, String stopDate) throws HdbFailed
attName
- The fully qualified tango attribute name (eg: tango://hostname:port/domain/family/member/attname)startDate
- Beginning of the requested time interval (as string eg: "10/07/2014 10:00:00")stopDate
- End of the requested time interval (as string eg: "10/07/2014 12:00:00")HdbFailed
- In case of failurepublic HdbDataSet getData(HdbSigInfo sigInfo, String startDate, String stopDate) throws HdbFailed
sigInfo
- Attribute info structurestartDate
- Beginning of the requested time interval (as string eg: "10/07/2014 10:00:00")stopDate
- End of the requested time interval (as string eg: "10/07/2014 12:00:00")HdbFailed
- In case of failurepublic HdbDataSet[] getData(String[] attNames, String startDate, String stopDate, int extractMode) throws HdbFailed
attNames
- List of fully qualified tango attributes (eg: tango://hostname:port/domain/family/member/attname)startDate
- Beginning of the requested time interval (as string eg: "10/07/2014 10:00:00")stopDate
- End of the requested time interval (as string eg: "10/07/2014 12:00:00")extractMode
- Extraction mode MODE_NORMAL,MODE_IGNORE_ERROR or MODE_CORRELATEDHdbFailed
- In case of failurepublic HdbDataSet[] getData(HdbSigInfo[] sigInfos, String startDate, String stopDate, int extractMode) throws HdbFailed
sigInfos
- List of attribute info structurestartDate
- Beginning of the requested time interval (as string eg: "10/07/2014 10:00:00")stopDate
- End of the requested time interval (as string eg: "10/07/2014 12:00:00")extractMode
- Extraction mode MODE_NORMAL,MODE_IGNORE_ERROR or MODE_CORRELATEDHdbFailed
- In case of failurepublic abstract String[] getAttributeList() throws HdbFailed
HdbFailed
- In case of failurepublic abstract String[] getHosts() throws HdbFailed
HdbFailed
public abstract String[] getDomains(String host) throws HdbFailed
HdbFailed
public abstract String[] getFamilies(String host, String domain) throws HdbFailed
HdbFailed
public abstract String[] getMembers(String host, String domain, String family) throws HdbFailed
HdbFailed
public abstract String[] getNames(String host, String domain, String family, String member) throws HdbFailed
HdbFailed
public abstract HdbSigInfo getSigInfo(String attName) throws HdbFailed
attName
- The fully qualified tango attribute name (eg: tango://hostname:port/domain/family/member/attname)HdbFailed
- In case of failurepublic HdbSigInfo getSigInfo(String attName, int queryMode) throws HdbFailed
attName
- The fully qualified tango attribute name (eg: tango://hostname:port/domain/family/member/attname)queryMode
- Query mode to query config (see HdbSigParam)HdbFailed
- In case of failurepublic abstract ArrayList<HdbSigParam> getParams(String attName, String startDate, String stopDate) throws HdbFailed
attName
- The fully qualified tango attribute name (eg: tango://hostname:port/domain/family/member/attname)startDate
- Beginning of the requested time interval (as string eg: "10/07/2014 10:00:00")stopDate
- End of the requested time interval (as string eg: "10/07/2014 12:00:00")HdbFailed
public abstract ArrayList<HdbSigParam> getParams(HdbSigInfo sigInfo, String startDate, String stopDate) throws HdbFailed
HdbFailed
public HdbSigParam getLastParam(String attName) throws HdbFailed
attName
- The fully qualified tango attribute name (eg: tango://hostname:port/domain/family/member/attname)HdbFailed
public abstract HdbSigParam getLastParam(HdbSigInfo sigInfo) throws HdbFailed
sigInfo
- Signal infoHdbFailed
public abstract HdbDataSet findErrors(String attName, String startDate, String stopDate) throws HdbFailed
attName
- The fully qualified tango attribute name (eg: tango://hostname:port/domain/family/member/attname)startDate
- Beginning of the requested time interval (as string eg: "10/07/2014 10:00:00")stopDate
- End of the requested time interval (as string eg: "10/07/2014 12:00:00")HdbFailed
- In case of failurepublic void setExtraPointLookupPeriod(long time)
time
- Lookup period in secondspublic long getExtraPointLookupPeriod()
public void enableExtraPoint()
public void disableExtraPoint()
public boolean isExtraPointEnabled()
public void checkDates(String startDate, String stopDate) throws HdbFailed
startDate
- Beginning of the requested time interval (as string eg: "10/07/2014 10:00:00")stopDate
- End of the requested time interval (as string eg: "10/07/2014 12:00:00")HdbFailed
public abstract void disconnect()
public abstract String getInfo() throws HdbFailed
HdbFailed
public boolean hasProgressListener()
public void addProgressListener(HdbProgressListener l)
l
- HdbProgressListener to be addedpublic void removeProgressListener(HdbProgressListener l)
l
- HdbProgressListener to be removedCopyright © 2017. All rights reserved.