org.tango.server.servant
Class DeviceImpl

java.lang.Object
  extended by org.omg.PortableServer.Servant
      extended by fr.esrf.Tango.Device_5POA
          extended by org.tango.server.servant.DeviceImpl
All Implemented Interfaces:
fr.esrf.Tango.Device_2Operations, fr.esrf.Tango.Device_3Operations, fr.esrf.Tango.Device_4Operations, fr.esrf.Tango.Device_5Operations, fr.esrf.Tango.DeviceOperations, org.omg.CORBA.portable.InvokeHandler

public final class DeviceImpl
extends fr.esrf.Tango.Device_5POA

The CORBA servant for a tango device server in IDL 5.

Author:
ABEILLE

Field Summary
static java.lang.String ALL_ATTR
          Special attribute name meaning all attributes
static java.lang.String ALL_PIPES
           
static java.lang.String INIT_CMD
           
static java.lang.String MDC_KEY
          for logging
static int SERVER_VERSION
          TANGO system version
static java.lang.String STATE_NAME
           
static java.lang.String STATUS_NAME
           
 
Constructor Summary
DeviceImpl(java.lang.String deviceName, java.lang.String className, TransactionType txType, java.lang.Object businessObject, java.lang.String deviceType)
          Ctr
 
Method Summary
 void addAttribute(AttributeImpl attribute)
          Add an attribute to the device
 void addAttributePolling(java.lang.String attributeName, int pollingPeriod)
          Add attribute polling
 void addClassProperty(ClassPropertyImpl property)
          add a class property to this device ClassProperty
 void addCommand(CommandImpl command)
          add a command
 void addCommandPolling(java.lang.String commandName, int pollingPeriod)
          Add command polling.
 void addDeviceProperty(DevicePropertyImpl property)
          add a device property to this device DeviceProperty
 void addPipe(PipeImpl pipe)
           
 java.lang.String adm_name()
           
 java.lang.String[] black_box(int maxSize)
          Get the clients' requests history
 InitImpl buildInit(java.lang.reflect.Method initMethod, boolean isLazy)
          build init method Init
 void checkLocking(fr.esrf.Tango.ClntIdent clIdent)
           
 org.omg.CORBA.Any command_inout_2(java.lang.String command, org.omg.CORBA.Any argin, fr.esrf.Tango.DevSource source)
          Execute a command.
 org.omg.CORBA.Any command_inout_4(java.lang.String commandName, org.omg.CORBA.Any argin, fr.esrf.Tango.DevSource source, fr.esrf.Tango.ClntIdent clIdent)
          Execute a command.
 fr.esrf.Tango.DevCmdHistory[] command_inout_history_2(java.lang.String commandName, int maxSize)
          Command history.
 fr.esrf.Tango.DevCmdHistory_4 command_inout_history_4(java.lang.String commandName, int maxSize)
          Command history.
 org.omg.CORBA.Any command_inout(java.lang.String command, org.omg.CORBA.Any argin)
          Execute a command.
 fr.esrf.Tango.DevCmdInfo_2[] command_list_query_2()
          Query all commands details.
 fr.esrf.Tango.DevCmdInfo[] command_list_query()
          Query all commands details.
 fr.esrf.Tango.DevCmdInfo_2 command_query_2(java.lang.String commandName)
          Query a command details.
 fr.esrf.Tango.DevCmdInfo command_query(java.lang.String commandName)
          Query a command details.
 void configurePolling(AttributeImpl attribute)
           
 void configurePolling(CommandImpl command)
           
 void deleteDevice()
          Stops polling calls delete method Delete.
 java.lang.String description()
          Get a description of this device
 fr.esrf.Tango.DevState executeStateCmd()
          Command State
 java.lang.String executeStatusCmd()
          Command status
 fr.esrf.Tango.AttributeConfig_2[] get_attribute_config_2(java.lang.String[] attributeNames)
          Get attributes config.
 fr.esrf.Tango.AttributeConfig_3[] get_attribute_config_3(java.lang.String[] attributeNames)
          Get attributes config.
 fr.esrf.Tango.AttributeConfig_5[] get_attribute_config_5(java.lang.String[] attributeNames)
          Get attributes config.
 fr.esrf.Tango.AttributeConfig[] get_attribute_config(java.lang.String[] attributeNames)
          Get attributes config.
 fr.esrf.Tango.PipeConfig[] get_pipe_config_5(java.lang.String[] names)
           
 java.lang.String getAdminDeviceName()
           
 int getAttributeHistorySize(AttributeImpl attribute)
           
 java.util.List<AttributeImpl> getAttributeList()
          Get attributes (copy)
 java.lang.Object getBusinessObject()
          get the implementation of the device
 java.lang.String getClassName()
          Get class name as defined in tango db.
 java.util.List<ClassPropertyImpl> getClassPropertyList()
          Get the class properties
 fr.esrf.Tango.ClntIdent getClientIdentity()
           
 CommandImpl getCommand(java.lang.String name)
          Get a command
 int getCommandHistorySize(CommandImpl command)
           
 java.util.List<CommandImpl> getCommandList()
          Get a copy of the commands
 java.util.List<DevicePropertyImpl> getDevicePropertyList()
          get the device properties
 fr.esrf.Tango.DevVarLongStringArray getLockStatus()
           
 java.lang.String getName()
          Get device name
 byte[] getObjId()
          get CORBA id
