Set some attribute configs. IDL4 version

@param newConf the new configurations
@param clIdent client id
@throws DevFailed
13697
@Override
    public void set_attribute_config_4(final AttributeConfig_3[] newConf, final ClntIdent clIdent) throws DevFailed {
        MDC.setContextMap(contextMap);
        xlogger.entry();
        checkInitialization();
        clientIdentity.set(clIdent);
        if (!name.equalsIgnoreCase(getAdminDeviceName())) {
            clientLocking.checkClientLocking(clIdent);
        }
        deviceMonitoring.startRequest("set_attribute_config_4", clIdent);
        set_attribute_config_3(newConf);
        xlogger.exit();

    }
1072260
@Override
    int write_attribute_asynch_i(final DeviceAttribute da, final boolean fwd, final int rid) throws DevFailed {
	try {
	    final int actual_rid = proxy.write_attribute_asynch(da);
	    arp.put(new Integer(rid), new AsynchRequest(actual_rid, da.getName()));
	} catch (final DevFailed df) {
	    arp.put(new Integer(rid), new AsynchRequest(-1, da.getName(), df));
	} catch (final Exception e) {
	    final DevError[] errors = new DevError[1];
	    errors[0] = new DevError();
	    errors[0].severity = ErrSeverity.ERR;
	    errors[0].reason = "unknown exception caught";
	    errors[0].desc = "unknown error";
	    errors[0].origin = "GroupDeviceElemnt.write_attribute";
	    final DevFailed ex = new DevFailed(errors);
	    arp.put(new Integer(rid), new AsynchRequest(-1, da.getName(), ex));
	}
	return rid;
    }
784353
@Deprecated
    public void set_attribute_config(final DeviceProxy deviceProxy, final AttributeInfo[] attr)
	    throws DevFailed {
	set_attribute_info(deviceProxy, attr);
    }
425670
function setConfig(newConf, isClearPrevious) {
    checkIsObject(newConf);
    config = isClearPrevious ? Immutable.fromJS(newConf) : config.merge(newConf);
}
1262017
private void updatePoolConf() throws DevFailed {
        if (!polledDevices.contains(deviceName)) {
            polledDevices.add(deviceName);
            final Map<String, String[]> properties = new HashMap<String, String[]>();
            properties.put(POLLING_THREADS_POOL_CONF, polledDevices.toArray(new String[0]));
            DatabaseFactory.getDatabase().setDeviceProperties(ServerManager.getInstance().getAdminDeviceName(),
                    properties);
        }
    }
197427
@Override
    public void setAttributeProperties(final String deviceName, final String attributeName,
            final Map<String, String[]> properties) throws DevFailed {
        cache.setAttributeProperties(deviceName, attributeName, properties);
    }
93600
public void setAttributeValue(final IDeviceAttributeDAO devatt)
	    throws DevFailed {

	attrval.name = devatt.getName();
	attrval.quality = devatt.getQuality();
	attrval.time = devatt.getTimeVal();
	attrval.r_dim = devatt.getReadAttributeDim();
	attrval.w_dim = devatt.getWriteAttributeDim();
	attrval.r_dim.dim_x = devatt.getReadAttributeDim().dim_x;
	attrval.r_dim.dim_y = devatt.getReadAttributeDim().dim_y;

	if (devatt.getWriteAttributeDim() != null) {
	    attrval.w_dim.dim_x = devatt.getWriteAttributeDim().dim_x;
	    attrval.w_dim.dim_y = devatt.getWriteAttributeDim().dim_y;
	} else {
	    attrval.w_dim = devatt.getReadAttributeDim();// write as read
	}

	attrval.err_list = null;
	// Get the value from Union object
	attrval.value = ApiUtil.get_orb().create_any();
	// GA
	// devatt.setValueAsAny(this);
	((DeviceAttributeDAODefaultImpl) devatt).setValueAsAny(this);
    }
252069
public void init(Database database, String host, String port) throws DevFailed {
        super.init(database, host, port);
    }
795702
private void setFromEnv() throws DevFailed {
        String env = TangoEnv.getTangoHost();
        assert env != null;
        if (!env.contains(":"))
            Except.throw_connection_failed("TangoApi_TANGO_HOST_NOT_SET",
                    "Unknown \"TANGO_HOST\" property " + env,
                    "TangoUrl.setFromEnv()");
        String[] array = ApiUtil.parseTangoHost(env);
        host = array[0];
        strPort = array[1];
        port = Integer.parseInt(strPort);
        envRead = true;
        fromEnv = true;
    }
1346300
public void init(final Connection connection, final String host, final String port)
	    	throws DevFailed {
		connection.url = new TangoUrl(buildUrlName(TangoUrl.getCanonicalName(host), port));
		connection.setDevice_is_dbase(true);
		connection.transparent_reconnection = true; // Always true for Database

		ApiUtil.get_orb();
		connect_to_dbase(connection);
		connection.devname = connection.device.name();
		connection.setAlready_connected(true);
    }
