/** * Broadcast provider connection event * * @param provider Provider that has connected * @param type Event type * @param paramMap Parameters passed with connection */ protected void fireProviderConnectionEvent( IProvider provider, int type, Map<String, Object> paramMap) { PipeConnectionEvent event = new PipeConnectionEvent(this); event.setProvider(provider); event.setType(type); event.setParamMap(paramMap); firePipeConnectionEvent(event); }
/** * Broadcast consumer connection event * * @param consumer Consumer that has connected * @param type Event type * @param paramMap Parameters passed with connection */ protected void fireConsumerConnectionEvent( IConsumer consumer, int type, Map<String, Object> paramMap) { // Create event object PipeConnectionEvent event = new PipeConnectionEvent(this); // Fill it up event.setConsumer(consumer); event.setType(type); event.setParamMap(paramMap); // Fire it firePipeConnectionEvent(event); }