static PipeImpl getPipe(java.lang.String name, java.util.List<PipeImpl> pipeList)
           
 java.util.List<PipeImpl> getPipeList()
          Get a copy of the commands
 fr.esrf.Tango.DevState getState()
          Get State
 java.lang.String getStatus()
          Get status
 fr.esrf.Tango.DevInfo_3 info_3()
          Get info of this device in IDL3
 fr.esrf.Tango.DevInfo info()
          Get info of this device in IDL1
 void initCmd()
          Init the device.
 void initDevice()
          Initializes the device:
reloads device and class properties applies memorized value to attributes restarts polling calls delete method Delete calls init method Init
 void lock(int validity, fr.esrf.Tango.ClntIdent clientIdent, java.lang.String hostName)
           
 java.lang.String name()
          Get the name of the device
 void ping()
          Dummy method to check if this device is responding
 void pushInterfaceChangeEvent(boolean isStarted)
           
 fr.esrf.Tango.DevAttrHistory[] read_attribute_history_2(java.lang.String attributeName, int maxSize)
          read an attribute history.
 fr.esrf.Tango.DevAttrHistory_3[] read_attribute_history_3(java.lang.String attributeName, int maxSize)
          read an attribute history.
 fr.esrf.Tango.DevAttrHistory_4 read_attribute_history_4(java.lang.String attributeName, int maxSize)
          read an attribute history.
 fr.esrf.Tango.DevAttrHistory_5 read_attribute_history_5(java.lang.String attributeName, int maxSize)
          read an attribute history.
 fr.esrf.Tango.AttributeValue[] read_attributes_2(java.lang.String[] names, fr.esrf.Tango.DevSource source)
          Read some attributes.
 fr.esrf.Tango.AttributeValue_3[] read_attributes_3(java.lang.String[] names, fr.esrf.Tango.DevSource source)
          Read some attributes.
 fr.esrf.Tango.AttributeValue_4[] read_attributes_4(java.lang.String[] names, fr.esrf.Tango.DevSource source, fr.esrf.Tango.ClntIdent clIdent)
          Read some attributes.
 fr.esrf.Tango.AttributeValue_5[] read_attributes_5(java.lang.String[] names, fr.esrf.Tango.DevSource source, fr.esrf.Tango.ClntIdent clIdent)
          Read some attributes.
 fr.esrf.Tango.AttributeValue[] read_attributes(java.lang.String[] attributeNames)
          Read some attributes.
 fr.esrf.Tango.DevPipeData read_pipe_5(java.lang.String name, fr.esrf.Tango.ClntIdent clIdent)
           
 void relock()
           
 void removeAttribute(AttributeImpl attribute)
          remove an attribute of the device.
 void removeAttributePolling(java.lang.String attributeName)
          Remove attribute polling
 void removeCommand(CommandImpl command)
          Remove a command
 void removeCommandPolling(java.lang.String commandName)
          Remove command polling
 void removePipe(PipeImpl pipe)
          remove pipe of the device.
 void set_attribute_config_3(fr.esrf.Tango.AttributeConfig_3[] newConf)
          Set some attribute configs.
 void set_attribute_config_4(fr.esrf.Tango.AttributeConfig_3[] newConf, fr.esrf.Tango.ClntIdent clIdent)
          Set some attribute configs.
 void set_attribute_config_5(fr.esrf.Tango.AttributeConfig_5[] newConf, fr.esrf.Tango.ClntIdent clIdent)
          Set some attribute configs.
 void set_attribute_config(fr.esrf.Tango.AttributeConfig[] newConf)
          Set some attribute configs.
 void set_pipe_config_5(fr.esrf.Tango.PipeConfig[] newConf, fr.esrf.Tango.ClntIdent clIdent)
           
 void setAroundInvokeImpl(AroundInvokeImpl aroundInvokeImpl)
          Set around invoke method AroundInvoke
 void setAttrPollRingDepth(java.lang.String[] attrPollRingDepth)
           
 void setCmdPollRingDepth(java.lang.String[] cmdPollRingDepth)
           
 void setDeleteMethod(java.lang.reflect.Method deleteMethod)
          Set delete method Delete
 void setDeviceProperties(DevicePropertiesImpl properties)
          Set a dynamic properties manager DeviceProperties
 void setDeviceScheduler(java.util.Set<java.lang.reflect.Method> methodList)
           
 void setMinAttributePolling(java.lang.String[] minAttributePolling)
           
 void setMinCommandPolling(java.lang.String[] minCommandPolling)
           
 void setMinPolling(int minPolling)
           
 void setObjId(byte[] objId)
          set CORBA id
 void setPolledAttributes(java.lang.String[] pollAttributes)
           
 void setStateCheckAttrAlarm(boolean stateCheckAttrAlarm)
           
 void setStateImpl(StateImpl stateImpl)
          Set state impl State
 void setStatusImpl(StatusImpl statusImpl)
          set status impl Status
 void startPolling()
          Start already configured polling
 fr.esrf.Tango.DevState state()
          get State
 java.lang.String status()
          get Status
 void stopPolling()
          Stop all polling
 java.lang.String toString()
          String representation of device impl.
 void triggerPolling(java.lang.String objectName)
          Update polling cache
 void unLock(boolean isForced)
           
 void write_attributes_3(fr.esrf.Tango.AttributeValue[] values)
          Write some attributes.
 void write_attributes_4(fr.esrf.Tango.AttributeValue_4[] values, fr.esrf.Tango.ClntIdent clIdent)
          Write some attributes.
 void write_attributes(fr.esrf.Tango.AttributeValue[] values)
          Write some attributes.
 void write_pipe_5(fr.esrf.Tango.DevPipeData value, fr.esrf.Tango.ClntIdent clIdent)
           
 fr.esrf.Tango.AttributeValue_4[] write_read_attributes_4(fr.esrf.Tango.AttributeValue_4[] values, fr.esrf.Tango.ClntIdent clIdent)
          Write and read attributes in a single request
 fr.esrf.Tango.AttributeValue_5[] write_read_attributes_5(fr.esrf.Tango.AttributeValue_4[] writeValues, java.lang.String[] readNames, fr.esrf.Tango.ClntIdent clIdent)
          Write and read attributes in a single request
 fr.esrf.Tango.DevPipeData write_read_pipe_5(fr.esrf.Tango.DevPipeData value, fr.esrf.Tango.ClntIdent clIdent)
           
 
