|
TANGO Java API ( TangORB-7.3.3.jar) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfr.esrf.TangoApi.DbDevice
public class DbDevice
Class Description: This class manage database connection for Tango device. It is an api between user and IDL Device object.
| Constructor Summary | |
|---|---|
DbDevice(java.lang.String devname)
DbDevice constructor. |
|
DbDevice(java.lang.String devname,
java.lang.String host,
java.lang.String port)
DbDevice constructor. |
|
| Method Summary | |
|---|---|
void |
add_device(DbDevInfo devinfo)
Add/update this device to the database |
void |
delete_attribute_property(DbAttribute attr)
Delete a list of properties for this object. |
void |
delete_attribute_property(DbAttribute[] attr)
Delete a list of properties for this object. |
void |
delete_attribute_property(java.lang.String attname,
java.lang.String propname)
Delete a property for this object. |
void |
delete_attribute_property(java.lang.String attname,
java.lang.String[] propnames)
Delete a list of properties for this object. |
void |
delete_attribute(java.lang.String attname)
Delete an attribute for this object. |
void |
delete_device()
Delete this device from the database |
void |
delete_property(DbDatum[] properties)
Delete a list of properties for this device. |
void |
delete_property(java.lang.String propname)
Delete a property for this device. |
void |
delete_property(java.lang.String[] propnames)
Delete a list of properties for this device. |
void |
export_device(DbDevExportInfo devinfo)
Update the export info for this device in the database. |
java.lang.String |
get_alias()
Get an alias for a device name |
java.lang.String[] |
get_attribute_list()
Query the database for a list of device attributes |
int |
get_attribute_polling_period(java.lang.String attname)
Returns the polling period (in ms) for specified attribute. |
DbAttribute |
get_attribute_property(java.lang.String attname)
Query the database for a device attribute property for this device. |
DbAttribute[] |
get_attribute_property(java.lang.String[] attnames)
Query the database for a list of device attribute properties for this device. |
java.lang.String[] |
get_class_inheritance()
|
java.lang.String |
get_class()
|
int |
get_command_polling_period(java.lang.String cmdname)
Returns the polling period (in ms) for specified command. |
DeviceInfo |
get_info()
Query the database for the info of this device. |
java.lang.String[] |
get_property_list(java.lang.String wildcard)
Query the database for a list of device properties for the pecified object. |
DbDatum[] |
get_property(DbDatum[] properties)
Query the database for a list of device properties for this device. |
DbDatum |
get_property(java.lang.String propname)
Query the database for a device property for this device. |
DbDatum[] |
get_property(java.lang.String[] propnames)
Query the database for a list of device properties for this device. |
DbDevImportInfo |
import_device()
Query the database for the export info of this device. |
java.lang.String |
name()
return the device name. |
void |
put_alias(java.lang.String aliasname)
Set an alias for a device name |
void |
put_attribute_property(DbAttribute attr)
Insert or update an attribute properties for this device. |
void |
put_attribute_property(DbAttribute[] attr)
Insert or update a list of attribute properties for this device. |
void |
put_property(DbDatum[] properties)
Insert or update a list of properties for this device The property names and their values are specified by the DbDatum array. |
void |
unexport_device()
Unexport the divice in database. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DbDevice(java.lang.String devname)
throws DevFailed
devname - Name of the device to be imported.
DevFailed
public DbDevice(java.lang.String devname,
java.lang.String host,
java.lang.String port)
throws DevFailed
devname - Name of the device to be imported.host - host where database is running.port - port for database connection.
DevFailed| Method Detail |
|---|
public DeviceInfo get_info()
throws DevFailed
DevFailed
public DbDevImportInfo import_device()
throws DevFailed
DevFailed
public void export_device(DbDevExportInfo devinfo)
throws DevFailed
devinfo - Device information to export.
DevFailed
public void unexport_device()
throws DevFailed
DevFailed
public void add_device(DbDevInfo devinfo)
throws DevFailed
devinfo - The device name, class and server specified in object.
DevFailed
public void delete_device()
throws DevFailed
DevFailed
public java.lang.String get_class()
throws DevFailed
DevFailed
public java.lang.String[] get_class_inheritance()
throws DevFailed
DevFailed
public void put_alias(java.lang.String aliasname)
throws DevFailed
aliasname - alias name.
DevFailed
public java.lang.String get_alias()
throws DevFailed
DevFailed
public java.lang.String[] get_property_list(java.lang.String wildcard)
throws DevFailed
wildcard - propertie's wildcard (* matches any charactere).
DevFailed
public DbDatum[] get_property(java.lang.String[] propnames)
throws DevFailed
propnames - list of property names.
DevFailed
public DbDatum get_property(java.lang.String propname)
throws DevFailed
propname - property name.
DevFailed
public DbDatum[] get_property(DbDatum[] properties)
throws DevFailed
properties - list of property DbDatum objects.
DevFailed
public void put_property(DbDatum[] properties)
throws DevFailed
properties - Properties names and values array.
DevFailed
public void delete_property(java.lang.String[] propnames)
throws DevFailed
propnames - Property names.
DevFailed
public void delete_property(java.lang.String propname)
throws DevFailed
propname - Property name.
DevFailed
public void delete_property(DbDatum[] properties)
throws DevFailed
properties - Property DbDatum objects.
DevFailed
public void put_attribute_property(DbAttribute[] attr)
throws DevFailed
attr - attribute names and properties (names and values) array.
DevFailed
public void put_attribute_property(DbAttribute attr)
throws DevFailed
attr - attribute name and properties (names and values).
DevFailed
public void delete_attribute_property(java.lang.String attname,
java.lang.String[] propnames)
throws DevFailed
attname - attribute name.propnames - Property names.
DevFailed
public void delete_attribute_property(java.lang.String attname,
java.lang.String propname)
throws DevFailed
attname - attribute name.propname - Property name.
DevFailed
public void delete_attribute_property(DbAttribute attr)
throws DevFailed
attr - specified attribute
DevFailed
public void delete_attribute_property(DbAttribute[] attr)
throws DevFailed
attr - specified attributes
DevFailed
public java.lang.String[] get_attribute_list()
throws DevFailed
DevFailed
public DbAttribute[] get_attribute_property(java.lang.String[] attnames)
throws DevFailed
attnames - attribute names.
DevFailed
public DbAttribute get_attribute_property(java.lang.String attname)
throws DevFailed
attname - attribute name.
DevFailed
public void delete_attribute(java.lang.String attname)
throws DevFailed
attname - attribute name.
DevFailed
public int get_attribute_polling_period(java.lang.String attname)
throws DevFailed
attname - specified attribute name.
DevFailed
public int get_command_polling_period(java.lang.String cmdname)
throws DevFailed
cmdname - specified attribute name.
DevFailedpublic java.lang.String name()
|
TANGO Java API ( TangORB-7.3.3.jar) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||