|
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.Connection
fr.esrf.TangoApi.DeviceProxy
public class DeviceProxy
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 | |
|---|---|
DeviceProxy()
Default DeviceProxy constructor. |
|
DeviceProxy(DbDevImportInfo info)
DeviceProxy constructor. |
|
DeviceProxy(java.lang.String devname)
DeviceProxy constructor. |
|
DeviceProxy(java.lang.String devname,
java.lang.String ior)
TangoDevice constructor. |
|
DeviceProxy(java.lang.String devname,
java.lang.String host,
java.lang.String port)
TangoDevice constructor. |
|
| Method Summary | |
|---|---|
void |
add_device(DbDevInfo devinfo)
Add/update this device to the database |
void |
add_logging_target(java.lang.String target)
Adds a new logging target to the device. |
void |
add_logging_target(java.lang.String target_type,
java.lang.String target_name)
Deprecated. use add_logging_target(String target). |
DeviceDataHistory[] |
attribute_history(java.lang.String attname)
Return the full history for attribute polled. |
DeviceDataHistory[] |
attribute_history(java.lang.String attname,
int nb)
Return the history for attribute polled. |
DeviceDataHistory[] |
command_history(java.lang.String cmdname)
Return the full history for command polled. |
DeviceDataHistory[] |
command_history(java.lang.String cmdname,
int nb)
Return the history for command polled. |
int |
command_inout_asynch(java.lang.String cmdname)
Asynchronous command_inout. |
int |
command_inout_asynch(java.lang.String cmdname,
boolean forget)
Asynchronous command_inout. |
void |
command_inout_asynch(java.lang.String cmdname,
CallBack cb)
Asynchronous command_inout using callback for reply. |
int |
command_inout_asynch(java.lang.String cmdname,
DeviceData data_in)
Asynchronous command_inout. |
int |
command_inout_asynch(java.lang.String cmdname,
DeviceData data_in,
boolean forget)
Asynchronous command_inout. |
void |
command_inout_asynch(java.lang.String cmdname,
DeviceData argin,
CallBack cb)
Asynchronous command_inout using callback for reply. |
DeviceData |
command_inout_reply(int id)
Read Asynchronous command_inout reply. |
DeviceData |
command_inout_reply(int id,
int timeout)
Read Asynchronous command_inout reply. |
CommandInfo |
command_query(java.lang.String cmdname)
return the IDL device command_query for the specified command. |
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. |
java.lang.String[] |
dev_inform()
Returns TACO device information. |
void |
export_device(DbDevExportInfo devinfo)
Update the export info for this device in the database. |
DeviceProxy |
get_adm_dev()
|
java.lang.String |
get_alias()
Get alias for the device |
void |
get_asynch_replies()
Fire callback methods for all asynchronous requests(cmd and attr) with already arrived replies. |
void |
get_asynch_replies(int timeout)
Fire callback methods for all asynchronous requests(cmd and attr) with already arrived replies. |
AttributeInfo[] |
get_attribute_config()
Deprecated. use get_attribute_info() |
AttributeInfo |
get_attribute_config(java.lang.String attname)
Deprecated. use get_attribute_info(String attname) |
AttributeInfo[] |
get_attribute_config(java.lang.String[] attnames)
Deprecated. use get_attribute_info(String[] attnames) |
AttributeInfoEx[] |
get_attribute_info_ex()
Get all attributes info for the specified device. |
AttributeInfoEx |
get_attribute_info_ex(java.lang.String attname)
Get the attribute info for the specified device. |
AttributeInfoEx[] |
get_attribute_info_ex(java.lang.String[] attnames)
Get the extended attributes configuration for the specified device. |
AttributeInfo[] |
get_attribute_info()
Get all attributes info for the specified device. |
AttributeInfo |
get_attribute_info(java.lang.String attname)
Get the attribute info for the specified device. |
AttributeInfo[] |
get_attribute_info(java.lang.String[] attnames)
Get the attributes configuration for the specified device. |
java.lang.String[] |
get_attribute_list()
Query the device for attribute config and returns names only. |
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()
Returns the class inheritance for the device [0] Device Class [1] Class from the device class is inherited. |
java.lang.String |
get_class()
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()
|
int |
get_event_queue_size()
returns the number of EventData in queue. |
int |
get_event_queue_size(int event_type)
returns the number of EventData in queue for specifed type. |
EventData[] |
get_events()
returns all EventData in queue. |
EventData[] |
get_events(int event_type)
returns all event in queue for specified type. |
DbEventImportInfo |
get_evt_import_info()
|
DeviceInfo |
get_info()
Query the database for the info of this device. |
long |
get_last_event_date()
returns number of milliseconds since EPOCH for the last EventData in queue. |
int |
get_logging_level()
get logging level from the device. |
java.lang.String[] |
get_logging_target()
get logging target from the device. |
EventData |
get_next_event()
returns next EventData in queue. |
EventData |
get_next_event(int event_type)
returns next event in queue for specified type. |
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. |
int |
get_rpc_protocol()
|
DeviceProxy |
getAdm_dev()
|
java.lang.String[] |
getAttnames_array()
|
DbDevice |
getDb_dev()
|
IDeviceProxyDAO |
getDeviceProxy()
|
EventQueue |
getEventQueue()
|
java.lang.String |
getFull_class_name()
|
LockerInfo |
getLockerInfo()
Returns the device lock info |
java.lang.String |
getLockerStatus()
Returns the device lock status |
DbDevImportInfo |
import_device()
Query the database for the export info of this device. |
static boolean |
isCheck_idl()
|
boolean |
isLocked()
Returns true if the device is locked |
boolean |
isLockedByMe()
Returns true if the device is locked by this process |
void |
lock()
Lock the device |
void |
lock(int validity)
Lock the device |
static void |
main(java.lang.String[] args)
Just a main method to check API methods. |
java.lang.String |
name()
return the device name. |
int |
pending_asynch_call(int reply_model)
return the still pending asynchronous call for a reply model. |
void |
poll_attribute(java.lang.String attname,
int period)
Add a attribute to be polled for the device. |
void |
poll_command(java.lang.String cmdname,
int period)
Add a command to be polled for the device. |
java.lang.String[] |
polling_status()
Returns the polling status for the device. |
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 prop)
Insert or update a property for this device The property name and its value are specified by the DbDatum |
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. |
int |
read_attribute_asynch(java.lang.String attname)
Asynchronous read_attribute. |
int |
read_attribute_asynch(java.lang.String[] attnames)
Asynchronous read_attribute. |
void |
read_attribute_asynch(java.lang.String[] attnames,
CallBack cb)
Asynchronous read_attribute using callback for reply. |
void |
read_attribute_asynch(java.lang.String attname,
CallBack cb)
Asynchronous read_attribute using callback for reply. |
DeviceAttribute[] |
read_attribute_reply(int id)
Read Asynchronous read_attribute reply. |
DeviceAttribute[] |
read_attribute_reply(int id,
int timeout)
Read Asynchronous read_attribute reply. |
AttributeValue |
read_attribute_value(java.lang.String attname)
return directly AttributeValue object without creation of DeviceAttribute object |
DeviceAttribute |
read_attribute(java.lang.String attname)
Read the attribute value for the specified device. |
DeviceAttribute[] |
read_attribute(java.lang.String[] attnames)
Read the attribute values for the specified device. |
void |
remove_logging_target(java.lang.String target_type,
java.lang.String target_name)
Removes a new logging target to the device. |
void |
set_attribute_config(AttributeInfo[] attr)
Deprecated. use set_attribute_info(AttributeInfo[] attr) |
void |
set_attribute_info(AttributeInfo[] attr)
Update the attributes info for the specified device. |
void |
set_attribute_info(AttributeInfoEx[] attr)
Update the attributes extended info for the specified device. |
void |
set_evt_import_info(DbEventImportInfo info)
|
void |
set_logging_level(int level)
Set logging level from the device. |
void |
set_rpc_protocol(int mode)
Execute the dev_rpc_protocol TACO command to change RPC protocol mode. |
void |
setAdm_dev(DeviceProxy adm_dev)
|
void |
setAttnames_array(java.lang.String[] attnames_array)
|
void |
setDb_dev(DbDevice db_dev)
|
void |
setDeviceProxy(IDeviceProxyDAO deviceProxy)
|
void |
setEventQueue(EventQueue eq)
|
void |
setFull_class_name(java.lang.String full_class_name)
|
DevState |
state()
return the device state read from CORBA attribute. |
DevState |
state(boolean src)
return the device state. |
java.lang.String |
status()
return the device status read from CORBA attribute. |
java.lang.String |
status(boolean src)
return the device status. |
void |
stop_poll_attribute(java.lang.String attname)
Remove attribute of polled object list |
void |
stop_poll_command(java.lang.String cmdname)
Remove command of polled object list |
int |
subscribe_event(java.lang.String attr_name,
int event,
CallBack callback,
java.lang.String[] filters)
Subscribe to an event. |
int |
subscribe_event(java.lang.String attr_name,
int event,
CallBack callback,
java.lang.String[] filters,
boolean stateless)
Subscribe to an event. |
int |
subscribe_event(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()
Unexport the device in database. |
int |
unlock()
Unlock the device |
void |
unsubscribe_event(int event_id)
Unsubscribe to an event. |
boolean |
use_db()
|
int |
write_attribute_asynch(DeviceAttribute attr)
Asynchronous write_attribute. |
int |
write_attribute_asynch(DeviceAttribute[] attribs)
Asynchronous write_attribute. |
int |
write_attribute_asynch(DeviceAttribute[] attribs,
boolean forget)
Asynchronous write_attribute. |
void |
write_attribute_asynch(DeviceAttribute[] attribs,
CallBack cb)
Asynchronous write_attribute using callback for reply. |
int |
write_attribute_asynch(DeviceAttribute attr,
boolean forget)
Asynchronous write_attribute. |
void |
write_attribute_asynch(DeviceAttribute attr,
CallBack cb)
Asynchronous write_attribute using callback for reply. |
void |
write_attribute_reply(int id)
check for Asynchronous write_attribute reply. |
void |
write_attribute_reply(int id,
int timeout)
check for Asynchronous write_attribute reply. |
void |
write_attribute(DeviceAttribute devattr)
Write the attribute value for the specified device. |
void |
write_attribute(DeviceAttribute[] devattr)
Write the attribute values for the specified device. |
DeviceAttribute |
write_read_attribute(DeviceAttribute devattr)
Write and then read the attribute values, for the specified device. |
DeviceAttribute[] |
write_read_attribute(DeviceAttribute[] devattr)
Write and then read the attribute values, for the specified device. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeviceProxy()
throws DevFailed
DevFailed
public DeviceProxy(DbDevImportInfo info)
throws DevFailed
info - exported info of the device to be imported.
DevFailed
public DeviceProxy(java.lang.String devname)
throws DevFailed
devname - name of the device to be imported.
DevFailed
public DeviceProxy(java.lang.String devname,
java.lang.String ior)
throws DevFailed
devname - name of the device to be imported.ior - ior string used to import device
DevFailed
public DeviceProxy(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 boolean use_db()
public Database get_db_obj()
throws DevFailed
DevFailedpublic java.lang.String name()
public java.lang.String status()
throws DevFailed
DevFailed
public java.lang.String status(boolean src)
throws DevFailed
src - 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()
throws DevFailed
DevFailed
public DevState state(boolean src)
throws DevFailed
src - 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(java.lang.String cmdname)
throws DevFailed
cmdname - command name to be used for the command_query
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 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_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 prop)
throws DevFailed
prop - Property name and value
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 java.lang.String[] get_attribute_list()
throws DevFailed
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 - DbAttribute object for specified attribute.
DevFailed
public void delete_attribute_property(DbAttribute[] attr)
throws DevFailed
attr - DbAttribute array object for specified attribute.
DevFailed
public DbAttribute[] get_attribute_property(java.lang.String[] attnames)
throws DevFailed
attnames - list of 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 AttributeInfo[] get_attribute_info(java.lang.String[] attnames)
throws DevFailed
attnames - attribute names to request config.
DevFailed
public AttributeInfoEx[] get_attribute_info_ex(java.lang.String[] attnames)
throws DevFailed
attnames - attribute names to request config.
DevFailed
public AttributeInfo[] get_attribute_config(java.lang.String[] attnames)
throws DevFailed
attnames - attribute names to request config.
DevFailed
public AttributeInfo get_attribute_info(java.lang.String attname)
throws DevFailed
attname - attribute name to request config.
DevFailed
public AttributeInfoEx get_attribute_info_ex(java.lang.String attname)
throws DevFailed
attname - attribute name to request config.
DevFailed
public AttributeInfo get_attribute_config(java.lang.String attname)
throws DevFailed
attname - attribute name to request config.
DevFailed
public AttributeInfo[] get_attribute_info()
throws DevFailed
DevFailed
public AttributeInfoEx[] get_attribute_info_ex()
throws DevFailed
DevFailed
public AttributeInfo[] get_attribute_config()
throws DevFailed
DevFailed
public void set_attribute_info(AttributeInfo[] attr)
throws DevFailed
attr - the attributes info.
DevFailed
public void set_attribute_info(AttributeInfoEx[] attr)
throws DevFailed
attr - the attributes info.
DevFailed
public void set_attribute_config(AttributeInfo[] attr)
throws DevFailed
attr - the attributes configuration.
DevFailed
public DeviceAttribute read_attribute(java.lang.String attname)
throws DevFailed
attname - attribute name to request value.
DevFailed
public AttributeValue read_attribute_value(java.lang.String attname)
throws DevFailed
DevFailed
public DeviceAttribute[] read_attribute(java.lang.String[] attnames)
throws DevFailed
attnames - attribute names to request values.
DevFailed
public void write_attribute(DeviceAttribute devattr)
throws DevFailed
devattr - attribute name and value.
DevFailed
public void write_attribute(DeviceAttribute[] devattr)
throws DevFailed
devattr - attribute names and values.
DevFailed
public DeviceAttribute write_read_attribute(DeviceAttribute devattr)
throws DevFailed
devattr - attribute names and values.
DevFailed
public DeviceAttribute[] write_read_attribute(DeviceAttribute[] devattr)
throws DevFailed
devattr - attribute names and values.
DevFailed
public DeviceProxy get_adm_dev()
throws DevFailed
DevFailed
public void poll_command(java.lang.String cmdname,
int period)
throws DevFailed
cmdname - command name to be polled.period - polling period.
DevFailed
public void poll_attribute(java.lang.String attname,
int period)
throws DevFailed
attname - attribute name to be polled.period - polling period.
DevFailed
public void stop_poll_command(java.lang.String cmdname)
throws DevFailed
cmdname - command name to be removed of polled object list.
DevFailed
public void stop_poll_attribute(java.lang.String attname)
throws DevFailed
attname - attribute name to be removed of polled object list.
DevFailed
public java.lang.String[] polling_status()
throws DevFailed
DevFailed
public DeviceDataHistory[] command_history(java.lang.String cmdname,
int nb)
throws DevFailed
cmdname - command name to read polled history.nb - nb data to read.
DevFailed
public DeviceDataHistory[] attribute_history(java.lang.String attname,
int nb)
throws DevFailed
attname - attribute name to read polled history.nb - nb data to read.
DevFailed
public DeviceDataHistory[] command_history(java.lang.String cmdname)
throws DevFailed
cmdname - command name to read polled history.
DevFailed
public DeviceDataHistory[] attribute_history(java.lang.String attname)
throws DevFailed
attname - attribute name to read polled history.
DevFailed
public int get_attribute_polling_period(java.lang.String attname)
throws DevFailed
attname - specified attribute name.
DevFailed
public int get_command_polling_period(DeviceProxy deviceProxy,
java.lang.String cmdname)
throws DevFailed
cmdname - specified attribute name.
DevFailed
public int command_inout_asynch(java.lang.String cmdname,
DeviceData data_in)
throws DevFailed
cmdname - command name.data_in - input argument command.
DevFailed
public int command_inout_asynch(java.lang.String cmdname)
throws DevFailed
cmdname - command name.
DevFailed
public int command_inout_asynch(java.lang.String cmdname,
boolean forget)
throws DevFailed
cmdname - command name.forget - forget the response if true
DevFailed
public int command_inout_asynch(java.lang.String cmdname,
DeviceData data_in,
boolean forget)
throws DevFailed
cmdname - command name.data_in - input argument command.forget - forget the response if true
DevFailed
public void command_inout_asynch(java.lang.String cmdname,
DeviceData argin,
CallBack cb)
throws DevFailed
cmdname - Command name.argin - Input argument command.cb - a CallBack object instance.
DevFailed
public void command_inout_asynch(java.lang.String cmdname,
CallBack cb)
throws DevFailed
cmdname - Command name.cb - a CallBack object instance.
DevFailed
public DeviceData command_inout_reply(int id,
int timeout)
throws DevFailed,
AsynReplyNotArrived
id - 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(int id)
throws DevFailed,
AsynReplyNotArrived
id - asynchronous call id (returned by command_inout_asynch).
DevFailed
AsynReplyNotArrived
public int read_attribute_asynch(java.lang.String attname)
throws DevFailed
attname - Attribute name.
DevFailed
public int read_attribute_asynch(java.lang.String[] attnames)
throws DevFailed
attnames - Attribute names.
DevFailed
public DeviceAttribute[] read_attribute_reply(int id,
int timeout)
throws DevFailed,
AsynReplyNotArrived
id - 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(int id)
throws DevFailed,
AsynReplyNotArrived
id - asynchronous call id (returned by read_attribute_asynch).
DevFailed
AsynReplyNotArrived
public void read_attribute_asynch(java.lang.String attname,
CallBack cb)
throws DevFailed
attname - attribute name.cb - a CallBack object instance.
DevFailed
public void read_attribute_asynch(java.lang.String[] attnames,
CallBack cb)
throws DevFailed
attnames - attribute names.cb - a CallBack object instance.
DevFailed
public int write_attribute_asynch(DeviceAttribute attr)
throws DevFailed
attr - Attribute value (name, writing value...)
DevFailed
public int write_attribute_asynch(DeviceAttribute attr,
boolean forget)
throws DevFailed
attr - Attribute value (name, writing value...)forget - forget the response if true
DevFailed
public int write_attribute_asynch(DeviceAttribute[] attribs)
throws DevFailed
attribs - Attribute values (name, writing value...)
DevFailed
public int write_attribute_asynch(DeviceAttribute[] attribs,
boolean forget)
throws DevFailed
attribs - Attribute values (name, writing value...)forget - forget the response if true
DevFailed
public void write_attribute_reply(int id)
throws DevFailed,
AsynReplyNotArrived
id - asynchronous call id (returned by read_attribute_asynch).
DevFailed
AsynReplyNotArrived
public void write_attribute_reply(int id,
int timeout)
throws DevFailed,
AsynReplyNotArrived
id - 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(DeviceAttribute attr,
CallBack cb)
throws DevFailed
attr - Attribute values (name, writing value...)cb - a CallBack object instance.
DevFailed
public void write_attribute_asynch(DeviceAttribute[] attribs,
CallBack cb)
throws DevFailed
attribs - Attribute values (name, writing value...)cb - a CallBack object instance.
DevFailedpublic int pending_asynch_call(int reply_model)
reply_model - ApiDefs.ALL_ASYNCH, POLLING or CALLBACK.public void get_asynch_replies()
public void get_asynch_replies(int timeout)
public void add_logging_target(java.lang.String target_type,
java.lang.String target_name)
throws DevFailed
DevFailed
public void add_logging_target(java.lang.String target)
throws DevFailed
target - The target for logging (e.g. file::/tmp/logging_device).
DevFailed
public void remove_logging_target(java.lang.String target_type,
java.lang.String target_name)
throws DevFailed
DevFailed
public java.lang.String[] get_logging_target()
throws DevFailed
DevFailed
public int get_logging_level()
throws DevFailed
DevFailed
public void set_logging_level(int level)
throws DevFailed
level - device's logging level: (ApiDefs.LOGGING_OFF,
ApiDefs.LOGGING_FATAL, ApiDefs.LOGGING_ERROR,
ApiDefs.LOGGING_INFO, ApiDefs.LOGGING_DEBUG)
DevFailed
public void lock()
throws DevFailed
DevFailed
public void lock(int validity)
throws DevFailed
validity - Lock validity (in seconds)
DevFailed
public int unlock()
throws DevFailed
DevFailed
public boolean isLocked()
throws DevFailed
DevFailed
public boolean isLockedByMe()
throws DevFailed
DevFailed
public java.lang.String getLockerStatus()
throws DevFailed
DevFailed
public LockerInfo getLockerInfo()
throws DevFailed
DevFailed
public java.lang.String[] dev_inform()
throws DevFailed
DevFailed
public void set_rpc_protocol(int mode)
throws DevFailed
mode - RPC protocol mode to be seted (TangoApi.TacoDevice.D_TCP
or TangoApi.TacoDevice.D_UDP).
DevFailed
public int get_rpc_protocol()
throws DevFailed
DevFailedpublic static void main(java.lang.String[] args)
public int subscribe_event(java.lang.String attr_name,
int event,
CallBack callback,
java.lang.String[] filters)
throws DevFailed
attr_name - attribute name.event - event name.callback - event callback.
DevFailed
public int subscribe_event(java.lang.String attr_name,
int event,
CallBack callback,
java.lang.String[] filters,
boolean stateless)
throws DevFailed
attr_name - attribute name.event - event name.callback - event callback.stateless - If true, do not throw exception if connection failed.
DevFailed
public int subscribe_event(java.lang.String attr_name,
int event,
int max_size,
java.lang.String[] filters,
boolean stateless)
throws DevFailed
attr_name - attribute name.event - event name.max_size - event queue maximum size.stateless - If true, do not throw exception if connection failed.
DevFailedpublic void setEventQueue(EventQueue eq)
public EventQueue getEventQueue()
public int get_event_queue_size()
public int get_event_queue_size(int event_type)
event_type - Specified event type.
public EventData get_next_event()
throws DevFailed
DevFailed
public EventData get_next_event(int event_type)
throws DevFailed
event_type - Specified event type.
DevFailed
public long get_last_event_date()
throws DevFailed
DevFailedpublic EventData[] get_events()
public EventData[] get_events(int event_type)
event_type - Specified event type.
public void unsubscribe_event(int event_id)
throws DevFailed
event_id - event identifier.
DevFailedpublic IDeviceProxyDAO getDeviceProxy()
public void setDeviceProxy(IDeviceProxyDAO deviceProxy)
public DeviceProxy getAdm_dev()
public void setAdm_dev(DeviceProxy adm_dev)
public java.lang.String[] getAttnames_array()
public void setAttnames_array(java.lang.String[] attnames_array)
public DbDevice getDb_dev()
public void setDb_dev(DbDevice db_dev)
public java.lang.String getFull_class_name()
public void setFull_class_name(java.lang.String full_class_name)
public static boolean isCheck_idl()
public DbEventImportInfo get_evt_import_info()
public void set_evt_import_info(DbEventImportInfo info)
|
TANGO Java API ( TangORB-7.3.3.jar) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||