Methods inherited from class fr.esrf.Tango.Device_5POA
_all_interfaces, _invoke, _this, _this
 
Methods inherited from class org.omg.PortableServer.Servant
_default_POA, _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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INIT_CMD

public static final java.lang.String INIT_CMD
See Also:
Constant Field Values

SERVER_VERSION

public static final int SERVER_VERSION
TANGO system version

See Also:
Constant Field Values

MDC_KEY

public static final java.lang.String MDC_KEY
for logging

See Also:
Constant Field Values

ALL_ATTR

public static final java.lang.String ALL_ATTR
Special attribute name meaning all attributes

See Also:
Constant Field Values

ALL_PIPES

public static final java.lang.String ALL_PIPES
See Also:
Constant Field Values

STATE_NAME

public static final java.lang.String STATE_NAME
See Also:
Constant Field Values

STATUS_NAME

public static final java.lang.String STATUS_NAME
See Also:
Constant Field Values
Constructor Detail

DeviceImpl

public DeviceImpl(java.lang.String deviceName,
                  java.lang.String className,
                  TransactionType txType,
                  java.lang.Object businessObject,
                  java.lang.String deviceType)
           throws fr.esrf.Tango.DevFailed
Ctr

Parameters:
deviceName - The device name
className - The class name as defined in tangodb
txType - TransactionType
businessObject - The real implementation of the device Device
Throws:
fr.esrf.Tango.DevFailed
Method Detail

setStateCheckAttrAlarm

public void setStateCheckAttrAlarm(boolean stateCheckAttrAlarm)

setPolledAttributes

public void setPolledAttributes(java.lang.String[] pollAttributes)

setMinCommandPolling

public void setMinCommandPolling(java.lang.String[] minCommandPolling)

setMinAttributePolling

public void setMinAttributePolling(java.lang.String[] minAttributePolling)

setMinPolling

public void setMinPolling(int minPolling)

setCmdPollRingDepth

public void setCmdPollRingDepth(java.lang.String[] cmdPollRingDepth)

setAttrPollRingDepth

public void setAttrPollRingDepth(java.lang.String[] attrPollRingDepth)

executeStateCmd

public fr.esrf.Tango.DevState executeStateCmd()
                                       throws fr.esrf.Tango.DevFailed
Command State

Returns:
the state
Throws:
fr.esrf.Tango.DevFailed

executeStatusCmd

public java.lang.String executeStatusCmd()
                                  throws fr.esrf.Tango.DevFailed
