fr.esrf.TangoApi
Class DbServer
java.lang.Object
|
+--fr.esrf.TangoApi.DbServer
- public class DbServer
- extends java.lang.Object
Class Description:
This class manage database connection for Tango server.
- Author:
- verdier
Constructor Summary |
DbServer(java.lang.String servname)
DbServer constructor. |
Method Summary |
java.lang.String[] |
get_device_class_list()
Query the database for server devices and classes. |
java.lang.String[] |
get_device_name(java.lang.String classname)
Query the database for a list of devices served by the specified server
and of the specified class. |
DbServInfo |
get_info()
Query the database for server information. |
java.lang.String |
name()
return the server name. |
void |
put_info(DbServInfo info)
Add/update server information in databse. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
DbServer
public DbServer(java.lang.String servname)
throws fr.esrf.Tango.DevFailed
- DbServer constructor.
It will make a connection to the TANGO database.
- Parameters:
servname
- Name of the class oject.
get_info
public DbServInfo get_info()
throws fr.esrf.Tango.DevFailed
- Query the database for server information.
- Returns:
- The information found for this server
in a DBServInfo object.
put_info
public void put_info(DbServInfo info)
throws fr.esrf.Tango.DevFailed
- Add/update server information in databse.
- Parameters:
info
- Server information for this server
in a DbServinfo object.
get_device_class_list
public java.lang.String[] get_device_class_list()
throws fr.esrf.Tango.DevFailed
- Query the database for server devices and classes.
- Returns:
- The devices and classes (e.g. "id11/motor/1", "StepperMotor",
"id11/motor/2", "StepperMotor",....)
get_device_name
public java.lang.String[] get_device_name(java.lang.String classname)
throws fr.esrf.Tango.DevFailed
- Query the database for a list of devices served by the specified server
and of the specified class.
- Parameters:
servname
- The server name.clasname
- The class name- Returns:
- the device names are stored in an array of strings.
name
public java.lang.String name()
- return the server name.