static { EVENT_ID_LIST = new ArrayList<String>(); for (BASIC_EVENT t : BASIC_EVENT.values()) { EVENT_ID_LIST.add(t.name()); } // HashMap<String, Object> map = new SimpleMapper().convert(new LinkQueryStorableDummy(), TypeRef.HASHMAP); for (Entry<String, Object> es : map.entrySet()) { EVENT_ID_LIST.add(BASIC_EVENT.LINK_UPDATE.name() + "." + es.getKey()); } map = new SimpleMapper().convert(new PackageQueryStorableDummy(), TypeRef.HASHMAP); for (Entry<String, Object> es : map.entrySet()) { EVENT_ID_LIST.add(BASIC_EVENT.PACKAGE_UPDATE.name() + "." + es.getKey()); } INTERVAL_EVENT_ID_LIST = new ArrayList<String>(); INTERVAL_EVENT_ID_LIST.add(BASIC_EVENT.LINK_UPDATE.name() + ".speed"); INTERVAL_EVENT_ID_LIST.add(BASIC_EVENT.LINK_UPDATE.name() + ".bytesLoaded"); INTERVAL_EVENT_ID_LIST.add(BASIC_EVENT.LINK_UPDATE.name() + ".eta"); INTERVAL_EVENT_ID_LIST.add(BASIC_EVENT.LINK_UPDATE.name() + ".bytesTotal"); INTERVAL_EVENT_ID_LIST.add(BASIC_EVENT.LINK_UPDATE.name() + ".status"); INTERVAL_EVENT_ID_LIST.add(BASIC_EVENT.PACKAGE_UPDATE.name() + ".speed"); INTERVAL_EVENT_ID_LIST.add(BASIC_EVENT.PACKAGE_UPDATE.name() + ".bytesLoaded"); INTERVAL_EVENT_ID_LIST.add(BASIC_EVENT.PACKAGE_UPDATE.name() + ".eta"); INTERVAL_EVENT_ID_LIST.add(BASIC_EVENT.PACKAGE_UPDATE.name() + ".bytesTotal"); INTERVAL_EVENT_ID_LIST.add(BASIC_EVENT.PACKAGE_UPDATE.name() + ".status"); }
private void fire( BASIC_EVENT eventType, final String eventID, Object dls, UniqueAlltimeID uniqueAlltimeID) { if (uniqueAlltimeID != null) { fire( eventType.name() + "." + eventID, dls, eventType + "." + eventID + uniqueAlltimeID.getID()); } else { fire(eventType.name() + "." + eventID, dls, null); } }