private void postEvent(String t, ActiveConfiguration c, Exception e) {
        Map<String, Object> eventProps = new HashMap<String, Object>(4);

        eventProps.put(HttpServiceConstants.ENDPOINT_NAME, endpointName);
        eventProps.put(HttpServiceConstants.ENDPOINT_ACTIVE_PORT, c.activePort);
        eventProps.put(HttpServiceConstants.ENDPOINT_CONFIG_HOST, c.configHost);
        eventProps.put(HttpServiceConstants.ENDPOINT_CONFIG_PORT, c.configPort);
        eventProps.put(HttpServiceConstants.ENDPOINT_IS_HTTPS, isHttps);

        if (e != null) {
            eventProps.put(HttpServiceConstants.ENDPOINT_EXCEPTION, e.toString());
        }

        EventAdmin engine = owner.getEventAdmin();
        if (engine != null) {
            Event event = new Event(t, eventProps);
            engine.postEvent(event);
        }
    }
private void postEvent ( String t , ActiveConfiguration c , Exception e ) { Map < String , Object > eventProps = new HashMap < String , Object > ( 4 ) ; eventProps . put ( HttpServiceConstants . ENDPOINT_NAME , endpointName ) ; eventProps . put ( HttpServiceConstants . ENDPOINT_ACTIVE_PORT , c . activePort ) ; eventProps . put ( HttpServiceConstants . ENDPOINT_CONFIG_HOST , c . configHost ) ; eventProps . put ( HttpServiceConstants . ENDPOINT_CONFIG_PORT , c . configPort ) ; eventProps . put ( HttpServiceConstants . ENDPOINT_IS_HTTPS , isHttps ) ; if ( e != null ) { eventProps . put ( HttpServiceConstants . ENDPOINT_EXCEPTION , e . toString ( ) ) ; } EventAdmin engine = owner . getEventAdmin ( ) ; if ( engine != null ) { Event event = new Event ( t , eventProps ) ; engine . postEvent ( event ) ; } }
Publish an event relating to a chain starting/stopping with the
given properties set about the chain.