public static void updatePollingConfigFromDB ( final PolledObjectConfig config , final AttributePropertiesManager attributePropertiesManager ) throws DevFailed { final String isPolledProp = attributePropertiesManager . getAttributePropertyFromDB ( config . getName ( ) , Constants . IS_POLLED ) ; if ( ! isPolledProp . isEmpty ( ) ) { config . setPolled ( Boolean . valueOf ( isPolledProp ) ) ; final String periodProp = attributePropertiesManager . getAttributePropertyFromDB ( config . getName ( ) , Constants . POLLING_PERIOD ) ; if ( ! periodProp . isEmpty ( ) ) { config . setPollingPeriod ( Integer . valueOf ( periodProp ) ) ; } } }
Update polling config in tango db