public ApiBootstrapper(ComputeServer computeServer, WorkerPool workerPool, AlgorithmFactory algoFactory)
 {
     this.computeServer = computeServer;
     this.workerPool = workerPool;
     this.algoFactory = algoFactory;
     serverType = ServerTypes.Compute;
 }
        public IServer CreateServer(string serverName)
        {
            IServer server = null;
            var serverConfig = SystemConfig.Servers[serverName];

            if (serverConfig.Type == ServerTypes.Mediator)
            {
                server = new MediatorServer(SystemConfig, DataSource);
            }
            else if (serverConfig.Type == ServerTypes.Compute)
            {
                server = new ComputeServer(SystemConfig, serverName, AlgorithmFactory);
            }
            else if (serverConfig.Type == ServerTypes.Cache)
            {
                server = new CacheServer(SystemConfig);
            }

            return server;
        }
 public ComputeBootstrapper(ComputeServer computeServer, WorkerPool workerPool)
 {
     this.computeServer = computeServer;
     this.workerPool = workerPool;
 }