Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/16/10 14:31:52 (14 years ago)
Author:
cneumuel
Message:

#1260

  • changed dependency discovery machanism: now all locally loaded plugins will be dependencies for a job.
  • fixed logging of slaveconsole by limiting the maximum log-messages
  • minor bug fixes.
Location:
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Console/3.3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Console/3.3/HiveSlaveConsole.cs

    r4772 r4810  
    104104    private void InitLogFileReader() {
    105105      //logFileReader = new LogFileReader(AppDomain.CurrentDomain.BaseDirectory + @"/Hive.Slave.log");
    106       logFileReader = new LogServiceReader(slaveCommunicator);
     106      logFileReader = new LogServiceReader();
    107107      logFileReader.MoreData += new MoreDataHandler(logFileReader_MoreData);
    108108      logFileReader.Start();
     
    524524        isfired = true;
    525525        refreshTimer.Stop();
    526         DialogResult res = MessageBox.Show(body, caption, MessageBoxButtons.OK, MessageBoxIcon.Error);
     526       
     527        DialogResult res;
     528        if (e != null) {
     529          res = MessageBox.Show(body + "\n" + e.Message + ": " + e.StackTrace, caption, MessageBoxButtons.OK, MessageBoxIcon.Error);
     530        } else {
     531          res = MessageBox.Show(body + " (no exception available)", caption, MessageBoxButtons.OK, MessageBoxIcon.Error);
     532        }
    527533        if (res == DialogResult.OK)
    528534          this.Close();
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Console/3.3/LogServiceReader.cs

    r4772 r4810  
    55using System.Windows.Forms;
    66using HeuristicLab.Core;
     7using HeuristicLab.Hive.Slave.Console.SlaveConsoleService;
    78
    89namespace HeuristicLab.Hive.Slave.Console {
    910  internal class LogServiceReader : ILogReader {
    1011
    11     private SlaveConsoleService.SlaveConsoleCommunicatorClient slaveCommunicator;
    1212    private Timer timer;
    1313    private int messageCount = 0;
    1414
    15     public LogServiceReader(SlaveConsoleService.SlaveConsoleCommunicatorClient slaveCommunicator) {
    16       this.slaveCommunicator = slaveCommunicator;
     15    public LogServiceReader() {
    1716    }
    1817
     
    2625    void timer_Tick(object sender, EventArgs e) {
    2726      try {
    28         var messages = slaveCommunicator.GetLogMessages();
    29         var newMessages = messages.GetRange(messageCount, messages.Count - messageCount);
    30         messageCount = messages.Count;
    31         OnMoreData(newMessages);
     27        using (var slaveClient = new SlaveConsoleCommunicatorClient()) {
     28          var messages = slaveClient.GetLogMessages();
     29          if (messages.Count < messageCount) {
     30            messageCount = 0; // log got cleared
     31          }
     32          var newMessages = messages.GetRange(messageCount, messages.Count - messageCount);
     33          messageCount = messages.Count;
     34          OnMoreData(newMessages);
     35        }
    3236      }
    3337      catch { }
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Console/3.3/app.config

    r4710 r4810  
    1717      <netTcpBinding>
    1818        <binding name="SlaveConsoleTcpEndpoint" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxBufferSize="65536" maxReceivedMessageSize="65536">
    19           <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384"/>
     19          <readerQuotas maxDepth="32" maxStringContentLength="104857600" maxArrayLength="104857600" maxBytesPerRead="104857600" maxNameTableCharCount="104857600"/>
    2020          <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false"/>
    2121          <security mode="None">
Note: See TracChangeset for help on using the changeset viewer.