/** * Add the given value to the set of configuration properties. */ public PluginListValue addPluginList(String property) { PluginListValue val = new PluginListValue(property); addValue(val); return val; }
/** * Add the given value to the set of configuration properties. */ public PluginListValue addPluginList(String property) { PluginListValue val = new PluginListValue(property); addValue(val); return val; }
/** * Add the given value to the set of configuration properties. */ public PluginListValue addPluginList(String property) { PluginListValue val = new PluginListValue(property); addValue(val); return val; } }
/** * Add the given value to the set of configuration properties. */ public PluginListValue addPluginList(String property) { PluginListValue val = new PluginListValue(property); addValue(val); return val; }
public void setInstrument(String instrument) { _instrumentValues = new PluginListValue("Instrument"); if (getInstrumentAliases() != null) { _instrumentValues.setAliases(getInstrumentAliases()); } _instrumentValues.setString(instrument); Instrument[] instruments = (Instrument[])_instrumentValues.instantiate(Instrument.class, _config); for (Instrument inst : instruments) { inst.setProvider(this); _instruments.put(inst.getName(), inst); } }
/** * Set partitions from a String configuration. * * @param parts a String of the form <code>(p1, p2, p3)</code> where p1, p2 etc. itself are plug-in strings * for individual Data Cache configuration. */ public void setPartitions(String parts) { _partProperties.clear(); parsePartitionProperties(parts); PluginListValue partitions = new PluginListValue("partitions"); String[] types = (String[])Array.newInstance(String.class, _partProperties.size()); Arrays.fill(types, _type.getName()); partitions.setClassNames(types); partitions.setProperties(_partProperties.toArray(new String[_partProperties.size()])); DataCache[] array = (DataCache[])partitions.instantiate(_type, conf); for (DataCache part : array) { if (part.getName() == null) throw new UserException(_loc.get("partition-cache-null-partition", parts)); if (_partitions.containsKey(part.getName())) throw new UserException(_loc.get("partition-cache-duplicate-partition", part.getName(), parts)); if (part.getName().equals(DataCache.NAME_DEFAULT)) throw new UserException(_loc.get("partition-cache-default-partition", part.getName(), parts)); _partitions.put(part.getName(), part); } }
public void setInstrument(String instrument) { _instrumentValues = new PluginListValue("Instrument"); if (getInstrumentAliases() != null) { _instrumentValues.setAliases(getInstrumentAliases()); } _instrumentValues.setString(instrument); Instrument[] instruments = (Instrument[])_instrumentValues.instantiate(Instrument.class, _config); for (Instrument inst : instruments) { inst.setProvider(this); _instruments.put(inst.getName(), inst); } }
public void setInstrument(String instrument) { _instrumentValues = new PluginListValue("Instrument"); if (getInstrumentAliases() != null) { _instrumentValues.setAliases(getInstrumentAliases()); } _instrumentValues.setString(instrument); Instrument[] instruments = (Instrument[])_instrumentValues.instantiate(Instrument.class, _config); for (Instrument inst : instruments) { inst.setProvider(this); _instruments.put(inst.getName(), inst); } }
/** * Set partitions from a String configuration. * * @param parts a String of the form <code>(p1, p2, p3)</code> where p1, p2 etc. itself are plug-in strings * for individual Data Cache configuration. */ public void setPartitions(String parts) { _partProperties.clear(); parsePartitionProperties(parts); PluginListValue partitions = new PluginListValue("partitions"); String[] types = (String[])Array.newInstance(String.class, _partProperties.size()); Arrays.fill(types, _type.getName()); partitions.setClassNames(types); partitions.setProperties(_partProperties.toArray(new String[_partProperties.size()])); DataCache[] array = (DataCache[])partitions.instantiate(_type, conf); for (DataCache part : array) { if (part.getName() == null) throw new UserException(_loc.get("partition-cache-null-partition", parts)); if (_partitions.containsKey(part.getName())) throw new UserException(_loc.get("partition-cache-duplicate-partition", part.getName(), parts)); if (part.getName().equals(DataCache.NAME_DEFAULT)) throw new UserException(_loc.get("partition-cache-default-partition", part.getName(), parts)); _partitions.put(part.getName(), part); } }
/** * Set partitions from a String configuration. * * @param parts a String of the form <code>(p1, p2, p3)</code> where p1, p2 etc. itself are plug-in strings * for individual Data Cache configuration. */ public void setPartitions(String parts) { _partProperties.clear(); parsePartitionProperties(parts); PluginListValue partitions = new PluginListValue("partitions"); String[] types = (String[])Array.newInstance(String.class, _partProperties.size()); Arrays.fill(types, _type.getName()); partitions.setClassNames(types); partitions.setProperties(_partProperties.toArray(new String[_partProperties.size()])); DataCache[] array = (DataCache[])partitions.instantiate(_type, conf); for (DataCache part : array) { if (part.getName() == null) throw new UserException(_loc.get("partition-cache-null-partition", parts)); if (_partitions.containsKey(part.getName())) throw new UserException(_loc.get("partition-cache-duplicate-partition", part.getName(), parts)); if (part.getName().equals(DataCache.NAME_DEFAULT)) throw new UserException(_loc.get("partition-cache-default-partition", part.getName(), parts)); _partitions.put(part.getName(), part); } }
/** * Set partitions from a String configuration. * * @param parts a String of the form <code>(p1, p2, p3)</code> where p1, p2 etc. itself are plug-in strings * for individual Data Cache configuration. */ public void setPartitions(String parts) { _partProperties.clear(); parsePartitionProperties(parts); PluginListValue partitions = new PluginListValue("partitions"); String[] types = (String[])Array.newInstance(String.class, _partProperties.size()); Arrays.fill(types, _type.getName()); partitions.setClassNames(types); partitions.setProperties(_partProperties.toArray(new String[_partProperties.size()])); DataCache[] array = (DataCache[])partitions.instantiate(_type, conf); for (DataCache part : array) { if (part.getName() == null) throw new UserException(_loc.get("partition-cache-null-partition", parts)); if (_partitions.containsKey(part.getName())) throw new UserException(_loc.get("partition-cache-duplicate-partition", part.getName(), parts)); if (part.getName().equals(DataCache.NAME_DEFAULT)) throw new UserException(_loc.get("partition-cache-default-partition", part.getName(), parts)); _partitions.put(part.getName(), part); } }