|
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.ApiUtilDAODefaultImpl
public class ApiUtilDAODefaultImpl
Class Description: This class manage a static vector of Database object.
Usage example:
| Constructor Summary | |
|---|---|
ApiUtilDAODefaultImpl()
|
|
| Method Summary | |
|---|---|
Database |
change_db_obj(java.lang.String host,
java.lang.String port)
Return the database object created for specified host and port, and set this database object for all following uses.. |
void |
create_event_consumer()
Create the event consumer. |
fr.esrf.TangoApi.AsyncCallObject |
get_async_object(int id)
Return the Asynch Object in hash table for the id |
org.omg.CORBA.Request |
get_async_request(int id)
Return the request in hash table for the id |
int |
get_asynch_cb_sub_model()
Set the callback sub model used (ApiDefs.PUSH_CALLBACK or ApiDefs.PULL_CALLBACK). |
void |
get_asynch_replies()
Fire callback methods for all (any device) asynchronous requests(cmd and attr) with already arrived replies. |
void |
get_asynch_replies(DeviceProxy dev)
Fire callback methods for all (any device) asynchronous requests(cmd and attr) with already arrived replies. |
void |
get_asynch_replies(DeviceProxy dev,
int timeout)
Fire callback methods for all (any device) asynchronous requests(cmd and attr) with already arrived replies. |
void |
get_asynch_replies(int timeout)
Fire callback methods for all (any device) asynchronous requests(cmd and attr) with already arrived replies. |
Database |
get_db_obj()
Return the database object created with TANGO_HOST environment variable . |
Database |
get_db_obj(java.lang.String tango_host)
Return the database object created for specified host and port. |
Database |
get_db_obj(java.lang.String host,
java.lang.String port)
Return the database object created for specified host and port. |
Database |
get_default_db_obj()
Return the database object created with TANGO_HOST environment variable . |
IEventConsumer |
get_event_consumer()
Get the event consumer singleton object. |
org.omg.CORBA.ORB |
get_orb()
Return the orb object |
int |
getReconnectionDelay()
Return reconnection delay for controle system. |
boolean |
in_server()
Return true if in server code or false if in client code. |
java.lang.String[] |
parseTangoHost(java.lang.String tgh)
Parse Tango host (check multi Tango_host) |
int |
pending_asynch_call(DeviceProxy dev,
int reply_model)
return the still pending asynchronous call for a reply model. |
int |
pending_asynch_call(int reply_model)
return the still pending asynchronous call for a reply model. |
int |
put_async_request(fr.esrf.TangoApi.AsyncCallObject aco)
Add request in hash table and return id |
java.lang.String |
qualityName(AttrQuality att_q)
|
java.lang.String |
qualityName(short att_q_val)
|
void |
remove_async_request(int id)
Remove asynchronous call request and id from hashtable. |
static void |
removePendingRepliesOfDevice(Connection connection)
|
static void |
removePendingRepliesOfRequest(org.omg.CORBA.Request request)
|
void |
set_async_reply_cb(int id,
CallBack cb)
Set the Callback object in AsyncCallObject for the id key. |
void |
set_async_reply_model(int id,
int reply_model)
Set the reply_model in AsyncCallObject for the id key. |
void |
set_asynch_cb_sub_model(int model)
Return the callback sub model used. |
Database |
set_db_obj(java.lang.String tango_host)
Return the database object created for specified host and port. |
Database |
set_db_obj(java.lang.String host,
java.lang.String port)
Return the database object created for specified host and port, and set this database object for all following uses.. |
void |
set_in_server(boolean val)
Return the orb object |
java.lang.String |
stateName(DevState state)
|
java.lang.String |
stateName(short state_val)
|
DbAttribute[] |
toDbAttributeArray(java.lang.String[] array,
int mode)
Convert a StringArray to a DbAttribute class array |
java.lang.String[] |
toStringArray(java.lang.String argin)
Convert arguments to one String array |
java.lang.String[] |
toStringArray(java.lang.String objname,
DbAttribute[] attr,
int mode)
Convert a DbAttribute class array to a StringArray. |
java.lang.String[] |
toStringArray(java.lang.String objname,
java.lang.String argin)
Convert arguments to one String array |
java.lang.String[] |
toStringArray(java.lang.String objname,
java.lang.String[] argin)
Convert arguments to one String array |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ApiUtilDAODefaultImpl()
| Method Detail |
|---|
public Database get_db_obj(java.lang.String tango_host)
throws DevFailed
get_db_obj in interface IApiUtilDAOtango_host - host and port (hostname:portnumber) where database is running.
DevFailed
public Database get_default_db_obj()
throws DevFailed
get_default_db_obj in interface IApiUtilDAODevFailed
public Database get_db_obj()
throws DevFailed
get_db_obj in interface IApiUtilDAODevFailed
public Database get_db_obj(java.lang.String host,
java.lang.String port)
throws DevFailed
get_db_obj in interface IApiUtilDAOhost - host where database is running.port - port for database connection.
DevFailed
public Database change_db_obj(java.lang.String host,
java.lang.String port)
throws DevFailed
change_db_obj in interface IApiUtilDAOhost - host where database is running.port - port for database connection.
DevFailed
public Database set_db_obj(java.lang.String host,
java.lang.String port)
throws DevFailed
set_db_obj in interface IApiUtilDAOhost - host where database is running.port - port for database connection.
DevFailed
public Database set_db_obj(java.lang.String tango_host)
throws DevFailed
set_db_obj in interface IApiUtilDAOtango_host - host and port (hostname:portnumber) where database is running.
DevFailed
public org.omg.CORBA.ORB get_orb()
throws DevFailed
get_orb in interface IApiUtilDAODevFailedpublic void set_in_server(boolean val)
set_in_server in interface IApiUtilDAOpublic boolean in_server()
in_server in interface IApiUtilDAOpublic int getReconnectionDelay()
IApiUtilDAO
getReconnectionDelay in interface IApiUtilDAOpublic int put_async_request(fr.esrf.TangoApi.AsyncCallObject aco)
put_async_request in interface IApiUtilDAO
public org.omg.CORBA.Request get_async_request(int id)
throws DevFailed
get_async_request in interface IApiUtilDAODevFailedpublic fr.esrf.TangoApi.AsyncCallObject get_async_object(int id)
get_async_object in interface IApiUtilDAOpublic void remove_async_request(int id)
remove_async_request in interface IApiUtilDAOpublic static void removePendingRepliesOfRequest(org.omg.CORBA.Request request)
public static void removePendingRepliesOfDevice(Connection connection)
public void set_async_reply_model(int id,
int reply_model)
set_async_reply_model in interface IApiUtilDAO
public void set_async_reply_cb(int id,
CallBack cb)
set_async_reply_cb in interface IApiUtilDAO
public int pending_asynch_call(DeviceProxy dev,
int reply_model)
pending_asynch_call in interface IApiUtilDAOdev - DeviceProxy object.reply_model - ApiDefs.ALL_ASYNCH, POLLING or CALLBACK.public int pending_asynch_call(int reply_model)
pending_asynch_call in interface IApiUtilDAOreply_model - ApiDefs.ALL_ASYNCH, POLLING or CALLBACK.public void set_asynch_cb_sub_model(int model)
set_asynch_cb_sub_model in interface IApiUtilDAOmodel - ApiDefs.PUSH_CALLBACK or ApiDefs.PULL_CALLBACK.public int get_asynch_cb_sub_model()
get_asynch_cb_sub_model in interface IApiUtilDAOpublic void get_asynch_replies()
get_asynch_replies in interface IApiUtilDAOpublic void get_asynch_replies(int timeout)
get_asynch_replies in interface IApiUtilDAOpublic void get_asynch_replies(DeviceProxy dev)
get_asynch_replies in interface IApiUtilDAO
public void get_asynch_replies(DeviceProxy dev,
int timeout)
get_asynch_replies in interface IApiUtilDAO
public java.lang.String[] toStringArray(java.lang.String objname,
java.lang.String[] argin)
toStringArray in interface IApiUtilDAO
public java.lang.String[] toStringArray(java.lang.String objname,
java.lang.String argin)
toStringArray in interface IApiUtilDAOpublic java.lang.String[] toStringArray(java.lang.String argin)
toStringArray in interface IApiUtilDAO
public java.lang.String[] toStringArray(java.lang.String objname,
DbAttribute[] attr,
int mode)
toStringArray in interface IApiUtilDAOobjname - object name (used in first index of output array)..attr - DbAttribute array to be converted
public DbAttribute[] toDbAttributeArray(java.lang.String[] array,
int mode)
throws DevFailed
toDbAttributeArray in interface IApiUtilDAOarray - String array to be convertedmode - decode argout params mode (mode=2 added 26/10/04)
DevFailedpublic java.lang.String stateName(DevState state)
stateName in interface IApiUtilDAOpublic java.lang.String stateName(short state_val)
stateName in interface IApiUtilDAOpublic java.lang.String qualityName(AttrQuality att_q)
qualityName in interface IApiUtilDAOpublic java.lang.String qualityName(short att_q_val)
qualityName in interface IApiUtilDAO
public java.lang.String[] parseTangoHost(java.lang.String tgh)
throws DevFailed
parseTangoHost in interface IApiUtilDAODevFailed
public void create_event_consumer()
throws DevFailed
create_event_consumer in interface IApiUtilDAODevFailedpublic IEventConsumer get_event_consumer()
get_event_consumer in interface IApiUtilDAO
|
TANGO Java API ( TangORB-7.3.3.jar) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||