|
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
public class ConnectionDAODefaultImpl
Class Description: This class manage device connection for Tango objects. It is an api between user and IDL Device object.
| 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 | |
|---|---|
ConnectionDAODefaultImpl()
|
|
| Method Summary | |
|---|---|
java.lang.String |
adm_name(Connection connection)
return the administartion device name. |
java.lang.String[] |
black_box(Connection connection,
int length)
Execute a info command to a device server. |
void |
build_connection(Connection connection)
|
void |
checkIfTaco(Connection connection,
java.lang.String cmdname)
if not a TACO command then throw a DevFailed Exception. |
void |
checkIfTango(Connection connection,
java.lang.String cmdname)
if not a TACO command then throw a DevFailed Exception. |
DeviceData |
command_inout(Connection connection,
java.lang.String command)
Send a command to a device server. |
DeviceData |
command_inout(Connection connection,
java.lang.String command,
DeviceData argin)
Send a command to a device server. |
CommandInfo[] |
command_list_query(Connection connection)
Execute a command_list_query command to a device server. |
java.lang.String |
description(Connection connection)
return the device connected dexcription. |
void |
dev_import(Connection connection)
Really build the device connection. |
java.lang.String |
get_class_name(Connection connection)
return the device connected class name. |
Device |
get_device(Connection connection)
|
java.lang.String |
get_host_name(Connection connection)
return the device connected host name. |
int |
get_idl_version(Connection connection)
Returns the IDL version supported |
java.lang.String |
get_ior(Connection connection)
|
java.lang.String |
get_name(Connection connection)
return the device connected name. |
java.lang.String |
get_server_name(Connection connection)
return the device connected server name. |
DevSource |
get_source(Connection connection)
returns the device data source |
java.lang.String |
get_tango_host(Connection connection)
return the name of connection (host:port) |
int |
get_timeout_millis(Connection connection)
return the timeout value for a device call. |
int |
get_timeout(Connection connection)
Deprecated. use get_timeout_millis() instead |
boolean |
get_transparency_reconnection(Connection connection)
return the value of transparent_reconnection |
int |
getAccessControl(Connection connection)
|
DevInfo_3 |
info_3(Connection connection)
Execute a info command to a device server. |
DevInfo |
info(Connection connection)
Execute a info command to a device server. |
void |
init(Connection connection)
Connection constructor. |
void |
init(Connection connection,
DbDevImportInfo info)
Connection constructor. |
void |
init(Connection connection,
java.lang.String devname)
Connection constructor. |
void |
init(Connection connection,
java.lang.String devname,
boolean check_access)
Connection constructor. |
void |
init(Connection connection,
java.lang.String host,
java.lang.String port)
Connection constructor. |
void |
init(Connection connection,
java.lang.String host,
java.lang.String port,
boolean auto_reconnect)
Connection constructor. |
void |
init(Connection connection,
java.lang.String devname,
java.lang.String param,
int src)
Connection constructor. |
void |
init(Connection connection,
java.lang.String devname,
java.lang.String host,
java.lang.String port)
Connection constructor. |
boolean |
is_taco(Connection connection)
return true if device is a taco device |
boolean |
isAllowedCommand(Connection connection,
java.lang.String cmd)
|
long |
ping(Connection connection)
Execute a ping command to a device server. |
void |
set_source(Connection connection,
DevSource new_src)
Set the device data source |
void |
set_timeout_millis(Connection connection,
int millis)
Change the timeout value for a device call. |
void |
set_transparency_reconnection(Connection connection,
boolean val)
set the value of transparent_reconnection |
void |
setAccessControl(Connection connection,
int access)
|
void |
throw_dev_failed(Connection connection,
java.lang.Exception e,
java.lang.String command,
boolean from_inout_cmd)
Build reason and origin of the exception And throw it into a DevFailed exception |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectionDAODefaultImpl()
| Method Detail |
|---|
public Device get_device(Connection connection)
get_device in interface IConnectionDAO
public void init(Connection connection)
throws DevFailed
init in interface IConnectionDAODevFailed
public void init(Connection connection,
java.lang.String host,
java.lang.String port)
throws DevFailed
init in interface IConnectionDAOhost - host where database is running.port - port for database connection.
DevFailed
public void init(Connection connection,
java.lang.String host,
java.lang.String port,
boolean auto_reconnect)
throws DevFailed
init in interface IConnectionDAOhost - host where database is running.port - port for database connection.auto_reconnect - do not reconnect if false.
DevFailed
public void init(Connection connection,
java.lang.String devname)
throws DevFailed
init in interface IConnectionDAOdevname - name of the device to be imported.
DevFailed
public void init(Connection connection,
DbDevImportInfo info)
throws DevFailed
init in interface IConnectionDAOinfo - exported info of the device to be imported.
DevFailed
public void init(Connection connection,
java.lang.String devname,
boolean check_access)
throws DevFailed
init in interface IConnectionDAOdevname - name of the device to be imported.check_access - set check_access value
DevFailed
public void init(Connection connection,
java.lang.String devname,
java.lang.String param,
int src)
throws DevFailed
init in interface IConnectionDAOdevname - name of the device to be imported.param - String parameter to import device.src - Source to import device (ior, dbase...)
DevFailed
public void init(Connection connection,
java.lang.String devname,
java.lang.String host,
java.lang.String port)
throws DevFailed
init in interface IConnectionDAOdevname - name of the device to be imported.host - host where database is running.port - port for database connection.
DevFailed
public void build_connection(Connection connection)
throws DevFailed
build_connection in interface IConnectionDAODevFailed
public java.lang.String get_ior(Connection connection)
throws DevFailed
get_ior in interface IConnectionDAODevFailed
public java.lang.String get_host_name(Connection connection)
throws DevFailed
IConnectionDAO
get_host_name in interface IConnectionDAODevFailed
public java.lang.String get_server_name(Connection connection)
throws DevFailed
IConnectionDAO
get_server_name in interface IConnectionDAODevFailed
public java.lang.String get_class_name(Connection connection)
throws DevFailed
IConnectionDAO
get_class_name in interface IConnectionDAODevFailed
public void dev_import(Connection connection)
throws DevFailed
dev_import in interface IConnectionDAODevFailed
public void set_timeout_millis(Connection connection,
int millis)
throws DevFailed
set_timeout_millis in interface IConnectionDAOmillis - New value of the timeout in milliseconds.
DevFailed - if orb.create_policy throws an org.omg.CORBA.PolicyError
exception.@Deprecated public int get_timeout(Connection connection)
get_timeout in interface IConnectionDAO
public int get_timeout_millis(Connection connection)
throws DevFailed
get_timeout_millis in interface IConnectionDAODevFailed
public void throw_dev_failed(Connection connection,
java.lang.Exception e,
java.lang.String command,
boolean from_inout_cmd)
throws DevFailed
throw_dev_failed in interface IConnectionDAODevFailed
public DeviceData command_inout(Connection connection,
java.lang.String command,
DeviceData argin)
throws DevFailed
command_inout in interface IConnectionDAOcommand - Command name to send to the device.argin - input command argument.
DevFailed
public DeviceData command_inout(Connection connection,
java.lang.String command)
throws DevFailed
command_inout in interface IConnectionDAOcommand - Command name.
DevFailed
public long ping(Connection connection)
throws DevFailed
ping in interface IConnectionDAODevFailed
public java.lang.String[] black_box(Connection connection,
int length)
throws DevFailed
black_box in interface IConnectionDAODevFailed
public DevInfo_3 info_3(Connection connection)
throws DevFailed
info_3 in interface IConnectionDAODevFailed
public DevInfo info(Connection connection)
throws DevFailed
info in interface IConnectionDAODevFailed
public CommandInfo[] command_list_query(Connection connection)
throws DevFailed
command_list_query in interface IConnectionDAODevFailed
public int get_idl_version(Connection connection)
throws DevFailed
get_idl_version in interface IConnectionDAODevFailed
public DevSource get_source(Connection connection)
throws DevFailed
get_source in interface IConnectionDAODevFailed
public void set_source(Connection connection,
DevSource new_src)
throws DevFailed
set_source in interface IConnectionDAOnew_src - new data source (CACHE_DEV, CACHE or DEV).
DevFailedpublic java.lang.String get_name(Connection connection)
get_name in interface IConnectionDAO
public java.lang.String description(Connection connection)
throws DevFailed
description in interface IConnectionDAODevFailed
public java.lang.String adm_name(Connection connection)
throws DevFailed
adm_name in interface IConnectionDAODevFailed
public java.lang.String get_tango_host(Connection connection)
throws DevFailed
get_tango_host in interface IConnectionDAODevFailedpublic boolean is_taco(Connection connection)
is_taco in interface IConnectionDAO
public void checkIfTaco(Connection connection,
java.lang.String cmdname)
throws DevFailed
checkIfTaco in interface IConnectionDAOcmdname - command name to be put inside reason and origin fields.
DevFailed
public void checkIfTango(Connection connection,
java.lang.String cmdname)
throws DevFailed
checkIfTango in interface IConnectionDAOcmdname - command name to be put inside reason and origin fields.
DevFailedpublic boolean get_transparency_reconnection(Connection connection)
get_transparency_reconnection in interface IConnectionDAO
public void set_transparency_reconnection(Connection connection,
boolean val)
set_transparency_reconnection in interface IConnectionDAOpublic int getAccessControl(Connection connection)
getAccessControl in interface IConnectionDAO
public void setAccessControl(Connection connection,
int access)
setAccessControl in interface IConnectionDAO
public boolean isAllowedCommand(Connection connection,
java.lang.String cmd)
throws DevFailed
isAllowedCommand in interface IConnectionDAODevFailed
|
TANGO Java API ( TangORB-7.3.3.jar) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||