@Command(name = "AddObjPolling", inTypeDesc = "Lg[0]=Upd period. Str[0]=Device name. Str[1]=Object type. Str[2]=Object name")
    public void addPolling(final DevVarLongStringArray dvlsa) throws DevFailed {
        xlogger.entry();
        // Check that parameters number is correct
        if (dvlsa.svalue.length != 3 || dvlsa.lvalue.length != 1) {
            throw DevFailedUtils.newDevFailed(ExceptionMessages.WRONG_NR_ARGS, "Incorrect number of inout arguments");
        }
        final String deviceName = dvlsa.svalue[0];
        final String type = dvlsa.svalue[1];
        final String polledObjectName = dvlsa.svalue[2];
        final int pollPeriod = dvlsa.lvalue[0];
        logger.info("add polling for {}/{} {} with period {}", new Object[]{deviceName, polledObjectName, type,
                pollPeriod});
        for (final DeviceClassBuilder deviceClass : classList) {
            if (deviceClass.containsDevice(deviceName)) {
                final DeviceImpl dev = deviceClass.getDeviceImpl(deviceName);
                if (type.equalsIgnoreCase(PolledObjectType.ATTRIBUTE.toString())) {
                    dev.addAttributePolling(polledObjectName, pollPeriod);
                } else {
                    dev.addCommandPolling(polledObjectName, pollPeriod);
                }

                break;
            }
        }

        xlogger.exit();
    }
@ Command ( name = "AddObjPolling" , inTypeDesc = "Lg[0]=Upd period. Str[0]=Device name. Str[1]=Object type. Str[2]=Object name" ) public void addPolling ( final DevVarLongStringArray dvlsa ) throws DevFailed { xlogger . entry ( ) ; if ( dvlsa . svalue . length != 3 || dvlsa . lvalue . length != 1 ) { throw DevFailedUtils . newDevFailed ( ExceptionMessages . WRONG_NR_ARGS , "Incorrect number of inout arguments" ) ; } final String deviceName = dvlsa . svalue [ 0 ] ; final String type = dvlsa . svalue [ 1 ] ; final String polledObjectName = dvlsa . svalue [ 2 ] ; final int pollPeriod = dvlsa . lvalue [ 0 ] ; logger . info ( "add polling for {}/{} {} with period {}" , new Object [ ] { deviceName , polledObjectName , type , pollPeriod } ) ; for ( final DeviceClassBuilder deviceClass : classList ) { if ( deviceClass . containsDevice ( deviceName ) ) { final DeviceImpl dev = deviceClass . getDeviceImpl ( deviceName ) ; if ( type . equalsIgnoreCase ( PolledObjectType . ATTRIBUTE . toString ( ) ) ) { dev . addAttributePolling ( polledObjectName , pollPeriod ) ; } else { dev . addCommandPolling ( polledObjectName , pollPeriod ) ; } break ; } } xlogger . exit ( ) ; }
@param dvlsa Lg[0]=Upd period. Str[0]=Device name. Str[1]=Object
type(COMMAND or ATTRIBUTE). Str[2]=Object name
@throws DevFailed