- Timestamp:
- 06/16/09 11:15:34 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.CEDMA.Server/3.3/ServerForm.cs
r1898 r2050 43 43 public partial class ServerForm : Form { 44 44 private Server server; 45 private Store store;46 private IDispatcher dispatcher;47 private IExecuter executer;48 45 49 private static readonly string rdfFile = AppDomain.CurrentDomain.BaseDirectory + "rdf_store.db3";50 private static readonly string rdfConnectionString = "sqlite:rdf:Data Source=\"" + rdfFile + "\"";51 46 52 47 public ServerForm() { 53 48 InitializeComponent(); 54 store = new Store(rdfConnectionString); 55 server = new Server(store); 49 server = new Server(); 56 50 server.Start(); 57 51 addressTextBox.Text = server.CedmaServiceUrl; … … 59 53 60 54 private void refreshTimer_Tick(object sender, EventArgs e) { 61 listBox.DataSource = executer.GetJobs();55 listBox.DataSource = server.GetActiveJobDescriptions(); 62 56 } 63 57 64 58 private void connectButton_Click(object sender, EventArgs e) { 65 dispatcher = new SimpleDispatcher(store); 66 if (address.Text.Contains("ExecutionEngine")) { 67 executer = new HiveExecuter(dispatcher, store, address.Text); 68 } else { 69 // default is grid backend 70 executer = new GridExecuter(dispatcher, store, address.Text); 71 } 72 executer.Start(); 59 server.Connect(address.Text); 73 60 maxActiveJobsUpDown.Enabled = true; 74 maxActiveJobsUpDown.Value = executer.MaxActiveJobs;61 maxActiveJobsUpDown.Value = server.MaxActiveJobs; 75 62 connectButton.Enabled = false; 76 63 refreshTimer.Start(); … … 78 65 79 66 private void maxActiveJobsUpDown_ValueChanged(object sender, EventArgs e) { 80 executer.MaxActiveJobs = Convert.ToInt32(maxActiveJobsUpDown.Value);67 server.MaxActiveJobs = Convert.ToInt32(maxActiveJobsUpDown.Value); 81 68 } 82 69 }
Note: See TracChangeset
for help on using the changeset viewer.