@ Override public DevAttrHistory_5 read_attribute_history_5 ( final String attributeName , final int maxSize ) throws DevFailed { MDC . setContextMap ( contextMap ) ; xlogger . entry ( ) ; checkInitialization ( ) ; deviceMonitoring . startRequest ( "read_attribute_history_5" ) ; DevAttrHistory_5 result = null ; try { final AttributeImpl attr = AttributeGetterSetter . getAttribute ( attributeName , attributeList ) ; if ( attr . getBehavior ( ) instanceof ForwardedAttribute ) { final ForwardedAttribute fwdAttr = ( ForwardedAttribute ) attr . getBehavior ( ) ; result = fwdAttr . getAttributeHistory ( maxSize ) ; } else { if ( ! attr . isPolled ( ) ) { throw DevFailedUtils . newDevFailed ( ExceptionMessages . ATTR_NOT_POLLED , attr . getName ( ) + " is not polled" ) ; } result = attr . getHistory ( ) . getAttrHistory5 ( maxSize ) ; } } 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 ) ; } } return result ; }
read an attribute history . IDL 5 version . The history is filled only be attribute polling