public class MySQLSchema extends HdbReader
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_DB_PORT |
static String |
DEFAULT_DB_URL_PREFIX |
MODE_CORRELATED, MODE_FILLED, MODE_IGNORE_ERROR, MODE_NORMAL
Constructor and Description |
---|
MySQLSchema(String host,
String db,
String user,
String passwd,
short port)
Connects to a MySQL HDB.
|
Modifier and Type | Method and Description |
---|---|
void |
disconnect() |
HdbDataSet |
findErrors(String attName,
String start_date,
String stop_date)
This method finds the errors occurred inside a time interval for the specified attribute
|
String[] |
getAttributeList()
Retrieves the list of all archived attributes (fully qualified name eg: tango://hostname:port/domain/family/member/attname).
|
String[] |
getDomains(String host)
Returns the domain list for the specified host.
|
String[] |
getFamilies(String host,
String domain)
Returns the family list for the specified host/domain.
|
String[] |
getHosts()
Returns the list hostname.
|
String |
getInfo()
Returns information on this connection.
|
HdbSigParam |
getLastParam(HdbSigInfo sigInfo)
Return last known configurations of the specified attribute
|
String[] |
getMembers(String host,
String domain,
String family)
Returns the member list for the specified host/domain/family.
|
String[] |
getNames(String host,
String domain,
String family,
String member)
Returns the name list for the specified host/domain/family/member.
|
ArrayList<HdbSigParam> |
getParams(HdbSigInfo sigInfo,
String start_date,
String stop_date) |
ArrayList<HdbSigParam> |
getParams(String attName,
String start_date,
String stop_date)
Return history of configurations of the specified attribute
|
HdbSigInfo |
getSigInfo(String attName)
Returns signal info
|
addProgressListener, checkDates, disableExtraPoint, enableExtraPoint, getData, getData, getData, getData, getExtraPointLookupPeriod, getLastParam, getSigInfo, hasProgressListener, isExtraPointEnabled, removeProgressListener, setExtraPointLookupPeriod
public static final String DEFAULT_DB_URL_PREFIX
public static final int DEFAULT_DB_PORT
public MySQLSchema(String host, String db, String user, String passwd, short port) throws HdbFailed
host
- MySQL hostnamedb
- Database name (default is "hdb")user
- MySQL user namepasswd
- MySQL user passwordport
- MySQL databse port (pass 0 for default Mysql port)HdbFailed
- in case of failurepublic void disconnect()
disconnect
in class HdbReader
public String getInfo() throws HdbFailed
HdbReader
public String[] getAttributeList() throws HdbFailed
HdbReader
getAttributeList
in class HdbReader
HdbFailed
- In case of failurepublic String[] getHosts() throws HdbFailed
HdbReader
public String[] getDomains(String host) throws HdbFailed
HdbReader
getDomains
in class HdbReader
HdbFailed
public String[] getFamilies(String host, String domain) throws HdbFailed
HdbReader
getFamilies
in class HdbReader
HdbFailed
public String[] getMembers(String host, String domain, String family) throws HdbFailed
HdbReader
getMembers
in class HdbReader
HdbFailed
public String[] getNames(String host, String domain, String family, String member) throws HdbFailed
HdbReader
public HdbSigInfo getSigInfo(String attName) throws HdbFailed
HdbReader
getSigInfo
in class HdbReader
attName
- The fully qualified tango attribute name (eg: tango://hostname:port/domain/family/member/attname)HdbFailed
- In case of failurepublic HdbSigParam getLastParam(HdbSigInfo sigInfo) throws HdbFailed
HdbReader
getLastParam
in class HdbReader
sigInfo
- Signal infoHdbFailed
public ArrayList<HdbSigParam> getParams(String attName, String start_date, String stop_date) throws HdbFailed
HdbReader
getParams
in class HdbReader
attName
- The fully qualified tango attribute name (eg: tango://hostname:port/domain/family/member/attname)start_date
- Beginning of the requested time interval (as string eg: "10/07/2014 10:00:00")stop_date
- End of the requested time interval (as string eg: "10/07/2014 12:00:00")HdbFailed
public ArrayList<HdbSigParam> getParams(HdbSigInfo sigInfo, String start_date, String stop_date) throws HdbFailed
public HdbDataSet findErrors(String attName, String start_date, String stop_date) throws HdbFailed
HdbReader
findErrors
in class HdbReader
attName
- The fully qualified tango attribute name (eg: tango://hostname:port/domain/family/member/attname)start_date
- Beginning of the requested time interval (as string eg: "10/07/2014 10:00:00")stop_date
- End of the requested time interval (as string eg: "10/07/2014 12:00:00")HdbFailed
- In case of failureCopyright © 2017. All rights reserved.