@ Override public Any command_inout ( final String command , final Any argin ) throws DevFailed { MDC . setContextMap ( contextMap ) ; xlogger . entry ( ) ; if ( ! command . equalsIgnoreCase ( DeviceImpl . STATE_NAME ) && ! command . equalsIgnoreCase ( DeviceImpl . STATUS_NAME ) ) { checkInitialization ( ) ; } final long request = deviceMonitoring . startRequest ( "command_inout " + command ) ; clientIdentity . set ( null ) ; Any argout = null ; try { argout = commandHandler ( command , argin , DevSource . CACHE_DEV , null ) ; } catch ( final Exception e ) { deviceMonitoring . addError ( ) ; if ( e instanceof DevFailed ) { throw ( DevFailed ) e ; } else { // with CORBA, the stack trace is not visible by the client if // not inserted in DevFailed. throw DevFailedUtils . newDevFailed ( e ) ; } } finally { deviceMonitoring . endRequest ( request ) ; } xlogger . exit ( ) ; return argout ; }
Execute a command . IDL 1 version