Free cookie consent management tool by TermsFeed Policy Generator

Changeset 840


Ignore:
Timestamp:
11/27/08 15:58:48 (15 years ago)
Author:
kgrading
Message:

implemented changes from (#398) and changed the server IP

Location:
trunk/sources
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Client.Communication/ServerProxy.cs

    r791 r840  
    3434
    3535    [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IClientCommunicator/SendJobResult", ReplyAction = "http://tempuri.org/IClientCommunicator/SendJobResultResponse")]
    36     HeuristicLab.Hive.Contracts.Response SendJobResult(HeuristicLab.Hive.Contracts.BusinessObjects.JobResult Result, bool finished);
     36    HeuristicLab.Hive.Contracts.ResponseResultReceived SendJobResult(HeuristicLab.Hive.Contracts.BusinessObjects.JobResult Result, bool finished);
    3737
    3838    [System.ServiceModel.OperationContractAttribute(AsyncPattern = true, Action = "http://tempuri.org/IClientCommunicator/SendJobResult", ReplyAction = "http://tempuri.org/IClientCommunicator/SendJobResultResponse")]
    3939    System.IAsyncResult BeginSendJobResult(HeuristicLab.Hive.Contracts.BusinessObjects.JobResult Result, bool finished, System.AsyncCallback callback, object asyncState);
    4040
    41     HeuristicLab.Hive.Contracts.Response EndSendJobResult(System.IAsyncResult result);
     41    HeuristicLab.Hive.Contracts.ResponseResultReceived EndSendJobResult(System.IAsyncResult result);
    4242
    4343    [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IClientCommunicator/Logout", ReplyAction = "http://tempuri.org/IClientCommunicator/LogoutResponse")]
     
    122122    }
    123123
     124    public HeuristicLab.Hive.Contracts.ResponseResultReceived Result {
     125      get {
     126        base.RaiseExceptionIfNecessary();
     127        return ((HeuristicLab.Hive.Contracts.ResponseResultReceived)(this.results[0]));
     128      }
     129    }
     130  }
     131
     132  [System.Diagnostics.DebuggerStepThroughAttribute()]
     133  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
     134  public partial class LogoutCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
     135
     136    private object[] results;
     137
     138    public LogoutCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
     139      base(exception, cancelled, userState) {
     140      this.results = results;
     141    }
     142
    124143    public HeuristicLab.Hive.Contracts.Response Result {
    125144      get {
     
    132151  [System.Diagnostics.DebuggerStepThroughAttribute()]
    133152  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    134   public partial class LogoutCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
    135 
    136     private object[] results;
    137 
    138     public LogoutCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
    139       base(exception, cancelled, userState) {
    140       this.results = results;
    141     }
    142 
    143     public HeuristicLab.Hive.Contracts.Response Result {
    144       get {
    145         base.RaiseExceptionIfNecessary();
    146         return ((HeuristicLab.Hive.Contracts.Response)(this.results[0]));
    147       }
    148     }
    149   }
    150 
    151   [System.Diagnostics.DebuggerStepThroughAttribute()]
    152   [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    153153  public partial class ClientCommunicatorClient : System.ServiceModel.ClientBase<IClientCommunicator>, IClientCommunicator {
    154154
     
    362362    }
    363363
    364     public HeuristicLab.Hive.Contracts.Response SendJobResult(HeuristicLab.Hive.Contracts.BusinessObjects.JobResult Result, bool finished) {
     364    public HeuristicLab.Hive.Contracts.ResponseResultReceived SendJobResult(HeuristicLab.Hive.Contracts.BusinessObjects.JobResult Result, bool finished) {
    365365      return base.Channel.SendJobResult(Result, finished);
    366366    }
     
    372372
    373373    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    374     public HeuristicLab.Hive.Contracts.Response EndSendJobResult(System.IAsyncResult result) {
     374    public HeuristicLab.Hive.Contracts.ResponseResultReceived EndSendJobResult(System.IAsyncResult result) {
    375375      return base.Channel.EndSendJobResult(result);
    376376    }
     
    383383
    384384    private object[] OnEndSendJobResult(System.IAsyncResult result) {
    385       HeuristicLab.Hive.Contracts.Response retVal = this.EndSendJobResult(result);
     385      HeuristicLab.Hive.Contracts.ResponseResultReceived retVal = this.EndSendJobResult(result);
    386386      return new object[] {
    387387                retVal};
     
    465465  }
    466466}
    467 
  • trunk/sources/HeuristicLab.Hive.Client.Communication/ServiceLocator.cs

    r819 r840  
    1313        proxy = new ClientCommunicatorClient(
    1414          new NetTcpBinding(),
    15           new EndpointAddress("net.tcp://10.20.53.1:9000/HiveServer/ClientCommunicator")
     15          new EndpointAddress("net.tcp://10.20.53.3:9000/HiveServer/ClientCommunicator")
    1616          );
    1717      }
  • trunk/sources/HeuristicLab.Hive.Client.Core/Core.cs

    r830 r840  
    146146      JobResult jobResult = new JobResult { JobId = jId, Result = sJob, Client = null };
    147147      clientCommunicator.SendJobResultAsync(jobResult, true);
    148 
    149       AppDomain.Unload(appDomains[jId]);
    150       appDomains.Remove(jId);
    151       engines.Remove(jId);
    152       Status.CurrentJobs--;
    153       Debug.WriteLine("Decrement CurrentJobs to:" + Status.CurrentJobs.ToString());       
    154 
    155148    }
    156149
     
    182175    }
    183176
    184     void ClientCommunicator_SendJobResultCompleted(object sender, SendJobResultCompletedEventArgs e) {     
    185       // TODO Removing of the Engines & AppDomains should happen here, not in the GetFinishedJob Method.
     177    void ClientCommunicator_SendJobResultCompleted(object sender, SendJobResultCompletedEventArgs e) {
     178      if (e.Result.Success) {
     179        AppDomain.Unload(appDomains[e.Result.JobId]);
     180        appDomains.Remove(e.Result.JobId);
     181        engines.Remove(e.Result.JobId);
     182        Status.CurrentJobs--;
     183        Debug.WriteLine("Decrement CurrentJobs to:" + Status.CurrentJobs.ToString());
     184      } else {
     185        Debug.WriteLine("Job sending FAILED!");
     186      }
    186187    }
    187188  }
Note: See TracChangeset for help on using the changeset viewer.