|
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.TangoDs.Util
public class Util
This class is a used to store TANGO device server process data and to provide the user with a set of utilities method. This class is implemented using the singleton design pattern. Therefore a device server process can have only one instance of this class and its constructor is not public.
| Field Summary | |
|---|---|
static boolean |
_daemon
|
static int |
_sleep_between_connect
|
static boolean |
_UseDb
|
static UtilPrint |
out1
The UtilPrint object used for level 1 printing |
static UtilPrint |
out2
The UtilPrint object used for level 2 printing |
static UtilPrint |
out3
The UtilPrint object used for level 3 printing |
static UtilPrint |
out4
The UtilPrint object used for level 4 printing |
static UtilPrint |
out5
The UtilPrint object used for level 5 printing |
| Method Summary | |
|---|---|
void |
add_class(java.lang.String name)
Add a new class in this device server (For no database device server) |
void |
connect_db()
Connect the process to the TANGO database. |
static double |
fabs(double d)
idem fabs in c libraray. |
void |
fill_attr_polling_buffer(DeviceImpl dev,
java.lang.String att_name,
TimedAttrData[] data)
This method fills the polling buffer for one polled attribute registered with an update period defined as "externally triggerred" (polling period set to 0) |
java.util.Vector |
get_class_name_list()
Get the class name list (For no database device server) |
Database |
get_database()
Get the TANGO database object reference |
DeviceImpl |
get_device_by_name(java.lang.String dev_name)
Get a device reference from its name |
java.util.Vector |
get_device_list_by_class(java.lang.String class_name)
Get the list of device references for a given TANGO class. |
java.util.Vector |
get_device_list(java.lang.String pattern)
Get the list of device references which name name match the specified pattern Returns a null vector in case there is no device matching the pattern |
java.lang.String |
get_ds_exec_name()
Get the device server executable name. |
java.lang.String |
get_ds_inst_name()
Get the device server instance name. |
java.lang.String |
get_ds_name()
Get the device server name. |
java.lang.String |
get_ds_real_name()
Get the real (not only lowercase) server name. |
DServer |
get_dserver_device()
Get a reference to the dserver device attached to the device server process |
java.lang.String |
get_host_name()
Get the host name where the device server process is running. |
org.omg.CORBA.ORB |
get_orb()
Get a reference to the CORBA ORB |
java.lang.String |
get_pid_str()
Get the device server process identifier as a String Return 0 as process identifer. |
org.omg.PortableServer.POA |
get_poa()
Get a reference to the CORBA Portable Object Adapter (POA). |
static int |
get_serial_model()
Get the serial model (TangoConst.BY_DEVICE, TangoConst.BY_Class or TangoConst.NO_SYNC) |
int |
get_trace_level()
Get the process trace level. |
java.lang.String |
get_version_str()
Get the device server TANGO version. |
static Util |
init(java.lang.String[] argv,
java.lang.String exec_name)
Create and get the singleton object reference. |
static Util |
instance()
Get the singleton object reference. |
static org.omg.CORBA.Any |
return_empty_any(java.lang.String cmd)
Create and return an empty CORBA Any object. |
void |
server_init()
Initialise all the device server pattern(s) embedded in a device server process. |
void |
server_run()
Ask a device server to listen for incoming request. |
void |
set_class_list(java.util.Vector list)
Set the DeviceClass list vector |
static void |
set_serial_model(int model)
Set the serial model. |
void |
set_trace_level(int level)
Set the process trace level. |
void |
unregister_server()
Unregister a device server process from the TANGO database. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static UtilPrint out1
public static UtilPrint out2
public static UtilPrint out3
public static UtilPrint out4
public static UtilPrint out5
public static boolean _UseDb
public static boolean _daemon
public static int _sleep_between_connect
| Method Detail |
|---|
public static Util instance()
public static Util init(java.lang.String[] argv,
java.lang.String exec_name)
argv - The process argument String arrayexec_name - The device server executable name
public void connect_db()
public void server_init()
throws DevFailed
DevFailed - If the device pattern initialistaion failed Click here to read DevFailed exception specificationpublic void server_run()
public java.util.Vector get_device_list(java.lang.String pattern)
pattern - The device name pattern
public java.util.Vector get_device_list_by_class(java.lang.String class_name)
throws DevFailed
class_name - The TANGO device class name
DevFailed - If in the device server process there is no TANGO device
pattern implemented the TANGO device class given as
parameter Click here to read DevFailed exception specification
public DeviceImpl get_device_by_name(java.lang.String dev_name)
throws DevFailed
dev_name - The TANGO device name
DevFailed - If in the device is not served by one device pattern
implemented in this process. Click here to read DevFailed exception specificationpublic DServer get_dserver_device()
public void unregister_server()
public static org.omg.CORBA.Any return_empty_any(java.lang.String cmd)
throws DevFailed
cmd - The cmd name which use this empty Any. Only used to create the
thrown exception (in case of) and in the displayed message
DevFailed - If the Any object creation failed. Click here to read DevFailed exception specificationpublic void set_trace_level(int level)
level - The new process levelpublic int get_trace_level()
public java.lang.String get_ds_inst_name()
public java.lang.String get_ds_exec_name()
public java.lang.String get_ds_name()
public java.lang.String get_ds_real_name()
public java.lang.String get_host_name()
public java.lang.String get_version_str()
public Database get_database()
public org.omg.CORBA.ORB get_orb()
public org.omg.PortableServer.POA get_poa()
public java.lang.String get_pid_str()
public void set_class_list(java.util.Vector list)
list - The DeviceClass vector referencepublic void add_class(java.lang.String name)
name - The class namepublic java.util.Vector get_class_name_list()
public static double fabs(double d)
public void fill_attr_polling_buffer(DeviceImpl dev,
java.lang.String att_name,
TimedAttrData[] data)
throws DevFailed
dev - The TANGO deviceatt_name - The attribute name which must be polleddata - The data stack with one element for each history element
DevFailed - If the call failedpublic static void set_serial_model(int model)
model - the specified model (TangoConst.BY_DEVICE, TangoConst.BY_Class
or TangoConst.NO_SYNC)public static int get_serial_model()
|
TANGO Java API ( TangORB-7.3.3.jar) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||