150522
@SuppressWarnings("unchecked")
  public void init(PlayerConfig config) throws InitializationFailedException {
    this.config = config;
    String sourceClassName = config.get(SOURCE_CLASS_CONFIG_KEY);
    if (sourceClassName == null) {
      System.out.println("Missing required property in config: " + SOURCE_CLASS_CONFIG_KEY);
    }
    try {
      sourceClass = (Class<? extends Source>) Class.forName(sourceClassName);
    } catch (ClassNotFoundException e) {
      LOG.fatal("Instantiating source factory failed, " + SOURCE_CLASS_CONFIG_KEY + ": " + sourceClassName, e);
      System.exit(0);
    }
  }
286322
public void addTangoUserListener(ITangoUserListener listener, String attrName, boolean stateless)
            throws DevFailed {
        addTangoUserListener(listener, attrName, new String[0], stateless);
    }
135673
@Inject
	private void initDerivedDefaults(@Named("Mutable Defaults") MutableConfigurationProvider defaultConfiguration) {

		if (hasProperty("test.dbunit.dataSetFile")) {
			// don't generate data set file for each service/consumer
			defaultConfiguration.setBoolean("generate.test.dbunitTestData", false);
		}

		// deployment.type = war for Tomcat and Jetty
		if (getProperty("deployment.applicationServer").equalsIgnoreCase("tomcat")
				|| getProperty("deployment.applicationServer").equalsIgnoreCase("jetty")) {
			defaultConfiguration.setString("deployment.type", "war");
		}

		if (getProperty("deployment.applicationServer").equalsIgnoreCase("appengine")) {
			initDerivedDefaultsForAppengine(defaultConfiguration);
		}

		// generate directives
		if (!hasProjectNature("business-tier")) {
			initDerivedDefaultsForNonBusinessTier(defaultConfiguration);
		}

		if (hasProjectNature("business-tier") && hasProjectNature("pure-ejb3")) {
			initDerivedDefaultsForPureEjb3(defaultConfiguration);
		}

		initDerivedDefaultsSystemAttributes(defaultConfiguration);

		// fetch eager single level
		if (getBooleanProperty("generate.singleLevelFetchEager")) {
			defaultConfiguration.setString("default.fetchStrategy", "lazy");
		}

		// deployment.applicationServer = JBoss for ear
		if (getProperty("deployment.type").equals("ear")) {
			defaultConfiguration.setString("deployment.applicationServer", "JBoss");
		}

		// for JBoss AS 7 use Infinispan cache instead of Ehcache
		if (getProperty("deployment.applicationServer").toLowerCase().equals("jboss")) {
			defaultConfiguration.setString("cache.provider", "Infinispan");
			defaultConfiguration.setBoolean("generate.datasource", true);
		}

		// joda-time
		if (getProperty("datetime.library").equals("joda")) {
			initDerivedDefaultsForJoda(defaultConfiguration);
		}

		if (!getProperty("nosql.provider").equals("none")) {
			initDerivedDefaultsForNosql(defaultConfiguration);
		} else if (!getProperty("jpa.provider").equals("none")) {
			initDerivedDefaultsForJpa(defaultConfiguration);
		} else {
			initDerivedDefaultsWithoutPersistence(defaultConfiguration);
		}

		initDerivedDefaultsForRest(defaultConfiguration);

		if (getBooleanProperty("generate.quick")) {
			initQuick(defaultConfiguration);
		}

		LOG.debug("Initialized properties: {}", getAllPConfigurationKeyValues(configuration));
	}
375813
public int (final DeviceAttribute da, final boolean fwd) throws DevFailed {
	final int rid = _i(da, fwd, next_req_id());
	arp.put(new Integer(rid), new Boolean(fwd));
	return rid;
    }
825442
public void configure(Object obj, Element cfg, int startIdx)
			throws Exception {
		String id = getAttribute(cfg, "id");
		if (id != null) {
			_idMap.put(id, obj);
		}

		Element[] children = getChildren(cfg);

		for (int i = startIdx; i < children.length; i++) {
			Element node = children[i];
			//CHECKSTYLE:OFF
			try {
				// TODO: in case switching to jdk 7, this could be a switch!
				String tag = node.getTagName();
				if ("Set".equals(tag)) {
					set(obj, node);
				} else if ("Put".equals(tag)) {
					put(obj, node);
				} else if ("Call".equals(tag)) {
					call(obj, node);
				} else if ("Get".equals(tag)) {
					get(obj, node);
				} else if ("New".equals(tag)) {
					newObj(obj, node);
				} else if ("Array".equals(tag)) {
					newArray(obj, node);
				} else if ("Ref".equals(tag)) {
					refObj(obj, node);
				} else if ("Property".equals(tag)) {
					propertyObj(obj, node);
				} else {
					throw new IllegalStateException("Unknown tag: " + tag);
				}
			} catch (Exception e) {
				LOG.warn("Config error at " + node, e.toString());
				throw e;
			}
			//CHECKSTYLE:ON
		}
	}
707201
public void setPipeConfig(PipeInfo[] pipeInfoList) throws DevFailed {
        ArrayList<PipeInfo> infoList = new ArrayList<PipeInfo>(pipeInfoList.length);
        Collections.addAll(infoList, pipeInfoList);
        setPipeConfig(infoList);
    }
209778
public void put_property(DbDatum[] properties)
            throws DevFailed {
        DbAttribute db_att = new DbAttribute(deviceName);
        Collections.addAll(db_att, properties);
        dev.put_attribute_property(db_att);
    }