public static void clearAllEnableGWData() { TagTimeEntry[] ttes = OpPerfBridge.getAllEnableProfilerData(); for (TagTimeEntry tte : ttes) { tte.clear(); // 如果是流量数据,还要同时reset String key = tte.getName(); NetUtils.clearNetValue(key); } }
public static void saveAllEnableGWData(GWSaveEntry saveEntry) { setLastSaveFolder(saveEntry.path3); String now = GTUtils.getSaveDate(); saveEntry.setNow(now); TagTimeEntry[] ttes = OpPerfBridge.getAllEnableProfilerData(); for (TagTimeEntry tte : ttes) { if (null != tte && tte.getAlias().equals("SM")) { LogUtils.writeGWDataForSM(saveEntry, tte); } else { LogUtils.writeGWData(saveEntry, tte); } } LogUtils.writeGWDesc(saveEntry, ttes); }
/** * 记录最新一次告警 * * @param begin * @param end */ private void recordLastestWaring(int begin, int end) { lastestWarning = new WarningEntry(src, begin, end); OpPerfBridge.getOpWarningManager().add(lastestWarning); }