Command status

Returns:
status
Throws:
fr.esrf.Tango.DevFailed

initCmd

public void initCmd()
             throws fr.esrf.Tango.DevFailed
Init the device. Calls Delete before Init

Throws:
fr.esrf.Tango.DevFailed

addAttribute

public void addAttribute(AttributeImpl attribute)
                  throws fr.esrf.Tango.DevFailed
Add an attribute to the device

Parameters:
attribute -
Throws:
fr.esrf.Tango.DevFailed

removeAttribute

public void removeAttribute(AttributeImpl attribute)
                     throws fr.esrf.Tango.DevFailed
remove an attribute of the device. Not possible to remove State or Status

Parameters:
attribute -
Throws:
fr.esrf.Tango.DevFailed

addPipe

public void addPipe(PipeImpl pipe)
             throws fr.esrf.Tango.DevFailed
Parameters:
pipe -
Throws:
fr.esrf.Tango.DevFailed

removePipe

public void removePipe(PipeImpl pipe)
                throws fr.esrf.Tango.DevFailed
remove pipe of the device. Not possible to remove State or Status

Parameters:
attribute -
Throws:
fr.esrf.Tango.DevFailed

getPipeList

public java.util.List<PipeImpl> getPipeList()
Get a copy of the commands

Returns:
the commands

getAttributeList

public java.util.List<AttributeImpl> getAttributeList()
Get attributes (copy)

Returns:
the attributes

getCommand

public CommandImpl getCommand(java.lang.String name)
                       throws fr.esrf.Tango.DevFailed
Get a command

Parameters:
name -
Returns:
The command
Throws:
fr.esrf.Tango.DevFailed

addDeviceProperty

public void addDeviceProperty(DevicePropertyImpl property)
add a device property to this device DeviceProperty

Parameters:
property -

addClassProperty

public void addClassProperty(ClassPropertyImpl property)
add a class property to this device ClassProperty

Parameters:
property -

setDeviceProperties

public void setDeviceProperties(DevicePropertiesImpl properties)
Set a dynamic properties manager DeviceProperties

Parameters:
properties -

configurePolling

public void configurePolling(CommandImpl command)
                      throws fr.esrf.Tango.DevFailed
Throws:
fr.esrf.Tango.DevFailed

configurePolling

public void configurePolling(AttributeImpl attribute)
                      throws fr.esrf.Tango.DevFailed
Throws:
fr.esrf.Tango.DevFailed

initDevice

public void initDevice()
Initializes the device:


pushInterfaceChangeEvent

public void pushInterfaceChangeEvent(boolean isStarted)
                              throws fr.esrf.Tango.DevFailed
Throws:
fr.esrf.Tango.DevFailed

deleteDevice

public void deleteDevice()
                  throws fr.esrf.Tango.DevFailed
Stops polling calls delete method Delete. Called before init and at server shutdown

Throws:
fr.esrf.Tango.DevFailed

info

public fr.esrf.Tango.DevInfo info()
                           throws fr.esrf.Tango.DevFailed
Get info of this device in IDL1

Returns:
info
Throws:
fr.esrf.Tango.DevFailed

info_3

public fr.esrf.Tango.DevInfo_3 info_3()
                               throws fr.esrf.Tango.DevFailed
Get info of this device in IDL3

Returns:
info
Throws:
fr.esrf.Tango.DevFailed

ping

public void ping()
          throws fr.esrf.Tango.DevFailed
Dummy method to check if this device is responding

Throws:
fr.esrf.Tango.DevFailed

adm_name

public java.lang.String adm_name()
Returns:
the admin device of to this device

getAdminDeviceName

public java.lang.String getAdminDeviceName()

black_box

public java.lang.String[] black_box(int maxSize)
                             throws fr.esrf.Tango.DevFailed
Get the clients' requests history

Parameters:
maxSize - The maximum depth of history
Returns:
the request history
Throws:
fr.esrf.Tango.DevFailed

description

public java.lang.String description()
Get a description of this device

Returns:
description

name

public java.lang.String name()
Get the name of the device

Returns:
name

read_attribute_history_2

public fr.esrf.Tango.DevAttrHistory[] read_attribute_history_2(java.lang.String attributeName,
                                                               int maxSize)
                                                        throws fr.esrf.Tango.DevFailed
read an attribute history. IDL 2 version. The history is filled only be attribute polling

Parameters:
attributeName - The attribute to retrieve
maxSize - The history maximum size returned
Throws:
fr.esrf.Tango.DevFailed

read_attribute_history_3

public fr.esrf.Tango.DevAttrHistory_3[] read_attribute_history_3(java.lang.String attributeName,
                                                                 int maxSize)
                                                          throws fr.esrf.Tango.DevFailed
