|
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.ConnectionDAODefaultImpl
fr.esrf.TangoApi.DeviceProxyDAODefaultImpl
public class DeviceProxyDAODefaultImpl
Class Description: This class manage device connection for Tango objects. It
is an api between user and IDL Device object.
Usage example:
| Field Summary |
|---|
| Fields inherited from interface fr.esrf.TangoApi.ApiDefs |
|---|
ALL_ASYNCH, ATT_R, ATT_W, CALLBACK, CMD, D_TCP, D_UDP, FROM_ATTR, FROM_CMD, FROM_DBASE, FROM_IOR, LOGGING_DEBUG, LOGGING_ERROR, LOGGING_FATAL, LOGGING_INFO, LOGGING_OFF, LOGGING_WARN, MISC, NO_TIMEOUT, POLLING, protocol_name, PULL_CALLBACK, PUSH_CALLBACK, TACO, TANGO |
| Constructor Summary | |
|---|---|
DeviceProxyDAODefaultImpl()
|
|
| Method Summary | |
|---|---|
void |
add_device(DeviceProxy deviceProxy,
DbDevInfo devinfo)
Add/update this device to the database |
void |
add_logging_target(DeviceProxy deviceProxy,
java.lang.String target)
Adds a new logging target to the device. |
DeviceDataHistory[] |
attribute_history(DeviceProxy deviceProxy,
java.lang.String attname)
Return the full history for attribute polled. |
DeviceDataHistory[] |
attribute_history(DeviceProxy deviceProxy,
java.lang.String attname,
int nb)
Return the history for attribute polled. |
void |
check_asynch_reply(DeviceProxy deviceProxy,
org.omg.CORBA.Request request,
int id,
java.lang.String idl_cmd)
Check Asynchronous call reply. |
DeviceDataHistory[] |
command_history(DeviceProxy deviceProxy,
java.lang.String cmdname)
Return the full history for command polled. |
DeviceDataHistory[] |
command_history(DeviceProxy deviceProxy,
java.lang.String cmdname,
int nb)
Return the history for command polled. |
int |
command_inout_asynch(DeviceProxy deviceProxy,
java.lang.String cmdname)
Asynchronous command_inout. |
int |
command_inout_asynch(DeviceProxy deviceProxy,
java.lang.String cmdname,
boolean forget)
Asynchronous command_inout. |
void |
command_inout_asynch(DeviceProxy deviceProxy,
java.lang.String cmdname,
CallBack cb)
Asynchronous command_inout using callback for reply. |
int |
command_inout_asynch(DeviceProxy deviceProxy,
java.lang.String cmdname,
DeviceData data_in)
Asynchronous command_inout. |
int |
command_inout_asynch(DeviceProxy deviceProxy,
java.lang.String cmdname,
DeviceData data_in,
boolean forget)
Asynchronous command_inout. |
void |
command_inout_asynch(DeviceProxy deviceProxy,
java.lang.String cmdname,
DeviceData argin,
CallBack cb)
Asynchronous command_inout using callback for reply. |
DeviceData |
command_inout_reply(DeviceProxy deviceProxy,
fr.esrf.TangoApi.AsyncCallObject aco)
Read Asynchronous command_inout reply. |
DeviceData |
command_inout_reply(DeviceProxy deviceProxy,
fr.esrf.TangoApi.AsyncCallObject aco,
int timeout)
Read Asynchronous command_inout reply. |
DeviceData |
command_inout_reply(DeviceProxy deviceProxy,
int id)
Read Asynchronous command_inout reply. |
DeviceData |
command_inout_reply(DeviceProxy deviceProxy,
int id,
int timeout)
Read Asynchronous command_inout reply. |
CommandInfo |
command_query(DeviceProxy deviceProxy,
java.lang.String cmdname)
return the IDL device command_query for the specified command. |
void |
delete_attribute_property(DeviceProxy deviceProxy,
DbAttribute attr)
Delete a list of properties for this object. |
void |
delete_attribute_property(DeviceProxy deviceProxy,
DbAttribute[] attr)
Delete a list of properties for this object. |
void |
delete_attribute_property(DeviceProxy deviceProxy,
java.lang.String attname,
java.lang.String propname)
Delete a property for this object. |
void |
delete_attribute_property(DeviceProxy deviceProxy,
java.lang.String attname,
java.lang.String[] propnames)
Delete a list of properties for this object. |
void |
delete_attribute(DeviceProxy deviceProxy,
java.lang.String attname)
Delete an attribute for this object. |
void |
delete_device(DeviceProxy deviceProxy)
Delete this device from the database |
void |
delete_property(DeviceProxy deviceProxy,
DbDatum[] properties)
Delete a list of properties for this device. |
void |
delete_property(DeviceProxy deviceProxy,
java.lang.String propname)
Delete a property for this device. |
void |
delete_property(DeviceProxy deviceProxy,
java.lang.String[] propnames)
Delete a list of properties for this device. |
java.lang.String[] |
dev_inform(DeviceProxy deviceProxy)
Returns TACO device information. |
void |
export_device(DeviceProxy deviceProxy,
DbDevExportInfo devinfo)
Update the export info for this device in the database. |
DeviceProxy |
get_adm_dev(DeviceProxy deviceProxy)
|
java.lang.String |
get_alias(DeviceProxy deviceProxy)
Get alias for the device |
java.lang.String |
get_asynch_idl_cmd(DeviceProxy deviceProxy,
org.omg.CORBA.Request request,
java.lang.String idl_cmd)
Retrieve the command/attribute arguments to build exception description. |
void |
get_asynch_replies(DeviceProxy deviceProxy)
Fire callback methods for all asynchronous requests(cmd and attr) with already arrived replies. |
void |
get_asynch_replies(DeviceProxy deviceProxy,
int timeout)
Fire callback methods for all asynchronous requests(cmd and attr) with already arrived replies. |
AttributeInfo[] |
get_attribute_config(DeviceProxy deviceProxy)
Deprecated. use get_attribute_info() |
AttributeInfo |
get_attribute_config(DeviceProxy deviceProxy,
java.lang.String attname)
Deprecated. use get_attribute_info(String attname) |
AttributeInfo[] |
get_attribute_config(DeviceProxy deviceProxy,
java.lang.String[] attnames)
Deprecated. use get_attribute_info(String[] attnames) |
AttributeInfoEx[] |
get_attribute_info_ex(DeviceProxy deviceProxy)
Get all attributes info for the specified device. |
AttributeInfoEx |
get_attribute_info_ex(DeviceProxy deviceProxy,
java.lang.String attname)
Get the attribute info for the specified device. |
AttributeInfoEx[] |
get_attribute_info_ex(DeviceProxy deviceProxy,
java.lang.String[] attnames)
Get the extended attributes configuration for the specified device. |
AttributeInfo[] |
get_attribute_info(DeviceProxy deviceProxy)
Get all attributes info for the specified device. |
AttributeInfo |
get_attribute_info(DeviceProxy deviceProxy,
java.lang.String attname)
Get the attribute info for the specified device. |
AttributeInfo[] |
get_attribute_info(DeviceProxy deviceProxy,
java.lang.String[] attnames)
Get the attributes configuration for the specified device. |
java.lang.String[] |
get_attribute_list(DeviceProxy deviceProxy)
Query the device for attribute config and returns names only. |
int |
get_attribute_polling_period(DeviceProxy deviceProxy,
java.lang.String attname)
Returns the polling period (in ms) for specified attribute. |
DbAttribute |
get_attribute_property(DeviceProxy deviceProxy,
java.lang.String attname)
Query the database for a device attribute property for this device. |
DbAttribute[] |
get_attribute_property(DeviceProxy deviceProxy,
java.lang.String[] attnames)
Query the database for a list of device attribute properties for this device. |
java.lang.String[] |
get_class_inheritance(DeviceProxy deviceProxy)
Returns the class inheritance for the device [0] Device Class [1] Class from the device class is inherited. |
java.lang.String |
get_class(DeviceProxy deviceProxy)
Returns the class for the device |
int |
get_command_polling_period(DeviceProxy deviceProxy,
java.lang.String cmdname)
Returns the polling period (in ms) for specified command. |
Database |
get_db_obj(DeviceProxy deviceProxy)
|
DeviceInfo |
get_info(DeviceProxy deviceProxy)
Query the database for the info of this device. |
int |
get_logging_level(DeviceProxy deviceProxy)
get logging level from the device. |
java.lang.String[] |
get_logging_target(DeviceProxy deviceProxy)
get logging target from the device. |
java.lang.String[] |
get_property_list(DeviceProxy deviceProxy,
java.lang.String wildcard)
Query the database for a list of device properties for the pecified object. |
DbDatum[] |
get_property(DeviceProxy deviceProxy,
DbDatum[] properties)
Query the database for a list of device properties for this device. |
DbDatum |
get_property(DeviceProxy deviceProxy,
java.lang.String propname)
Query the database for a device property for this device. |
DbDatum[] |
get_property(DeviceProxy deviceProxy,
java.lang.String[] propnames)
Query the database for a list of device properties for this device. |
int |
get_rpc_protocol(DeviceProxy deviceProxy)
|
LockerInfo |
getLockerInfo(DeviceProxy deviceProxy)
Returns the device lock info |
java.lang.String |
getLockerStatus(DeviceProxy deviceProxy)
Returns the device lock status |
void |
import_admin_device(DeviceProxy deviceProxy,
DbDevImportInfo info)
Get connection on administration device. |
void |
import_admin_device(DeviceProxy deviceProxy,
java.lang.String origin)
Get connection on administration device. |
DbDevImportInfo |
import_device(DeviceProxy deviceProxy)
Query the database for the export info of this device. |
void |
init(DeviceProxy deviceProxy)
Default DeviceProxy constructor. |
void |
init(DeviceProxy deviceProxy,
java.lang.String devname)
DeviceProxy constructor. |
void |
init(DeviceProxy deviceProxy,
java.lang.String devname,
boolean check_access)
DeviceProxy constructor. |
void |
init(DeviceProxy deviceProxy,
java.lang.String devname,
java.lang.String ior)
TangoDevice constructor. |
void |
init(DeviceProxy deviceProxy,
java.lang.String devname,
java.lang.String host,
java.lang.String port)
TangoDevice constructor. |
boolean |
isLocked(DeviceProxy deviceProxy)
Returns true if the device is locked |
boolean |
isLockedByMe(DeviceProxy deviceProxy)
Returns true if the device is locked by this process |
void |
lock(DeviceProxy deviceProxy,
int validity)
Lock the device |
void |
main(java.lang.String[] args)
Just a main method to check API methods. |
java.lang.String |
name(DeviceProxy deviceProxy)
return the device name. |
int |
pending_asynch_call(DeviceProxy deviceProxy,
int reply_model)
return the still pending asynchronous call for a reply model. |
void |
poll_attribute(DeviceProxy deviceProxy,
java.lang.String attname,
int period)
Add a attribute to be polled for the device. |
void |
poll_command(DeviceProxy deviceProxy,
java.lang.String cmdname,
int period)
Add a command to be polled for the device. |
java.lang.String[] |
polling_status(DeviceProxy deviceProxy)
Returns the polling status for the device. |
void |
put_alias(DeviceProxy deviceProxy,
java.lang.String aliasname)
Set an alias for a device name |
void |
put_attribute_property(DeviceProxy deviceProxy,
DbAttribute attr)
Insert or update an attribute properties for this device. |
void |
put_attribute_property(DeviceProxy deviceProxy,
DbAttribute[] attr)
Insert or update a list of attribute properties for this device. |
void |
put_property(DeviceProxy deviceProxy,
DbDatum prop)
Insert or update a property for this device The property name and its value are specified by the DbDatum |
void |
put_property(DeviceProxy deviceProxy,
DbDatum[] properties)
Insert or update a list of properties for this device The property names and their values are specified by the DbDatum array. |
int |
read_attribute_asynch(DeviceProxy deviceProxy,
java.lang.String attname)
Asynchronous read_attribute. |
int |
read_attribute_asynch(DeviceProxy deviceProxy,
java.lang.String[] attnames)
Asynchronous read_attribute. |
void |
read_attribute_asynch(DeviceProxy deviceProxy,
java.lang.String[] attnames,
CallBack cb)
Asynchronous read_attribute using callback for reply. |
void |
read_attribute_asynch(DeviceProxy deviceProxy,
java.lang.String attname,
CallBack cb)
Asynchronous read_attribute using callback for reply. |
DeviceAttribute[] |
read_attribute_reply(DeviceProxy deviceProxy,
int id)
Read Asynchronous read_attribute reply. |
DeviceAttribute[] |
read_attribute_reply(DeviceProxy deviceProxy,
int id,
int timeout)
Read Asynchronous read_attribute reply. |
AttributeValue |
read_attribute_value(DeviceProxy deviceProxy,
java.lang.String attname)
return directly AttributeValue object without creation of DeviceAttribute object |
DeviceAttribute |
read_attribute(DeviceProxy deviceProxy,
java.lang.String attname)
Read the attribute value for the specified device. |
DeviceAttribute[] |
read_attribute(DeviceProxy deviceProxy,
java.lang.String[] attnames)
Read the attribute values for the specified device. |
void |
remove_logging_target(DeviceProxy deviceProxy,
java.lang.String target_type,
java.lang.String target_name)
Removes a new logging target to the device. |
void |
set_attribute_config(DeviceProxy deviceProxy,
AttributeInfo[] attr)
Deprecated. use set_attribute_info(AttributeInfo[] attr) |
void |
set_attribute_info(DeviceProxy deviceProxy,
AttributeInfo[] attr)
Update the attributes info for the specified device. |
void |
set_attribute_info(DeviceProxy deviceProxy,
AttributeInfoEx[] attr)
Update the attributes extended info for the specified device. |
void |
set_logging_level(DeviceProxy deviceProxy,
int level)
Set logging level from the device. |
void |
set_rpc_protocol(DeviceProxy deviceProxy,
int mode)
Execute the dev_rpc_protocol TACO command to change RPC protocol mode. |
DevState |
state(DeviceProxy deviceProxy)
return the device state read from CORBA attribute. |
DevState |
state(DeviceProxy deviceProxy,
boolean src)
return the device state. |
java.lang.String |
status(DeviceProxy deviceProxy)
return the device status read from CORBA attribute. |
java.lang.String |
status(DeviceProxy deviceProxy,
boolean src)
return the device status. |
void |
stop_poll_attribute(DeviceProxy deviceProxy,
java.lang.String attname)
Remove attribute of polled object list |
void |
stop_poll_command(DeviceProxy deviceProxy,
java.lang.String cmdname)
Remove command of polled object list |
int |
subscribe_event(DeviceProxy deviceProxy,
java.lang.String attr_name,
int event,
CallBack callback,
java.lang.String[] filters,
boolean stateless)
Subscribe to an event. |
int |
subscribe_event(DeviceProxy deviceProxy,
java.lang.String attr_name,
int event,
int max_size,
java.lang.String[] filters,
boolean stateless)
Subscribe to event to be stored in an event queue. |
void |
unexport_device(DeviceProxy deviceProxy)
Unexport the device in database. |
int |
unlock(DeviceProxy deviceProxy)
Unlock the device |
void |
unsubscribe_event(DeviceProxy deviceProxy,
int event_id)
Unsubscribe to an event. |
boolean |
use_db(DeviceProxy deviceProxy)
|
int |
write_attribute_asynch(DeviceProxy deviceProxy,
DeviceAttribute attr)
Asynchronous write_attribute. |
int |
write_attribute_asynch(DeviceProxy deviceProxy,
DeviceAttribute[] attribs)
Asynchronous write_attribute. |
int |
write_attribute_asynch(DeviceProxy deviceProxy,
DeviceAttribute[] attribs,
boolean forget)
Asynchronous write_attribute. |
void |
write_attribute_asynch(DeviceProxy deviceProxy,
DeviceAttribute[] attribs,
CallBack cb)
Asynchronous write_attribute using callback for reply. |
int |
write_attribute_asynch(DeviceProxy deviceProxy,
DeviceAttribute attr,
boolean forget)
Asynchronous write_attribute. |
void |
write_attribute_asynch(DeviceProxy deviceProxy,
DeviceAttribute attr,
CallBack cb)
Asynchronous write_attribute using callback for reply. |
void |
write_attribute_reply(DeviceProxy deviceProxy,
int id)
check for Asynchronous write_attribute reply. |
void |
write_attribute_reply(DeviceProxy deviceProxy,
int id,
int timeout)
check for Asynchronous write_attribute reply. |
void |
write_attribute(DeviceProxy deviceProxy,
DeviceAttribute devattr)
Write the attribute value for the specified device. |
void |
write_attribute(DeviceProxy deviceProxy,
DeviceAttribute[] devattr)
Write the attribute values for the specified device. |
DeviceAttribute[] |
write_read_attribute(DeviceProxy deviceProxy,
DeviceAttribute[] devattr)
Write and then read the attribute values, for the specified device. |
| Methods inherited from class fr.esrf.TangoApi.ConnectionDAODefaultImpl |
|---|
adm_name, black_box, build_connection, checkIfTaco, checkIfTango, command_inout, command_inout, command_list_query, description, dev_import, get_class_name, get_device, get_host_name, get_idl_version, get_ior, get_name, get_server_name, get_source, get_tango_host, get_timeout_millis, get_timeout, get_transparency_reconnection, getAccessControl, info_3, info, init, init, init, init, init, init, init, init, is_taco, isAllowedCommand, ping, set_source, set_timeout_millis, set_transparency_reconnection, setAccessControl, throw_dev_failed |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface fr.esrf.TangoApi.IConnectionDAO |
|---|
adm_name, black_box, build_connection, checkIfTaco, checkIfTango, command_inout, command_inout, command_list_query, description, dev_import, get_class_name, get_device, get_host_name, get_idl_version, get_ior, get_name, get_server_name, get_source, get_tango_host, get_timeout_millis, get_timeout, get_transparency_reconnection, getAccessControl, info_3, info, init, init, init, init, init, init, init, init, is_taco, isAllowedCommand, ping, set_source, set_timeout_millis, set_transparency_reconnection, setAccessControl, throw_dev_failed |
| Constructor Detail |
|---|
public DeviceProxyDAODefaultImpl()
| Method Detail |
|---|
public void init(DeviceProxy deviceProxy)
throws DevFailed
init in interface IDeviceProxyDAODevFailed
public void init(DeviceProxy deviceProxy,
java.lang.String devname)
throws DevFailed
init in interface IDeviceProxyDAOdevname - name of the device to be imported.
DevFailed
public void init(DeviceProxy deviceProxy,
java.lang.String devname,
boolean check_access)
throws DevFailed
init in interface IDeviceProxyDAOdevname - name of the device to be imported.check_access - set check_access value
DevFailed
public void init(DeviceProxy deviceProxy,
java.lang.String devname,
java.lang.String ior)
throws DevFailed
init in interface IDeviceProxyDAOdevname - name of the device to be imported.ior - ior string used to import device
DevFailed
public void init(DeviceProxy deviceProxy,
java.lang.String devname,
java.lang.String host,
java.lang.String port)
throws DevFailed
init in interface IDeviceProxyDAOdevname - name of the device to be imported.host - host where database is running.port - port for database connection.
DevFailedpublic boolean use_db(DeviceProxy deviceProxy)
use_db in interface IDeviceProxyDAO
public Database get_db_obj(DeviceProxy deviceProxy)
throws DevFailed
get_db_obj in interface IDeviceProxyDAODevFailed
public void import_admin_device(DeviceProxy deviceProxy,
DbDevImportInfo info)
throws DevFailed
import_admin_device in interface IDeviceProxyDAODevFailed
public void import_admin_device(DeviceProxy deviceProxy,
java.lang.String origin)
throws DevFailed
import_admin_device in interface IDeviceProxyDAODevFailedpublic java.lang.String name(DeviceProxy deviceProxy)
name in interface IDeviceProxyDAO
public java.lang.String status(DeviceProxy deviceProxy)
throws DevFailed
status in interface IDeviceProxyDAODevFailed
public java.lang.String status(DeviceProxy deviceProxy,
boolean src)
throws DevFailed
status in interface IDeviceProxyDAOsrc - Source to read status. It could be ApiDefs.FROM_CMD to read it
from a command_inout or ApiDefs.FROM_ATTR to read it from
CORBA attribute.
DevFailed
public DevState state(DeviceProxy deviceProxy)
throws DevFailed
state in interface IDeviceProxyDAODevFailed
public DevState state(DeviceProxy deviceProxy,
boolean src)
throws DevFailed
state in interface IDeviceProxyDAOsrc - Source to read state. It could be ApiDefs.FROM_CMD to read it
from a command_inout or ApiDefs.FROM_ATTR to read it from
CORBA attribute.
DevFailed
public CommandInfo command_query(DeviceProxy deviceProxy,
java.lang.String cmdname)
throws DevFailed
command_query in interface IDeviceProxyDAOcmdname - command name to be used for the command_query
DevFailed
public java.lang.String get_class(DeviceProxy deviceProxy)
throws DevFailed
get_class in interface IDeviceProxyDAODevFailed
public java.lang.String[] get_class_inheritance(DeviceProxy deviceProxy)
throws DevFailed
get_class_inheritance in interface IDeviceProxyDAODevFailed
public void put_alias(DeviceProxy deviceProxy,
java.lang.String aliasname)
throws DevFailed
put_alias in interface IDeviceProxyDAOaliasname - alias name.
DevFailed
public java.lang.String get_alias(DeviceProxy deviceProxy)
throws DevFailed
get_alias in interface IDeviceProxyDAODevFailed
public DeviceInfo get_info(DeviceProxy deviceProxy)
throws DevFailed
get_info in interface IDeviceProxyDAODevFailed
public DbDevImportInfo import_device(DeviceProxy deviceProxy)
throws DevFailed
import_device in interface IDeviceProxyDAODevFailed
public void export_device(DeviceProxy deviceProxy,
DbDevExportInfo devinfo)
throws DevFailed
export_device in interface IDeviceProxyDAOdevinfo - Device information to export.
DevFailed
public void unexport_device(DeviceProxy deviceProxy)
throws DevFailed
unexport_device in interface IDeviceProxyDAODevFailed
public void add_device(DeviceProxy deviceProxy,
DbDevInfo devinfo)
throws DevFailed
add_device in interface IDeviceProxyDAOdevinfo - The device name, class and server specified in object.
DevFailed
public void delete_device(DeviceProxy deviceProxy)
throws DevFailed
delete_device in interface IDeviceProxyDAODevFailed
public java.lang.String[] get_property_list(DeviceProxy deviceProxy,
java.lang.String wildcard)
throws DevFailed
get_property_list in interface IDeviceProxyDAOwildcard - propertie's wildcard (* matches any charactere).
DevFailed
public DbDatum[] get_property(DeviceProxy deviceProxy,
java.lang.String[] propnames)
throws DevFailed
get_property in interface IDeviceProxyDAOpropnames - list of property names.
DevFailed
public DbDatum get_property(DeviceProxy deviceProxy,
java.lang.String propname)
throws DevFailed
get_property in interface IDeviceProxyDAOpropname - property name.
DevFailed
public DbDatum[] get_property(DeviceProxy deviceProxy,
DbDatum[] properties)
throws DevFailed
get_property in interface IDeviceProxyDAOproperties - list of property DbDatum objects.
DevFailed
public void put_property(DeviceProxy deviceProxy,
DbDatum prop)
throws DevFailed
put_property in interface IDeviceProxyDAOprop - Property name and value
DevFailed
public void put_property(DeviceProxy deviceProxy,
DbDatum[] properties)
throws DevFailed
put_property in interface IDeviceProxyDAOproperties - Properties names and values array.
DevFailed
public void delete_property(DeviceProxy deviceProxy,
java.lang.String[] propnames)
throws DevFailed
delete_property in interface IDeviceProxyDAOpropnames - Property names.
DevFailed
public void delete_property(DeviceProxy deviceProxy,
java.lang.String propname)
throws DevFailed
delete_property in interface IDeviceProxyDAOpropname - Property name.
DevFailed
public void delete_property(DeviceProxy deviceProxy,
DbDatum[] properties)
throws DevFailed
delete_property in interface IDeviceProxyDAOproperties - Property DbDatum objects.
DevFailed
public java.lang.String[] get_attribute_list(DeviceProxy deviceProxy)
throws DevFailed
get_attribute_list in interface IDeviceProxyDAODevFailed
public void put_attribute_property(DeviceProxy deviceProxy,
DbAttribute[] attr)
throws DevFailed
put_attribute_property in interface IDeviceProxyDAOattr - attribute names and properties (names and values) array.
DevFailed
public void put_attribute_property(DeviceProxy deviceProxy,
DbAttribute attr)
throws DevFailed
put_attribute_property in interface IDeviceProxyDAOattr - attribute name and properties (names and values).
DevFailed
public void delete_attribute_property(DeviceProxy deviceProxy,
java.lang.String attname,
java.lang.String[] propnames)
throws DevFailed
delete_attribute_property in interface IDeviceProxyDAOattname - attribute name.propnames - Property names.
DevFailed
public void delete_attribute_property(DeviceProxy deviceProxy,
java.lang.String attname,
java.lang.String propname)
throws DevFailed
delete_attribute_property in interface IDeviceProxyDAOattname - attribute name.propname - Property name.
DevFailed
public void delete_attribute_property(DeviceProxy deviceProxy,
DbAttribute attr)
throws DevFailed
delete_attribute_property in interface IDeviceProxyDAOattr - DbAttribute objects specifying attributes.
DevFailed
public void delete_attribute_property(DeviceProxy deviceProxy,
DbAttribute[] attr)
throws DevFailed
delete_attribute_property in interface IDeviceProxyDAOattr - DbAttribute objects array specifying attributes.
DevFailed
public DbAttribute[] get_attribute_property(DeviceProxy deviceProxy,
java.lang.String[] attnames)
throws DevFailed
get_attribute_property in interface IDeviceProxyDAOattnames - list of attribute names.
DevFailed
public DbAttribute get_attribute_property(DeviceProxy deviceProxy,
java.lang.String attname)
throws DevFailed
get_attribute_property in interface IDeviceProxyDAOattname - attribute name.
DevFailed
public void delete_attribute(DeviceProxy deviceProxy,
java.lang.String attname)
throws DevFailed
delete_attribute in interface IDeviceProxyDAOattname - attribute name.
DevFailed
public AttributeInfo[] get_attribute_info(DeviceProxy deviceProxy,
java.lang.String[] attnames)
throws DevFailed
get_attribute_info in interface IDeviceProxyDAOattnames - attribute names to request config.
DevFailed
public AttributeInfoEx[] get_attribute_info_ex(DeviceProxy deviceProxy,
java.lang.String[] attnames)
throws DevFailed
get_attribute_info_ex in interface IDeviceProxyDAOattnames - attribute names to request config.
DevFailed
@Deprecated
public AttributeInfo[] get_attribute_config(DeviceProxy deviceProxy,
java.lang.String[] attnames)
throws DevFailed
get_attribute_config in interface IDeviceProxyDAOattnames - attribute names to request config.
DevFailed
public AttributeInfo get_attribute_info(DeviceProxy deviceProxy,
java.lang.String attname)
throws DevFailed
get_attribute_info in interface IDeviceProxyDAOattname - attribute name to request config.
DevFailed
public AttributeInfoEx get_attribute_info_ex(DeviceProxy deviceProxy,
java.lang.String attname)
throws DevFailed
get_attribute_info_ex in interface IDeviceProxyDAOattname - attribute name to request config.
DevFailed
@Deprecated
public AttributeInfo get_attribute_config(DeviceProxy deviceProxy,
java.lang.String attname)
throws DevFailed
get_attribute_config in interface IDeviceProxyDAOattname - attribute name to request config.
DevFailed
public AttributeInfo[] get_attribute_info(DeviceProxy deviceProxy)
throws DevFailed
get_attribute_info in interface IDeviceProxyDAODevFailed
public AttributeInfoEx[] get_attribute_info_ex(DeviceProxy deviceProxy)
throws DevFailed
get_attribute_info_ex in interface IDeviceProxyDAODevFailed
@Deprecated
public AttributeInfo[] get_attribute_config(DeviceProxy deviceProxy)
throws DevFailed
get_attribute_config in interface IDeviceProxyDAODevFailed
public void set_attribute_info(DeviceProxy deviceProxy,
AttributeInfo[] attr)
throws DevFailed
set_attribute_info in interface IDeviceProxyDAOattr - the attributes info.
DevFailed
public void set_attribute_info(DeviceProxy deviceProxy,
AttributeInfoEx[] attr)
throws DevFailed
set_attribute_info in interface IDeviceProxyDAOattr - the attributes info.
DevFailed
@Deprecated
public void set_attribute_config(DeviceProxy deviceProxy,
AttributeInfo[] attr)
throws DevFailed
set_attribute_config in interface IDeviceProxyDAOattr - the attributes configuration.
DevFailed
public DeviceAttribute read_attribute(DeviceProxy deviceProxy,
java.lang.String attname)
throws DevFailed
read_attribute in interface IDeviceProxyDAOattname - attribute name to request value.
DevFailed
public AttributeValue read_attribute_value(DeviceProxy deviceProxy,
java.lang.String attname)
throws DevFailed
read_attribute_value in interface IDeviceProxyDAODevFailed
public DeviceAttribute[] read_attribute(DeviceProxy deviceProxy,
java.lang.String[] attnames)
throws DevFailed
read_attribute in interface IDeviceProxyDAOattnames - attribute names to request values.
DevFailed
public void write_attribute(DeviceProxy deviceProxy,
DeviceAttribute devattr)
throws DevFailed
write_attribute in interface IDeviceProxyDAOdevattr - attribute name and value.
DevFailed
public void write_attribute(DeviceProxy deviceProxy,
DeviceAttribute[] devattr)
throws DevFailed
write_attribute in interface IDeviceProxyDAOdevattr - attribute names and values.
DevFailed
public DeviceAttribute[] write_read_attribute(DeviceProxy deviceProxy,
DeviceAttribute[] devattr)
throws DevFailed
write_read_attribute in interface IDeviceProxyDAOdevattr - attribute names and values.
DevFailed
public DeviceProxy get_adm_dev(DeviceProxy deviceProxy)
throws DevFailed
get_adm_dev in interface IDeviceProxyDAODevFailed
public void poll_command(DeviceProxy deviceProxy,
java.lang.String cmdname,
int period)
throws DevFailed
poll_command in interface IDeviceProxyDAOcmdname - command name to be polled.period - polling period.
DevFailed
public void poll_attribute(DeviceProxy deviceProxy,
java.lang.String attname,
int period)
throws DevFailed
poll_attribute in interface IDeviceProxyDAOattname - attribute name to be polled.period - polling period.
DevFailed
public void stop_poll_command(DeviceProxy deviceProxy,
java.lang.String cmdname)
throws DevFailed
stop_poll_command in interface IDeviceProxyDAOcmdname - command name to be removed of polled object list.
DevFailed
public void stop_poll_attribute(DeviceProxy deviceProxy,
java.lang.String attname)
throws DevFailed
stop_poll_attribute in interface IDeviceProxyDAOattname - attribute name to be removed of polled object list.
DevFailed
public java.lang.String[] polling_status(DeviceProxy deviceProxy)
throws DevFailed
polling_status in interface IDeviceProxyDAODevFailed
public DeviceDataHistory[] command_history(DeviceProxy deviceProxy,
java.lang.String cmdname,
int nb)
throws DevFailed
command_history in interface IDeviceProxyDAOcmdname - command name to read polled history.nb - nb data to read.
DevFailed
public DeviceDataHistory[] attribute_history(DeviceProxy deviceProxy,
java.lang.String attname,
int nb)
throws DevFailed
attribute_history in interface IDeviceProxyDAOattname - attribute name to read polled history.nb - nb data to read.
DevFailed
public DeviceDataHistory[] command_history(DeviceProxy deviceProxy,
java.lang.String cmdname)
throws DevFailed
command_history in interface IDeviceProxyDAOcmdname - command name to read polled history.
DevFailed
public DeviceDataHistory[] attribute_history(DeviceProxy deviceProxy,
java.lang.String attname)
throws DevFailed
attribute_history in interface IDeviceProxyDAOattname - attribute name to read polled history.
DevFailed
public int get_attribute_polling_period(DeviceProxy deviceProxy,
java.lang.String attname)
throws DevFailed
get_attribute_polling_period in interface IDeviceProxyDAOattname - specified attribute name.
DevFailed
public int get_command_polling_period(DeviceProxy deviceProxy,
java.lang.String cmdname)
throws DevFailed
get_command_polling_period in interface IDeviceProxyDAOcmdname - specified attribute name.
DevFailed
public int command_inout_asynch(DeviceProxy deviceProxy,
java.lang.String cmdname,
DeviceData data_in)
throws DevFailed
command_inout_asynch in interface IDeviceProxyDAOcmdname - command name.data_in - input argument command.
DevFailed
public int command_inout_asynch(DeviceProxy deviceProxy,
java.lang.String cmdname)
throws DevFailed
command_inout_asynch in interface IDeviceProxyDAOcmdname - command name.
DevFailed
public int command_inout_asynch(DeviceProxy deviceProxy,
java.lang.String cmdname,
boolean forget)
throws DevFailed
command_inout_asynch in interface IDeviceProxyDAOcmdname - command name.forget - forget the response if true
DevFailed
public int command_inout_asynch(DeviceProxy deviceProxy,
java.lang.String cmdname,
DeviceData data_in,
boolean forget)
throws DevFailed
command_inout_asynch in interface IDeviceProxyDAOcmdname - command name.data_in - input argument command.forget - forget the response if true
DevFailed
public void command_inout_asynch(DeviceProxy deviceProxy,
java.lang.String cmdname,
DeviceData argin,
CallBack cb)
throws DevFailed
command_inout_asynch in interface IDeviceProxyDAOcmdname - Command name.argin - Input argument command.cb - a CallBack object instance.
DevFailed
public void command_inout_asynch(DeviceProxy deviceProxy,
java.lang.String cmdname,
CallBack cb)
throws DevFailed
command_inout_asynch in interface IDeviceProxyDAOcmdname - Command name.cb - a CallBack object instance.
DevFailed
public DeviceData command_inout_reply(DeviceProxy deviceProxy,
int id,
int timeout)
throws DevFailed,
AsynReplyNotArrived
command_inout_reply in interface IDeviceProxyDAOid - asynchronous call id (returned by command_inout_asynch).timeout - number of millisonds to wait reply before throw an excption.
DevFailed
AsynReplyNotArrived
public DeviceData command_inout_reply(DeviceProxy deviceProxy,
fr.esrf.TangoApi.AsyncCallObject aco,
int timeout)
throws DevFailed,
AsynReplyNotArrived
command_inout_reply in interface IDeviceProxyDAOaco - asynchronous call Request instancetimeout - number of millisonds to wait reply before throw an excption.
DevFailed
AsynReplyNotArrived
public DeviceData command_inout_reply(DeviceProxy deviceProxy,
int id)
throws DevFailed,
AsynReplyNotArrived
command_inout_reply in interface IDeviceProxyDAOid - asynchronous call id (returned by command_inout_asynch).
DevFailed
AsynReplyNotArrived
public DeviceData command_inout_reply(DeviceProxy deviceProxy,
fr.esrf.TangoApi.AsyncCallObject aco)
throws DevFailed,
AsynReplyNotArrived
command_inout_reply in interface IDeviceProxyDAOaco - asynchronous call Request instance
DevFailed
AsynReplyNotArrived
public int read_attribute_asynch(DeviceProxy deviceProxy,
java.lang.String attname)
throws DevFailed
read_attribute_asynch in interface IDeviceProxyDAOattname - Attribute name.
DevFailed
public int read_attribute_asynch(DeviceProxy deviceProxy,
java.lang.String[] attnames)
throws DevFailed
read_attribute_asynch in interface IDeviceProxyDAOattnames - Attribute names.
DevFailed
public java.lang.String get_asynch_idl_cmd(DeviceProxy deviceProxy,
org.omg.CORBA.Request request,
java.lang.String idl_cmd)
get_asynch_idl_cmd in interface IDeviceProxyDAO
public void check_asynch_reply(DeviceProxy deviceProxy,
org.omg.CORBA.Request request,
int id,
java.lang.String idl_cmd)
throws DevFailed,
AsynReplyNotArrived
check_asynch_reply in interface IDeviceProxyDAOid - asynchronous call id (returned by read_attribute_asynch).
DevFailed
AsynReplyNotArrived
public DeviceAttribute[] read_attribute_reply(DeviceProxy deviceProxy,
int id,
int timeout)
throws DevFailed,
AsynReplyNotArrived
read_attribute_reply in interface IDeviceProxyDAOid - asynchronous call id (returned by read_attribute_asynch).timeout - number of millisonds to wait reply before throw an excption.
DevFailed
AsynReplyNotArrived
public DeviceAttribute[] read_attribute_reply(DeviceProxy deviceProxy,
int id)
throws DevFailed,
AsynReplyNotArrived
read_attribute_reply in interface IDeviceProxyDAOid - asynchronous call id (returned by read_attribute_asynch).
DevFailed
AsynReplyNotArrived
public void read_attribute_asynch(DeviceProxy deviceProxy,
java.lang.String attname,
CallBack cb)
throws DevFailed
read_attribute_asynch in interface IDeviceProxyDAOattname - attribute name.cb - a CallBack object instance.
DevFailed
public void read_attribute_asynch(DeviceProxy deviceProxy,
java.lang.String[] attnames,
CallBack cb)
throws DevFailed
read_attribute_asynch in interface IDeviceProxyDAOattnames - attribute names.cb - a CallBack object instance.
DevFailed
public int write_attribute_asynch(DeviceProxy deviceProxy,
DeviceAttribute attr)
throws DevFailed
write_attribute_asynch in interface IDeviceProxyDAOattr - Attribute value (name, writing value...)
DevFailed
public int write_attribute_asynch(DeviceProxy deviceProxy,
DeviceAttribute attr,
boolean forget)
throws DevFailed
write_attribute_asynch in interface IDeviceProxyDAOattr - Attribute value (name, writing value...)forget - forget the response if true
DevFailed
public int write_attribute_asynch(DeviceProxy deviceProxy,
DeviceAttribute[] attribs)
throws DevFailed
write_attribute_asynch in interface IDeviceProxyDAOattribs - Attribute values (name, writing value...)
DevFailed
public int write_attribute_asynch(DeviceProxy deviceProxy,
DeviceAttribute[] attribs,
boolean forget)
throws DevFailed
write_attribute_asynch in interface IDeviceProxyDAOattribs - Attribute values (name, writing value...)forget - forget the response if true
DevFailed
public void write_attribute_reply(DeviceProxy deviceProxy,
int id)
throws DevFailed,
AsynReplyNotArrived
write_attribute_reply in interface IDeviceProxyDAOid - asynchronous call id (returned by read_attribute_asynch).
DevFailed
AsynReplyNotArrived
public void write_attribute_reply(DeviceProxy deviceProxy,
int id,
int timeout)
throws DevFailed,
AsynReplyNotArrived
write_attribute_reply in interface IDeviceProxyDAOid - asynchronous call id (returned by write_attribute_asynch).timeout - number of millisonds to wait reply before throw an excption.
DevFailed
AsynReplyNotArrived
public void write_attribute_asynch(DeviceProxy deviceProxy,
DeviceAttribute attr,
CallBack cb)
throws DevFailed
write_attribute_asynch in interface IDeviceProxyDAOattr - Attribute values (name, writing value...)cb - a CallBack object instance.
DevFailed
public void write_attribute_asynch(DeviceProxy deviceProxy,
DeviceAttribute[] attribs,
CallBack cb)
throws DevFailed
write_attribute_asynch in interface IDeviceProxyDAOattribs - Attribute values (name, writing value...)cb - a CallBack object instance.
DevFailed
public int pending_asynch_call(DeviceProxy deviceProxy,
int reply_model)
pending_asynch_call in interface IDeviceProxyDAOreply_model - ApiDefs.ALL_ASYNCH, POLLING or CALLBACK.public void get_asynch_replies(DeviceProxy deviceProxy)
get_asynch_replies in interface IDeviceProxyDAO
public void get_asynch_replies(DeviceProxy deviceProxy,
int timeout)
get_asynch_replies in interface IDeviceProxyDAO
public void add_logging_target(DeviceProxy deviceProxy,
java.lang.String target)
throws DevFailed
add_logging_target in interface IDeviceProxyDAOtarget - The target for logging (e.g. file::/tmp/logging_device).
DevFailed
public void remove_logging_target(DeviceProxy deviceProxy,
java.lang.String target_type,
java.lang.String target_name)
throws DevFailed
remove_logging_target in interface IDeviceProxyDAODevFailed
public java.lang.String[] get_logging_target(DeviceProxy deviceProxy)
throws DevFailed
get_logging_target in interface IDeviceProxyDAODevFailed
public int get_logging_level(DeviceProxy deviceProxy)
throws DevFailed
get_logging_level in interface IDeviceProxyDAODevFailed
public void set_logging_level(DeviceProxy deviceProxy,
int level)
throws DevFailed
set_logging_level in interface IDeviceProxyDAOlevel - device's logging level: (ApiDefs.LOGGING_OFF,
ApiDefs.LOGGING_FATAL, ApiDefs.LOGGING_ERROR,
ApiDefs.LOGGING_INFO, ApiDefs.LOGGING_DEBUG)
DevFailed
public void lock(DeviceProxy deviceProxy,
int validity)
throws DevFailed
lock in interface IDeviceProxyDAOvalidity - Lock validity (in seconds)
DevFailed
public int unlock(DeviceProxy deviceProxy)
throws DevFailed
unlock in interface IDeviceProxyDAODevFailed
public boolean isLocked(DeviceProxy deviceProxy)
throws DevFailed
isLocked in interface IDeviceProxyDAODevFailed
public boolean isLockedByMe(DeviceProxy deviceProxy)
throws DevFailed
isLockedByMe in interface IDeviceProxyDAODevFailed
public java.lang.String getLockerStatus(DeviceProxy deviceProxy)
throws DevFailed
getLockerStatus in interface IDeviceProxyDAODevFailed
public LockerInfo getLockerInfo(DeviceProxy deviceProxy)
throws DevFailed
getLockerInfo in interface IDeviceProxyDAODevFailed
public java.lang.String[] dev_inform(DeviceProxy deviceProxy)
throws DevFailed
dev_inform in interface IDeviceProxyDAODevFailed
public void set_rpc_protocol(DeviceProxy deviceProxy,
int mode)
throws DevFailed
set_rpc_protocol in interface IDeviceProxyDAOmode - RPC protocol mode to be seted
(TangoApi.TacoDevice.D_TCP or
TangoApi.TacoDevice.D_UDP).
DevFailed
public int get_rpc_protocol(DeviceProxy deviceProxy)
throws DevFailed
get_rpc_protocol in interface IDeviceProxyDAODevFailed
public int subscribe_event(DeviceProxy deviceProxy,
java.lang.String attr_name,
int event,
CallBack callback,
java.lang.String[] filters,
boolean stateless)
throws DevFailed
subscribe_event in interface IDeviceProxyDAOattr_name - attribute name.event - event name.callback - event callback.stateless - If true, do not throw exception if connection failed.
DevFailed
public int subscribe_event(DeviceProxy deviceProxy,
java.lang.String attr_name,
int event,
int max_size,
java.lang.String[] filters,
boolean stateless)
throws DevFailed
subscribe_event in interface IDeviceProxyDAOattr_name - attribute name.event - event name.max_size - event queue maximum size.stateless - If true, do not throw exception if connection failed.
DevFailed
public void unsubscribe_event(DeviceProxy deviceProxy,
int event_id)
throws DevFailed
unsubscribe_event in interface IDeviceProxyDAOevent_id - event identifier.
DevFailedpublic void main(java.lang.String[] args)
main in interface IDeviceProxyDAO
|
TANGO Java API ( TangORB-7.3.3.jar) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||