/** * Function called by dependency manager after "init ()" is called and after * the services provided by the class are registered in the service registry */ void start() { /* Start ovsdb server before getting connection clients */ String portString = ConfigProperties.getProperty(OvsdbConnectionService.class, OVSDB_LISTENPORT); int ovsdbListenPort = DEFAULT_OVSDB_PORT; if (portString != null) { ovsdbListenPort = Integer.decode(portString).intValue(); } if (!connectionLib.startOvsdbManager(ovsdbListenPort)) { logger.warn("Start OVSDB manager call from ConnectionService was not necessary"); } /* Then get connection clients */ Collection<OvsdbClient> connections = connectionLib.getConnections(); for (OvsdbClient client : connections) { logger.info("CONNECT start connected clients client = {}", client); this.connected(client); } }