private void registerEventTypeIfNotExists(String eventTypeName, Map<String, Object> typeMap) { try { LOG.info("Registering event type, " +eventTypeName); epService.getEPAdministrator().getConfiguration().addEventType(eventTypeName, typeMap); eventTypeNames.add(eventTypeName); } catch (ConfigurationException e) { e.printStackTrace(); LOG.error("Event type does already exist, " +eventTypeName); } }
@PostConstruct public void init() { epService = EPServiceProviderManager.getDefaultProvider(); epService.getEPAdministrator().getConfiguration().addEventType("ValuesEvent", ValuesInfo.class); log.debug("Initialized EPE .."); }