private void initAttributes() { attributes = new DefaultsMap(); Map options = new TreeMap(mysqldResource.getServerOptions()); List attInfs = new ArrayList(); makeAttribute(attInfs, AUTOSTART_ATTR, Boolean.FALSE.toString(), true); for (Iterator iter = options.entrySet().iterator(); iter.hasNext();) { Map.Entry entry = (Map.Entry) iter.next(); String attName = (String) entry.getKey(); String attValue = (String) entry.getValue(); makeAttribute(attInfs, attName, attValue, true); } makeAttribute(attInfs, versionAttributeName(), VERSION, false); this.attrInfos = (MBeanAttributeInfo[]) attInfs .toArray(new MBeanAttributeInfo[attInfs.size()]); }
private void initAttributes() { attributes = new DefaultsMap(); Map options = new TreeMap(mysqldFactory.newMysqldResource(null, null, null).getServerOptions()); List attInfs = new ArrayList(); makeAttribute(attInfs, AUTOSTART_ATTR, Boolean.FALSE.toString(), true); for (Iterator iter = options.entrySet().iterator(); iter.hasNext();) { Map.Entry entry = (Map.Entry) iter.next(); String attName = (String) entry.getKey(); String attValue = (String) entry.getValue(); makeAttribute(attInfs, attName, attValue, true); } makeAttribute(attInfs, versionAttributeName(), VERSION, false); this.attrInfos = (MBeanAttributeInfo[]) attInfs .toArray(new MBeanAttributeInfo[attInfs.size()]); }
@Override protected void setUp() { map = new DefaultsMap(); map.put("foo", "bar"); map.put("stay", "unchanged"); map.put("foo", "baz"); }
protected void setUp() { map = new DefaultsMap(); map.put("foo", "bar"); map.put("stay", "unchanged"); map.put("foo", "baz"); }
protected void setUp() { map = new DefaultsMap(); map.put("foo", "bar"); map.put("stay", "unchanged"); map.put("foo", "baz"); }