gerrithudsontrigger/src/main/java/com/sonyericsson/hudson/plugins/gerrit/trigger/PluginImpl.java
/**
     * Starts the connection to Gerrit stream of events.
     *
     * @throws Exception if it is so unfortunate.
     */
Starts the connection to Gerrit stream of events.
@throws Exception if it is so unfortunate.
Starts the connection to Gerrit stream of events . @throws Exception if it is so unfortunate .
public synchronized void startConnection() throws Exception {
        if (!config.hasDefaultValues()) {
            if (gerritEventManager == null) {
                createManager();
                if (savedEventListeners != null) {
                    gerritEventManager.addEventListeners(savedEventListeners);
                    savedEventListeners = null;
                }
                if (savedConnectionListeners != null) {
                    gerritEventManager.addConnectionListeners(savedConnectionListeners);
                    savedConnectionListeners = null;
                }
                gerritEventManager.start();
                logger.info("Started");
            } else {
                logger.warn("Already started!");
            }
        }
    }
public synchronized void startConnection ( ) throws Exception { if ( ! config . hasDefaultValues ( ) ) { if ( gerritEventManager == null ) { createManager ( ) ; if ( savedEventListeners != null ) { gerritEventManager . addEventListeners ( savedEventListeners ) ; savedEventListeners = null ; } if ( savedConnectionListeners != null ) { gerritEventManager . addConnectionListeners ( savedConnectionListeners ) ; savedConnectionListeners = null ; } gerritEventManager . start ( ) ; logger . info ( "Started" ) ; } else { logger . warn ( "Already started!" ) ; } } }
Starts the connection to Gerrit stream of events.
Starts the connection to Gerrit stream of events .