read an attribute history. IDL 3 version. The history is filled only be attribute polling

Parameters:
attributeName - The attribute to retrieve
maxSize - The history maximum size returned
Throws:
fr.esrf.Tango.DevFailed

read_attribute_history_4

public fr.esrf.Tango.DevAttrHistory_4 read_attribute_history_4(java.lang.String attributeName,
                                                               int maxSize)
                                                        throws fr.esrf.Tango.DevFailed
read an attribute history. IDL 4 version. The history is filled only be attribute polling

Parameters:
attributeName - The attribute to retrieve
maxSize - The history maximum size returned
Throws:
fr.esrf.Tango.DevFailed

read_attributes

public fr.esrf.Tango.AttributeValue[] read_attributes(java.lang.String[] attributeNames)
                                               throws fr.esrf.Tango.DevFailed
Read some attributes. IDL 1 version.

Parameters:
attributeNames - The attributes names
Returns:
The read results.
Throws:
fr.esrf.Tango.DevFailed

read_attributes_2

public fr.esrf.Tango.AttributeValue[] read_attributes_2(java.lang.String[] names,
                                                        fr.esrf.Tango.DevSource source)
                                                 throws fr.esrf.Tango.DevFailed
Read some attributes. IDL 2 version.

Parameters:
names - The attributes names
source - the device source (CACHE, DEV or CACHE_DEV)
Returns:
The read results.
Throws:
fr.esrf.Tango.DevFailed

read_attributes_3

public fr.esrf.Tango.AttributeValue_3[] read_attributes_3(java.lang.String[] names,
                                                          fr.esrf.Tango.DevSource source)
                                                   throws fr.esrf.Tango.DevFailed
Read some attributes. IDL 3 version.

Parameters:
names - The attributes names
source - the device source (CACHE, DEV or CACHE_DEV)
Returns:
The read results.
Throws:
fr.esrf.Tango.DevFailed

read_attributes_4

public fr.esrf.Tango.AttributeValue_4[] read_attributes_4(java.lang.String[] names,
                                                          fr.esrf.Tango.DevSource source,
                                                          fr.esrf.Tango.ClntIdent clIdent)
                                                   throws fr.esrf.Tango.DevFailed
Read some attributes. IDL 4 version.

Parameters:
names - The attributes names
source - the device source (CACHE, DEV or CACHE_DEV)
clIdent - the client ID
Returns:
The read results.
Throws:
fr.esrf.Tango.DevFailed

read_attributes_5

public fr.esrf.Tango.AttributeValue_5[] read_attributes_5(java.lang.String[] names,
                                                          fr.esrf.Tango.DevSource source,
                                                          fr.esrf.Tango.ClntIdent clIdent)
                                                   throws fr.esrf.Tango.DevFailed
Read some attributes. IDL 5 version.

Parameters:
names - The attributes names
source - the device source (CACHE, DEV or CACHE_DEV)
clIdent - the client ID
Returns:
The read results.
Throws:
fr.esrf.Tango.DevFailed

write_attributes

public void write_attributes(fr.esrf.Tango.AttributeValue[] values)
                      throws fr.esrf.Tango.DevFailed
Write some attributes. IDL 1 version

Parameters:
values - a container for attribute values.
Throws:
fr.esrf.Tango.DevFailed

write_attributes_3

public void write_attributes_3(fr.esrf.Tango.AttributeValue[] values)
                        throws fr.esrf.Tango.MultiDevFailed,
                               fr.esrf.Tango.DevFailed
Write some attributes. IDL 3 version

Parameters:
values - a container for attribute values.
Throws:
fr.esrf.Tango.DevFailed
fr.esrf.Tango.MultiDevFailed

write_attributes_4

public void write_attributes_4(fr.esrf.Tango.AttributeValue_4[] values,
                               fr.esrf.Tango.ClntIdent clIdent)
                        throws fr.esrf.Tango.MultiDevFailed,
                               fr.esrf.Tango.DevFailed
Write some attributes. IDL 4 version

Parameters:
values - a container for attribute values.
clIdent - the client ID
Throws:
fr.esrf.Tango.DevFailed
fr.esrf.Tango.MultiDevFailed

write_read_attributes_4

public fr.esrf.Tango.AttributeValue_4[] write_read_attributes_4(fr.esrf.Tango.AttributeValue_4[] values,
                                                                fr.esrf.Tango.ClntIdent clIdent)
                                                         throws fr.esrf.Tango.MultiDevFailed,
                                                                fr.esrf.Tango.DevFailed
Write and read attributes in a single request

Parameters:
values - the values to write
clIdent - the client ID
Returns:
the read results
Throws:
fr.esrf.Tango.MultiDevFailed
fr.esrf.Tango.DevFailed

