TANGO Java API
( TangORB-7.3.3.jar)

fr.esrf.TangoDs
Class DServer

java.lang.Object
  extended by org.omg.PortableServer.Servant
      extended by fr.esrf.Tango.Device_2POA
          extended by fr.esrf.TangoDs.DeviceImpl
              extended by fr.esrf.TangoDs.DServer
All Implemented Interfaces:
Device_2Operations, DeviceOperations, TangoConst, org.omg.CORBA.portable.InvokeHandler

public class DServer
extends DeviceImpl
implements TangoConst


Field Summary
 
Fields inherited from interface fr.esrf.TangoDs.TangoConst
ACCESS_READ, ACCESS_SERVICE, ACCESS_WRITE, ARCHIVE_EVENT, ATT_CONF_EVENT, Attr_AdmName, Attr_Description, Attr_Name, Attr_State, Attr_Status, Attr_Unknown, ATTRIBUTE, BY_CLASS, BY_DEVICE, BY_PROCESS, CHANGE_EVENT, COMMAND, CONTROL_SYSTEM, DATA_READY_EVENT, DEFAULT_LOCK_VALIDITY, eventNames, LOGGING_CONSOLE_TARGET, LOGGING_CONSOLE_TARGET_ID, LOGGING_DEBUG, LOGGING_DEF_RFT, LOGGING_DEVICE_TARGET, LOGGING_DEVICE_TARGET_ID, LOGGING_ERROR, LOGGING_FATAL, LOGGING_FILE_TARGET, LOGGING_FILE_TARGET_ID, LOGGING_INFO, LOGGING_LEVELS, LOGGING_MAX_RFT, LOGGING_MIN_RFT, LOGGING_OFF, LOGGING_SEPARATOR, LOGGING_UNKNOWN_TARGET_ID, LOGGING_WARN, NO_SYNC, NOT_STATELESS, NotANumber, Op_BlackBox, Op_Command, Op_Command_2, Op_Command_inout, Op_Command_inout_2, Op_Command_inout_history_2, Op_Command_list, Op_Command_list_2, Op_Get_Attr_Config, Op_Get_Attr_Config_2, Op_Info, Op_Ping, Op_Read_Attr, Op_Read_Attr_2, Op_Read_Attr_history_2, Op_Set_Attr_Config, Op_Unknown, Op_Write_Attr, PERIODIC_EVENT, QUALITY_EVENT, Req_Attribute, Req_Operation, Req_Unknown, SERVICE_PROP_NAME, STATELESS, Tango_AllAttr, Tango_AllAttr_3, Tango_AlrmValueNotSpec, Tango_AssocWritNotSpec, Tango_AttrDataFormatName, Tango_CLNT_TIMEOUT, Tango_CmdArgTypeName, Tango_CONST_DEV_STRING, Tango_DbObjName, Tango_DEFAULT_POLL_OLD_FACTOR, Tango_DEFAULT_TIMEOUT, Tango_DEFAULT_TIMEOUT_SEC, Tango_DefaultBlackBoxDepth, Tango_DefaultDocUrl, Tango_DefaultPollRingDepth, Tango_DefaultWritableProp, Tango_DELTA_T, Tango_DescNotSet, Tango_DescNotSpec, Tango_DEV_BOOLEAN, Tango_DEV_CHAR, Tango_DEV_DOUBLE, Tango_DEV_ENCODED, Tango_DEV_FLOAT, Tango_DEV_INT, Tango_DEV_LONG, Tango_DEV_LONG64, Tango_DEV_SHORT, Tango_DEV_STATE, Tango_DEV_STRING, Tango_DEV_UCHAR, Tango_DEV_ULONG, Tango_DEV_ULONG64, Tango_DEV_USHORT, Tango_DEV_VOID, Tango_DevStateName, Tango_DEVVAR_CHARARRAY, Tango_DEVVAR_DOUBLEARRAY, Tango_DEVVAR_DOUBLESTRINGARRAY, Tango_DEVVAR_FLOATARRAY, Tango_DEVVAR_LONG64ARRAY, Tango_DEVVAR_LONGARRAY, Tango_DEVVAR_LONGSTRINGARRAY, Tango_DEVVAR_SHORTARRAY, Tango_DEVVAR_STRINGARRAY, Tango_DEVVAR_ULONG64ARRAY, Tango_DEVVAR_ULONGARRAY, Tango_DEVVAR_USHORTARRAY, Tango_DevVersion, Tango_DISCARD_THRESHOLD, Tango_DispUnitNotSpec, Tango_DSDeviceDomain, Tango_EXPERT_ATTR, Tango_EXPERT_CMD, Tango_FormatNotSpec, Tango_InitialOutput, Tango_LabelNotSpec, TANGO_LOG_PATH, Tango_MAX_TRANSFER_SIZE, Tango_MaxServerNameLength, Tango_MIN_POLL_PERIOD, Tango_OPERATOR_ATTR, Tango_OPERATOR_CMD, Tango_POLL_ADD_OBJ, Tango_POLL_ATTR, Tango_POLL_CMD, Tango_POLL_REM_DEV, Tango_POLL_REM_OBJ, Tango_POLL_START, Tango_POLL_STOP, Tango_POLL_UPD_PERIOD, Tango_PollAttribute, Tango_PollCommand, Tango_QualityName, Tango_REL_1, Tango_REL_2, Tango_ResNotDefined, Tango_StdUnitNotSpec, Tango_SysProperty, Tango_TG_IMP_MINOR_DEVFAILED, Tango_TG_IMP_MINOR_NON_DEVFAILED, Tango_TG_IMP_MINOR_TO, Tango_TgLibVers, Tango_UnitNotSpec, USER_EVENT
 
