//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public void start() throws Throwable public override void Start() { Log log = _logService.getInternalLog(typeof(BoltServer)); Log userLog = _logService.getUserLog(typeof(BoltServer)); InternalLoggerFactory.DefaultFactory = new Netty4LoggerFactory(_logService.InternalLogProvider); Authentication authentication = CreateAuthentication(); TransportThrottleGroup throttleGroup = new TransportThrottleGroup(_config, _clock); BoltSchedulerProvider boltSchedulerProvider = _life.add(new ExecutorBoltSchedulerProvider(_config, new CachedThreadPoolExecutorFactory(log), _jobScheduler, _logService)); BoltConnectionFactory boltConnectionFactory = CreateConnectionFactory(_config, boltSchedulerProvider, throttleGroup, _logService, _clock); BoltStateMachineFactory boltStateMachineFactory = CreateBoltFactory(authentication, _clock); BoltProtocolFactory boltProtocolFactory = CreateBoltProtocolFactory(boltConnectionFactory, boltStateMachineFactory); if (_config.enabledBoltConnectors().Count > 0 && !_config.get(GraphDatabaseSettings.disconnected)) { NettyServer server = new NettyServer(_jobScheduler.threadFactory(Group.BOLT_NETWORK_IO), CreateConnectors(boltProtocolFactory, throttleGroup, log), _connectorPortRegister, userLog); _life.add(server); log.Info("Bolt server loaded"); } _life.start(); // init and start the nested lifecycle }
private BoltProtocolFactory CreateBoltProtocolFactory(BoltConnectionFactory connectionFactory, BoltStateMachineFactory stateMachineFactory) { return(new DefaultBoltProtocolFactory(connectionFactory, stateMachineFactory, _logService)); }