|
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
public class Connection
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 | |
|---|---|
Connection()
Connection constructor. |
|
Connection(DbDevImportInfo info)
Connection constructor. |
|
Connection(java.lang.String devname)
Connection constructor. |
|
Connection(java.lang.String devname,
boolean check_access)
Connection constructor. |
|
Connection(java.lang.String host,
java.lang.String port)
Connection constructor. |
|
Connection(java.lang.String host,
java.lang.String port,
boolean auto_reconnect)
Connection constructor. |
|
Connection(java.lang.String devname,
java.lang.String param,
int src)
Connection constructor. |
|
Connection(java.lang.String devname,
java.lang.String host,
java.lang.String port)
Connection constructor. |
|
| Method Summary | |
|---|---|
java.lang.String |
adm_name()
return the administartion device name. |
java.lang.String[] |
black_box(int length)
Execute a info command to a device server. |
void |
build_connection()
|
void |
checkIfTaco(java.lang.String cmdname)
if not a TACO command then throw a DevFailed Exception. |
void |
checkIfTango(java.lang.String cmdname)
if not a TACO command then throw a DevFailed Exception. |
DeviceData |
command_inout(java.lang.String command)
Send a command to a device server. |
DeviceData |
command_inout(java.lang.String command,
DeviceData argin)
Send a command to a device server. |
CommandInfo[] |
command_list_query()
Execute a command_list_query command to a device server. |
java.lang.String |
description()
return the device connected dexcription. |
void |
dev_import()
Really build the device connection. |
boolean |
equals(Connection connection)
Returns true if TANGO_HOST and device name of this obejct is identical the specified connection. |
java.lang.String |
get_class_name()
return the device connected class name. |
Device |
get_device()
|
java.lang.String |
get_host_name()
return the device connected host name. |
int |
get_idl_version()
Returns the IDL version supported |
java.lang.String |
get_ior()
|
java.lang.String |
get_name()
return the device connected name. |
java.lang.String |
get_server_name()
return the device connected server name. |
DevSource |
get_source()
returns the device data source |
java.lang.String |
get_tango_host()
return the name of connection (host:port) |
int |
get_timeout_millis()
return the timeout value for a device call. |
int |
get_timeout()
Deprecated. use get_timeout_millis() instead |
boolean |
get_transparency_reconnection()
return the value of transparent_reconnection |
int |
getAccessControl()
|
int |
getDev_timeout()
|
IConnectionDAO |
getIConnection()
|
org.omg.CORBA.Object |
getObj()
|
long |
getPrev_failed_t0()
|
DevFailed |
getPrev_failed()
|
DevInfo_3 |
info_3()
Execute a info command to a device server. |
DevInfo |
info()
Execute a info command to a device server. |
boolean |
is_taco()
return true if device is a taco device |
boolean |
isAllowedCommand(java.lang.String cmd)
|
boolean |
isAlready_connected()
|
boolean |
isDevice_is_dbase()
|
boolean |
isPrev_failed()
Return true if prev_failed is not equal to true |
long |
ping()
Execute a ping command to a device server. |
void |
set_source(DevSource new_src)
Set the device data source |
void |
set_timeout_millis(int millis)
Change the timeout value for a device call. |
void |
set_transparency_reconnection(boolean val)
set the value of transparent_reconnection |
void |
setAccessControl(int access)
|
void |
setAlready_connected(boolean already_connected)
|
void |
setDev_timeout(int dev_timeout)
|
void |
setDevice_is_dbase(boolean device_is_dbase)
|
void |
setIConnection(IConnectionDAO connection)
|
void |
setObj(org.omg.CORBA.Object obj)
|
void |
setPrev_failed_t0(long prev_failed_t0)
|
void |
setPrev_failed(DevFailed prev_failed)
|
void |
throw_dev_failed(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 Connection()
throws DevFailed
DevFailed
public Connection(java.lang.String host,
java.lang.String port)
throws DevFailed
host - host where database is running.port - port for database connection.
DevFailed
public Connection(java.lang.String host,
java.lang.String port,
boolean auto_reconnect)
throws DevFailed
host - host where database is running.port - port for database connection.auto_reconnect - do not reconnect if false.
DevFailed
public Connection(java.lang.String devname)
throws DevFailed
devname - name of the device to be imported.
DevFailed
public Connection(DbDevImportInfo info)
throws DevFailed
info - exported info of the device to be imported.
DevFailed
public Connection(java.lang.String devname,
boolean check_access)
throws DevFailed
devname - name of the device to be imported.check_access - set check_access value
DevFailed
public Connection(java.lang.String devname,
java.lang.String param,
int src)
throws DevFailed
devname - name of the device to be imported.param - String parameter to import device.src - Source to import device (ior, dbase...)
DevFailed
public Connection(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 Device get_device()
public boolean equals(Connection connection)
connection - The specified connection to compare.
public void build_connection()
throws DevFailed
DevFailed
public java.lang.String get_ior()
throws DevFailed
DevFailed
public void dev_import()
throws DevFailed
DevFailed
public void set_timeout_millis(int millis)
throws DevFailed
millis - New value of the timeout in milliseconds.
DevFailed - if orb.create_policy throws an org.omg.CORBA.PolicyError
exception.public int get_timeout()
public int get_timeout_millis()
throws DevFailed
DevFailed
public void throw_dev_failed(java.lang.Exception e,
java.lang.String command,
boolean from_inout_cmd)
throws DevFailed
DevFailed
public DeviceData command_inout(java.lang.String command,
DeviceData argin)
throws DevFailed
command - Command name to send to the device.argin - input command argument.
DevFailed
public DeviceData command_inout(java.lang.String command)
throws DevFailed
command - Command name.
DevFailed
public long ping()
throws DevFailed
DevFailed
public java.lang.String[] black_box(int length)
throws DevFailed
DevFailed
public DevInfo_3 info_3()
throws DevFailed
DevFailed
public DevInfo info()
throws DevFailed
DevFailed
public CommandInfo[] command_list_query()
throws DevFailed
DevFailed
public int get_idl_version()
throws DevFailed
DevFailed
public DevSource get_source()
throws DevFailed
DevFailed
public void set_source(DevSource new_src)
throws DevFailed
new_src - new data source (CACHE_DEV, CACHE or DEV).
DevFailedpublic java.lang.String get_name()
public java.lang.String get_host_name()
throws DevFailed
DevFailed
public java.lang.String get_class_name()
throws DevFailed
DevFailed
public java.lang.String get_server_name()
throws DevFailed
DevFailed
public java.lang.String description()
throws DevFailed
DevFailed
public java.lang.String adm_name()
throws DevFailed
DevFailed
public java.lang.String get_tango_host()
throws DevFailed
DevFailedpublic boolean is_taco()
public void checkIfTaco(java.lang.String cmdname)
throws DevFailed
cmdname - command name to be put inside reason and origin fields.
DevFailed
public void checkIfTango(java.lang.String cmdname)
throws DevFailed
cmdname - command name to be put inside reason and origin fields.
DevFailedpublic boolean get_transparency_reconnection()
public void set_transparency_reconnection(boolean val)
public int getAccessControl()
public void setAccessControl(int access)
public boolean isAllowedCommand(java.lang.String cmd)
throws DevFailed
DevFailedpublic IConnectionDAO getIConnection()
public void setIConnection(IConnectionDAO connection)
public boolean isAlready_connected()
public void setAlready_connected(boolean already_connected)
public int getDev_timeout()
public void setDev_timeout(int dev_timeout)
public boolean isDevice_is_dbase()
public void setDevice_is_dbase(boolean device_is_dbase)
public org.omg.CORBA.Object getObj()
public void setObj(org.omg.CORBA.Object obj)
public boolean isPrev_failed()
public DevFailed getPrev_failed()
public void setPrev_failed(DevFailed prev_failed)
public long getPrev_failed_t0()
public void setPrev_failed_t0(long prev_failed_t0)
|
TANGO Java API ( TangORB-7.3.3.jar) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||