Method Summary
 void add_obj_polling(DevVarLongStringArray argin)
          command to add one object to be polled
 void add_obj_polling(DevVarLongStringArray argin, boolean with_db_upd)
          command to add one object to be polled
 void delete_device()
          This method is called during device Init an the DevRestart command.
 java.util.Vector get_class_list()
           
 java.lang.String get_full_name()
           
 java.lang.String get_instance_name()
           
 org.apache.log4j.Logger get_logger()
          Returns the device's logger
 java.lang.String get_personal_name()
           
 java.lang.String get_process_name()
           
 void init_device()
          Intialise a device.
 void init_logger()
          Initialize the logging for this device
 void kill()
           
 java.lang.String[] query_class()
           
 java.lang.String[] query_device()
           
 void rem_obj_polling(java.lang.String[] argin)
          command to remove an already polled object from the device polled object list
 void rem_obj_polling(java.lang.String[] argin, boolean with_db_upd)
          command to remove an already polled object from the device polled object list
 void restart_server()
           
 void restart(java.lang.String dev_name)
           
 
Methods inherited from class fr.esrf.TangoDs.DeviceImpl
_default_POA, add_attribute, adm_name, always_executed_hook, black_box, command_inout_2, command_inout_history_2, command_inout, command_list_query_2, command_list_query, command_query_2, command_query, description, dev_state, dev_status, get_attribute_config_2, get_attribute_config, get_db_device, get_device_class, get_name, get_obj_id, get_state, get_status, info, name, ping, read_attr_hardware, read_attr, read_attribute_history_2, read_attributes_2, read_attributes, remove_attribute, set_attribute_config, set_device_attr, set_obj_id, set_poll_ring_depth, set_polled_attr, set_polled_cmd, set_state, set_status, start_logging, state, status, stop_logging, write_attr_hardware, write_attributes
 
Methods inherited from class fr.esrf.Tango.Device_2POA
_all_interfaces, _invoke, _this, _this
 
Methods inherited from class org.omg.PortableServer.Servant
_get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

init_device

public void init_device()
                 throws DevFailed
Description copied from class: DeviceImpl
Intialise a device. In the DeviceImpl class, this method is pure abstract and must be defined in sub-class. Its rule is to initialise a device. This method is called during device creation an dby the DevRestart command

Specified by:
init_device in class DeviceImpl
Throws:
DevFailed - This method does not throw exception but a redefined method can. Click here to read DevFailed exception specification

query_class

public java.lang.String[] query_class()
                               throws DevFailed
Throws:
DevFailed

query_device

public java.lang.String[] query_device()
                                throws DevFailed
Throws:
DevFailed

restart

public void restart(java.lang.String dev_name)
             throws DevFailed
Throws:
DevFailed

restart_server

public void restart_server()
                    throws DevFailed
Throws:
DevFailed

kill

public void kill()

get_process_name

public java.lang.String get_process_name()

get_personal_name

public java.lang.String get_personal_name()

get_instance_name

public java.lang.String get_instance_name()

get_full_name

public java.lang.String get_full_name()

get_class_list

public java.util.Vector get_class_list()

get_logger

public org.apache.log4j.Logger get_logger()
Description copied from class: DeviceImpl
Returns the device's logger

Overrides:
get_logger in class DeviceImpl

init_logger

public void init_logger()
Description copied from class: DeviceImpl
Initialize the logging for this device

Overrides:
init_logger in class DeviceImpl

add_obj_polling

public void add_obj_polling(DevVarLongStringArray argin)
                     throws DevFailed
command to add one object to be polled

Parameters:
argin - The polling parameters(device name, object type,..)
Throws:
DevFailed

add_obj_polling

public void add_obj_polling(DevVarLongStringArray argin,
                            boolean with_db_upd)
                     throws DevFailed
command to add one object to be polled

Parameters:
argin - The polling parameters(device name, object type,..)
with_db_upd - Update db if true (false if no dbase).
Throws:
DevFailed

rem_obj_polling

public void rem_obj_polling(java.lang.String[] argin)
                     throws DevFailed
command to remove an already polled object from the device polled object list

Parameters:
argin - The polling parameters(device name, object type,..)
Throws:
DevFailed

rem_obj_polling

public void rem_obj_polling(java.lang.String[] argin,
                            boolean with_db_upd)
                     throws DevFailed
command to remove an already polled object from the device polled object list

Parameters:
argin - The polling parameters(device name, object type,..)
with_db_upd - Update db if true (false if no dbase).
Throws:
DevFailed

delete_device

public void delete_device()
                   throws DevFailed
Description copied from class: DeviceImpl
This method is called during device Init an the DevRestart command. Some clean-up should be done here for stopping thread, clearing lists...

Specified by:
delete_device in class DeviceImpl
Throws:
DevFailed

TANGO Java API
( TangORB-7.3.3.jar)