write_read_attributes_5

public fr.esrf.Tango.AttributeValue_5[] write_read_attributes_5(fr.esrf.Tango.AttributeValue_4[] writeValues,
                                                                java.lang.String[] readNames,
                                                                fr.esrf.Tango.ClntIdent clIdent)
                                                         throws fr.esrf.Tango.MultiDevFailed,
                                                                fr.esrf.Tango.DevFailed
Write and read attributes in a single request

Parameters:
writeValues - the values to write
readNames - the attributes to read
clIdent - the client ID
Returns:
the read results
Throws:
fr.esrf.Tango.MultiDevFailed
fr.esrf.Tango.DevFailed

command_list_query

public fr.esrf.Tango.DevCmdInfo[] command_list_query()
                                              throws fr.esrf.Tango.DevFailed
Query all commands details. IDL 1 version

Returns:
the commands details of this device
Throws:
fr.esrf.Tango.DevFailed

command_list_query_2

public fr.esrf.Tango.DevCmdInfo_2[] command_list_query_2()
                                                  throws fr.esrf.Tango.DevFailed
Query all commands details. IDL 2 version

Returns:
the commands details of this device
Throws:
fr.esrf.Tango.DevFailed

command_query

public fr.esrf.Tango.DevCmdInfo command_query(java.lang.String commandName)
                                       throws fr.esrf.Tango.DevFailed
Query a command details. IDL 1 version.

Parameters:
commandName - the command name
Returns:
the command details of this device
Throws:
fr.esrf.Tango.DevFailed

command_query_2

public fr.esrf.Tango.DevCmdInfo_2 command_query_2(java.lang.String commandName)
                                           throws fr.esrf.Tango.DevFailed
Query a command details. IDL 2 version.

Parameters:
commandName - the command name
Returns:
the command details of this device
Throws:
fr.esrf.Tango.DevFailed

command_inout

public org.omg.CORBA.Any command_inout(java.lang.String command,
                                       org.omg.CORBA.Any argin)
                                throws fr.esrf.Tango.DevFailed
Execute a command. IDL 1 version

Parameters:
command - command name
argin - command parameters
Returns:
command result
Throws:
fr.esrf.Tango.DevFailed

command_inout_2

public org.omg.CORBA.Any command_inout_2(java.lang.String command,
                                         org.omg.CORBA.Any argin,
                                         fr.esrf.Tango.DevSource source)
                                  throws fr.esrf.Tango.DevFailed
Execute a command. IDL 2 version

Parameters:
command - command name
argin - command parameters
source - the device source (CACHE, DEV or CACHE_DEV)
Returns:
command result
Throws:
fr.esrf.Tango.DevFailed

command_inout_4

public org.omg.CORBA.Any command_inout_4(java.lang.String commandName,
                                         org.omg.CORBA.Any argin,
                                         fr.esrf.Tango.DevSource source,
                                         fr.esrf.Tango.ClntIdent clIdent)
                                  throws fr.esrf.Tango.DevFailed
Execute a command. IDL 4 version

Parameters:
commandName - command name
argin - command parameters
source - the device source (CACHE, DEV or CACHE_DEV)
clIdent - client id
Returns:
command result
Throws:
fr.esrf.Tango.DevFailed

command_inout_history_2

public fr.esrf.Tango.DevCmdHistory[] command_inout_history_2(java.lang.String commandName,
                                                             int maxSize)
                                                      throws fr.esrf.Tango.DevFailed
Command history. IDL 2 version.

Parameters:
commandName - the command name
maxSize - the maximum depth of history
Returns:
the history
Throws:
fr.esrf.Tango.DevFailed

command_inout_history_4

public fr.esrf.Tango.DevCmdHistory_4 command_inout_history_4(java.lang.String commandName,
                                                             int maxSize)
                                                      throws fr.esrf.Tango.DevFailed
Command history. IDL 4 version.

Parameters:
commandName - the command name
maxSize - the maximum depth of history
Returns:
the history
Throws:
fr.esrf.Tango.DevFailed

triggerPolling

public void triggerPolling(java.lang.String objectName)
                    throws fr.esrf.Tango.DevFailed
Update polling cache

Parameters:
objectName - The command or attribute to update
Throws:
fr.esrf.Tango.DevFailed

get_attribute_config_5

public fr.esrf.Tango.AttributeConfig_5[] get_attribute_config_5(java.lang.String[] attributeNames)
                                                         throws fr.esrf.Tango.DevFailed
Get attributes config. IDL5 version

Parameters:
attributeNames - the attribute names or "All attributes"
Returns:
the attribute configs
Throws:
fr.esrf.Tango.DevFailed

get_attribute_config_3

public fr.esrf.Tango.AttributeConfig_3[] get_attribute_config_3(java.lang.String[] attributeNames)
                                                         throws fr.esrf.Tango.DevFailed
