74757677787980818283
@Override protected CPUInfoBean process(LogRecord rec) { if (MESSAGE.equals(rec.getMessage())) { Object[] params = rec.getParameters(); if (params != null) { return new CPUInfoBean(params); } } return newData(); }
9899100101102103104105106107108
return two; } if (EMPTY.equals(two)){ return one; } CPUInfoBean result = new CPUInfoBean(); result.cpuCount = new HashMap<Integer, Integer>(one.cpuCount); addAllCounts(result.cpuCount, two.cpuCount); return result; }
112113114115116117118119120
writeMap(pref.node(CPU_COUNT), d.cpuCount); } @Override public CPUInfoBean read(Preferences pref) throws BackingStoreException { CPUInfoBean bean = new CPUInfoBean(); bean.cpuCount = readCounts(pref.node(CPU_COUNT)); return bean; }