Free cookie consent management tool by TermsFeed Policy Generator

Changeset 977


Ignore:
Timestamp:
12/11/08 17:26:00 (16 years ago)
Author:
msteinbi
Message:

Implementation of ClientCommunicator (#399)

Location:
trunk/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Server.Core/ClientCommunicator.cs

    r970 r977  
    2424      clientAdapter = ServiceLocator.GetClientAdapter();
    2525      jobAdapter = ServiceLocator.GetJobAdapter();
     26
     27      for (int i = 0; i < 10; i++) {
     28        Job job = new Job();
     29        job.JobId = i;
     30        job.State = State.offline;
     31        jobAdapter.UpdateJob(job);
     32      }
    2633
    2734    }
     
    5764      response.ActionRequest = new List<MessageContainer>();
    5865      List<Job> allJobs = new List<Job>(jobAdapter.GetAllJobs());
    59       if (allJobs.Count > 0)
     66      if (allJobs.Count > 0 && hbData.freeCores > 0)
    6067        response.ActionRequest.Add(new MessageContainer(MessageContainer.MessageType.FetchJob));
    6168      else
  • trunk/sources/HeuristicLab.Hive.Server/HiveServerApplication.cs

    r948 r977  
    149149        //sync with db every 5 minutes
    150150        lifecycleManager.GetTransactionManager().EnableAutoUpdate(
    151           new TimeSpan(0, 5, 0));
     151          new TimeSpan(0, 0, 10));
    152152
    153153        Form mainForm = new MainForm(clientCommunicator.BaseAddresses[0],
Note: See TracChangeset for help on using the changeset viewer.