Get attributes config. IDL3 version

Parameters:
attributeNames - the attribute names or "All attributes"
Returns:
the attribute configs
Throws:
fr.esrf.Tango.DevFailed

get_attribute_config_2

public fr.esrf.Tango.AttributeConfig_2[] get_attribute_config_2(java.lang.String[] attributeNames)
                                                         throws fr.esrf.Tango.DevFailed
Get attributes config. IDL2 version

Parameters:
attributeNames - the attribute names or "All attributes"
Returns:
the attribute configs
Throws:
fr.esrf.Tango.DevFailed

get_attribute_config

public fr.esrf.Tango.AttributeConfig[] get_attribute_config(java.lang.String[] attributeNames)
                                                     throws fr.esrf.Tango.DevFailed
Get attributes config. IDL1 version

Parameters:
attributeNames - the attribute names or "All attributes"
Returns:
the attribute configs
Throws:
fr.esrf.Tango.DevFailed

set_attribute_config_5

public void set_attribute_config_5(fr.esrf.Tango.AttributeConfig_5[] newConf,
                                   fr.esrf.Tango.ClntIdent clIdent)
                            throws fr.esrf.Tango.DevFailed
Set some attribute configs. IDL5 version

Parameters:
newConf - the new configurations
clIdent - client id
Throws:
fr.esrf.Tango.DevFailed

set_attribute_config_4

public void set_attribute_config_4(fr.esrf.Tango.AttributeConfig_3[] newConf,
                                   fr.esrf.Tango.ClntIdent clIdent)
                            throws fr.esrf.Tango.DevFailed
Set some attribute configs. IDL4 version

Parameters:
newConf - the new configurations
clIdent - client id
Throws:
fr.esrf.Tango.DevFailed

set_attribute_config_3

public void set_attribute_config_3(fr.esrf.Tango.AttributeConfig_3[] newConf)
                            throws fr.esrf.Tango.DevFailed
Set some attribute configs. IDL3 version

Parameters:
newConf - the new configurations
Throws:
fr.esrf.Tango.DevFailed

set_attribute_config

public void set_attribute_config(fr.esrf.Tango.AttributeConfig[] newConf)
                          throws fr.esrf.Tango.DevFailed
Set some attribute configs. IDL2 version

Parameters:
newConf - the new configurations
Throws:
fr.esrf.Tango.DevFailed

getCommandList

public java.util.List<CommandImpl> getCommandList()
Get a copy of the commands

Returns:
the commands

addCommand

public void addCommand(CommandImpl command)
                throws fr.esrf.Tango.DevFailed
add a command

Parameters:
command - the new command
Throws:
fr.esrf.Tango.DevFailed

removeCommand

public void removeCommand(CommandImpl command)
                   throws fr.esrf.Tango.DevFailed
Remove a command

Parameters:
command -
Throws:
fr.esrf.Tango.DevFailed

getName

public java.lang.String getName()
Get device name

Returns:
device name

addAttributePolling

public void addAttributePolling(java.lang.String attributeName,
                                int pollingPeriod)
                         throws fr.esrf.Tango.DevFailed
Add attribute polling

Parameters:
attributeName - the attribute to poll
pollingPeriod - the polling period
Throws:
fr.esrf.Tango.DevFailed

addCommandPolling

public void addCommandPolling(java.lang.String commandName,
                              int pollingPeriod)
                       throws fr.esrf.Tango.DevFailed
Add command polling. Init command cannot be polled. Only command with parameter void can be polled

Parameters:
commandName - the command to poll
pollingPeriod - the polling period
Throws:
fr.esrf.Tango.DevFailed

stopPolling

public void stopPolling()
Stop all polling


startPolling

public void startPolling()
Start already configured polling


removeAttributePolling

public void removeAttributePolling(java.lang.String attributeName)
                            throws fr.esrf.Tango.DevFailed
Remove attribute polling

Parameters:
attributeName - the attribute
Throws:
fr.esrf.Tango.DevFailed

removeCommandPolling

public void removeCommandPolling(java.lang.String commandName)
                          throws fr.esrf.Tango.DevFailed
Remove command polling

Parameters:
commandName - the command
Throws:
fr.esrf.Tango.DevFailed

lock

public void lock(int validity,
                 fr.esrf.Tango.ClntIdent clientIdent,
                 java.lang.String hostName)
          throws fr.esrf.Tango.DevFailed
Throws:
fr.esrf.Tango.DevFailed

relock

public void relock()
            throws fr.esrf.Tango.DevFailed
Throws:
fr.esrf.Tango.DevFailed

unLock

public void unLock(boolean isForced)

getLockStatus

public fr.esrf.Tango.DevVarLongStringArray getLockStatus()

state

public fr.esrf.Tango.DevState state()
get State

Returns:
state

status

public java.lang.String status()
get Status

Returns:
status

getObjId

public byte[] getObjId()
get CORBA id

Returns:
CORBA id

setObjId

public void setObjId(byte[] objId)
set CORBA id

Parameters:
objId -

setDeleteMethod

public void setDeleteMethod(java.lang.reflect.Method deleteMethod)
Set delete method Delete

Parameters:
deleteMethod -

setAroundInvokeImpl

public void setAroundInvokeImpl(AroundInvokeImpl aroundInvokeImpl)
Set around invoke method AroundInvoke

Parameters:
aroundInvokeImpl -

buildInit

public InitImpl buildInit(java.lang.reflect.Method initMethod,
                          boolean isLazy)
build init method Init

Returns:
init

getState

public fr.esrf.Tango.DevState getState()
                                throws fr.esrf.Tango.DevFailed
Get State

Returns:
state
Throws:
fr.esrf.Tango.DevFailed

getStatus

public java.lang.String getStatus()
                           throws fr.esrf.Tango.DevFailed
Get status

Returns:
status
Throws:
fr.esrf.Tango.DevFailed

checkLocking

public void checkLocking(fr.esrf.Tango.ClntIdent clIdent)
                  throws fr.esrf.Tango.DevFailed
Throws:
fr.esrf.Tango.DevFailed

getClassName

public java.lang.String getClassName()
Get class name as defined in tango db.

Returns:
class name

setStateImpl

public void setStateImpl(StateImpl stateImpl)
Set state impl State

Parameters:
stateImpl -

setStatusImpl

public void setStatusImpl(StatusImpl statusImpl)
set status impl Status

Parameters:
statusImpl -

toString

public java.lang.String toString()
String representation of device impl.

Overrides:
toString in class java.lang.Object
Returns:
a string

getBusinessObject

public java.lang.Object getBusinessObject()
get the implementation of the device

Returns:
business object

getDevicePropertyList

public java.util.List<DevicePropertyImpl> getDevicePropertyList()
get the device properties

Returns:
device properties

getClassPropertyList

public java.util.List<ClassPropertyImpl> getClassPropertyList()
Get the class properties

Returns:
class properties

getAttributeHistorySize

public int getAttributeHistorySize(AttributeImpl attribute)

getCommandHistorySize

public int getCommandHistorySize(CommandImpl command)

getClientIdentity

public fr.esrf.Tango.ClntIdent getClientIdentity()

setDeviceScheduler

public void setDeviceScheduler(java.util.Set<java.lang.reflect.Method> methodList)

read_attribute_history_5

public fr.esrf.Tango.DevAttrHistory_5 read_attribute_history_5(java.lang.String attributeName,
                                                               int maxSize)
                                                        throws fr.esrf.Tango.DevFailed
read an attribute history. IDL 5 version. The history is filled only be attribute polling

Parameters:
attributeName - The attribute to retrieve
maxSize - The history maximum size returned
Throws:
fr.esrf.Tango.DevFailed

get_pipe_config_5

public fr.esrf.Tango.PipeConfig[] get_pipe_config_5(java.lang.String[] names)
                                             throws fr.esrf.Tango.DevFailed
Throws:
fr.esrf.Tango.DevFailed

set_pipe_config_5

public void set_pipe_config_5(fr.esrf.Tango.PipeConfig[] newConf,
                              fr.esrf.Tango.ClntIdent clIdent)
                       throws fr.esrf.Tango.DevFailed
Throws:
fr.esrf.Tango.DevFailed

getPipe

public static PipeImpl getPipe(java.lang.String name,
                               java.util.List<PipeImpl> pipeList)
                        throws fr.esrf.Tango.DevFailed
Throws:
fr.esrf.Tango.DevFailed

read_pipe_5

public fr.esrf.Tango.DevPipeData read_pipe_5(java.lang.String name,
                                             fr.esrf.Tango.ClntIdent clIdent)
                                      throws fr.esrf.Tango.DevFailed
Throws:
fr.esrf.Tango.DevFailed

write_pipe_5

public void write_pipe_5(fr.esrf.Tango.DevPipeData value,
                         fr.esrf.Tango.ClntIdent clIdent)
                  throws fr.esrf.Tango.DevFailed
Throws:
fr.esrf.Tango.DevFailed

write_read_pipe_5

public fr.esrf.Tango.DevPipeData write_read_pipe_5(fr.esrf.Tango.DevPipeData value,
                                                   fr.esrf.Tango.ClntIdent clIdent)
                                            throws fr.esrf.Tango.DevFailed
Throws:
fr.esrf.Tango.DevFailed


Copyright © 2012-2015. All Rights Reserved.