Changeset 2122 for trunk/sources
- Timestamp:
- 06/28/09 14:28:30 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Communication/3.2/HeuristicLab.Hive.Client.Communication-3.2.csproj
r1939 r2122 140 140 <None Include="Properties\DataSources\HeuristicLab.Hive.Contracts.ResponsePlugin.datasource" /> 141 141 <None Include="Properties\DataSources\HeuristicLab.Hive.Contracts.ResponseResultReceived.datasource" /> 142 <None Include="Properties\DataSources\HeuristicLab.Hive.Contracts.ResponseSerializedJob.datasource" /> 142 143 <None Include="Service References\ServerService\Arrays1.xsd" /> 143 144 <None Include="Service References\ServerService\HeuristicLab.DataAccess1.xsd" /> … … 146 147 <None Include="Service References\ServerService\HeuristicLab.PluginInfrastructure.xsd" /> 147 148 <None Include="Service References\ServerService\HeuristicLab.PluginInfrastructure2.xsd" /> 148 <None Include="Service References\ServerService\Message .xsd" />149 <None Include="Service References\ServerService\Message1.xsd" /> 149 150 <None Include="Service References\ServerService\Reference.svcmap"> 150 151 <Generator>WCF Proxy Generator</Generator> -
trunk/sources/HeuristicLab.Hive.Client.Communication/3.2/Service References/ServerService/Arrays1.xsd
r1594 r2122 20 20 </xs:complexType> 21 21 <xs:element name="ArrayOfKeyValueOfguiddouble" nillable="true" type="tns:ArrayOfKeyValueOfguiddouble" /> 22 <xs:complexType name="ArrayOfguid"> 23 <xs:sequence> 24 <xs:element minOccurs="0" maxOccurs="unbounded" name="guid" type="ser:guid" /> 25 </xs:sequence> 26 </xs:complexType> 27 <xs:element name="ArrayOfguid" nillable="true" type="tns:ArrayOfguid" /> 22 28 <xs:complexType name="ArrayOfbase64Binary"> 23 29 <xs:sequence> -
trunk/sources/HeuristicLab.Hive.Client.Communication/3.2/Service References/ServerService/HeuristicLab.Hive.Contracts.BusinessObjects1.xsd
r1939 r2122 52 52 <xs:enumeration value="requestSnapshot" /> 53 53 <xs:enumeration value="requestSnapshotSent" /> 54 <xs:enumeration value="pending" /> 54 55 </xs:restriction> 55 56 </xs:simpleType> … … 68 69 <xs:extension xmlns:q4="http://schemas.datacontract.org/2004/07/HeuristicLab.DataAccess" base="q4:PersistableObject"> 69 70 <xs:sequence> 71 <xs:element xmlns:q5="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="AssignedResourceIds" nillable="true" type="q5:ArrayOfguid" /> 70 72 <xs:element minOccurs="0" name="Client" nillable="true" type="tns:ClientInfo" /> 71 73 <xs:element minOccurs="0" name="CoresNeeded" type="xs:int" /> … … 77 79 <xs:element minOccurs="0" name="PluginsNeeded" nillable="true" type="tns:ArrayOfHivePluginInfo" /> 78 80 <xs:element minOccurs="0" name="Priority" type="xs:int" /> 79 <xs:element minOccurs="0" name=" SerializedJob" nillable="true" type="xs:base64Binary" />81 <xs:element minOccurs="0" name="Project" nillable="true" type="tns:Project" /> 80 82 <xs:element minOccurs="0" name="State" type="tns:State" /> 81 83 <xs:element minOccurs="0" name="UserId" type="ser:guid" /> … … 93 95 <xs:complexType name="HivePluginInfo"> 94 96 <xs:complexContent mixed="false"> 95 <xs:extension xmlns:q 5="http://schemas.datacontract.org/2004/07/HeuristicLab.DataAccess" base="q5:PersistableObject">97 <xs:extension xmlns:q6="http://schemas.datacontract.org/2004/07/HeuristicLab.DataAccess" base="q6:PersistableObject"> 96 98 <xs:sequence> 97 99 <xs:element minOccurs="0" name="BuildDate" type="xs:dateTime" /> … … 103 105 </xs:complexType> 104 106 <xs:element name="HivePluginInfo" nillable="true" type="tns:HivePluginInfo" /> 107 <xs:complexType name="Project"> 108 <xs:complexContent mixed="false"> 109 <xs:extension xmlns:q7="http://schemas.datacontract.org/2004/07/HeuristicLab.DataAccess" base="q7:PersistableObject"> 110 <xs:sequence> 111 <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" /> 112 </xs:sequence> 113 </xs:extension> 114 </xs:complexContent> 115 </xs:complexType> 116 <xs:element name="Project" nillable="true" type="tns:Project" /> 117 <xs:complexType name="SerializedJob"> 118 <xs:sequence> 119 <xs:element minOccurs="0" name="JobInfo" nillable="true" type="tns:Job" /> 120 <xs:element minOccurs="0" name="SerializedJobData" nillable="true" type="xs:base64Binary" /> 121 </xs:sequence> 122 </xs:complexType> 123 <xs:element name="SerializedJob" nillable="true" type="tns:SerializedJob" /> 105 124 </xs:schema> -
trunk/sources/HeuristicLab.Hive.Client.Communication/3.2/Service References/ServerService/HeuristicLab.Hive.Contracts1.xsd
r1939 r2122 45 45 <xs:enumeration value="Shutdown" /> 46 46 <xs:enumeration value="JobFailed" /> 47 <xs:enumeration value="UptimeLimitDisconnect" /> 47 48 </xs:restriction> 48 49 </xs:simpleType> … … 58 59 </xs:complexType> 59 60 <xs:element name="ResponseJob" nillable="true" type="tns:ResponseJob" /> 61 <xs:complexType name="ResponseSerializedJob"> 62 <xs:complexContent mixed="false"> 63 <xs:extension base="tns:Response"> 64 <xs:sequence> 65 <xs:element xmlns:q2="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Contracts.BusinessObjects" minOccurs="0" name="Job" nillable="true" type="q2:SerializedJob" /> 66 </xs:sequence> 67 </xs:extension> 68 </xs:complexContent> 69 </xs:complexType> 70 <xs:element name="ResponseSerializedJob" nillable="true" type="tns:ResponseSerializedJob" /> 60 71 <xs:complexType name="ResponseResultReceived"> 61 72 <xs:complexContent mixed="false"> … … 63 74 <xs:sequence> 64 75 <xs:element minOccurs="0" name="JobId" type="ser:guid" /> 76 <xs:element minOccurs="0" name="JobResultId" type="ser:guid" /> 65 77 <xs:element minOccurs="0" name="finished" type="xs:boolean" /> 66 78 </xs:sequence> … … 73 85 <xs:extension base="tns:Response"> 74 86 <xs:sequence> 75 <xs:element xmlns:q 2="http://schemas.datacontract.org/2004/07/HeuristicLab.PluginInfrastructure" minOccurs="0" name="Plugins" nillable="true" type="q2:ArrayOfCachedHivePluginInfo" />87 <xs:element xmlns:q3="http://schemas.datacontract.org/2004/07/HeuristicLab.PluginInfrastructure" minOccurs="0" name="Plugins" nillable="true" type="q3:ArrayOfCachedHivePluginInfo" /> 76 88 </xs:sequence> 77 89 </xs:extension> -
trunk/sources/HeuristicLab.Hive.Client.Communication/3.2/Service References/ServerService/Reference.cs
r2117 r2122 2 2 // <auto-generated> 3 3 // This code was generated by a tool. 4 // Runtime Version:2.0.50727.30 824 // Runtime Version:2.0.50727.3053 5 5 // 6 6 // Changes to this file may cause incorrect behavior and will be lost if … … 19 19 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseHB))] 20 20 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseJob))] 21 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseSerializedJob))] 21 22 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseResultReceived))] 22 23 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponsePlugin))] … … 44 45 HeuristicLab.Hive.Contracts.ResponseJob EndSendJob(System.IAsyncResult result); 45 46 47 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientCommunicator/SendSerializedJob", ReplyAction="http://tempuri.org/IClientCommunicator/SendSerializedJobResponse")] 48 HeuristicLab.Hive.Contracts.ResponseSerializedJob SendSerializedJob(System.Guid clientId); 49 50 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientCommunicator/SendSerializedJob", ReplyAction="http://tempuri.org/IClientCommunicator/SendSerializedJobResponse")] 51 System.IAsyncResult BeginSendSerializedJob(System.Guid clientId, System.AsyncCallback callback, object asyncState); 52 53 HeuristicLab.Hive.Contracts.ResponseSerializedJob EndSendSerializedJob(System.IAsyncResult result); 54 46 55 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientCommunicator/StoreFinishedJobResult", ReplyAction="http://tempuri.org/IClientCommunicator/StoreFinishedJobResultResponse")] 47 56 HeuristicLab.Hive.Contracts.ResponseResultReceived StoreFinishedJobResult(System.Guid clientId, System.Guid jobId, byte[] result, double percentage, System.Exception exception); … … 63 72 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseHB))] 64 73 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseJob))] 74 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseSerializedJob))] 65 75 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseResultReceived))] 66 76 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponsePlugin))] … … 75 85 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseHB))] 76 86 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseJob))] 87 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseSerializedJob))] 77 88 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponseResultReceived))] 78 89 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(HeuristicLab.Hive.Contracts.ResponsePlugin))] … … 195 206 [System.Diagnostics.DebuggerStepThroughAttribute()] 196 207 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")] 208 public partial class SendSerializedJobCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { 209 210 private object[] results; 211 212 public SendSerializedJobCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 213 base(exception, cancelled, userState) { 214 this.results = results; 215 } 216 217 public HeuristicLab.Hive.Contracts.ResponseSerializedJob Result { 218 get { 219 base.RaiseExceptionIfNecessary(); 220 return ((HeuristicLab.Hive.Contracts.ResponseSerializedJob)(this.results[0])); 221 } 222 } 223 } 224 225 [System.Diagnostics.DebuggerStepThroughAttribute()] 226 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")] 197 227 public partial class StoreFinishedJobResultCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { 198 228 … … 385 415 386 416 private System.Threading.SendOrPostCallback onSendJobCompletedDelegate; 417 418 private BeginOperationDelegate onBeginSendSerializedJobDelegate; 419 420 private EndOperationDelegate onEndSendSerializedJobDelegate; 421 422 private System.Threading.SendOrPostCallback onSendSerializedJobCompletedDelegate; 387 423 388 424 private BeginOperationDelegate onBeginStoreFinishedJobResultDelegate; … … 464 500 465 501 public event System.EventHandler<SendJobCompletedEventArgs> SendJobCompleted; 502 503 public event System.EventHandler<SendSerializedJobCompletedEventArgs> SendSerializedJobCompleted; 466 504 467 505 public event System.EventHandler<StoreFinishedJobResultCompletedEventArgs> StoreFinishedJobResultCompleted; … … 631 669 base.InvokeAsync(this.onBeginSendJobDelegate, new object[] { 632 670 clientId}, this.onEndSendJobDelegate, this.onSendJobCompletedDelegate, userState); 671 } 672 673 public HeuristicLab.Hive.Contracts.ResponseSerializedJob SendSerializedJob(System.Guid clientId) { 674 return base.Channel.SendSerializedJob(clientId); 675 } 676 677 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] 678 public System.IAsyncResult BeginSendSerializedJob(System.Guid clientId, System.AsyncCallback callback, object asyncState) { 679 return base.Channel.BeginSendSerializedJob(clientId, callback, asyncState); 680 } 681 682 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] 683 public HeuristicLab.Hive.Contracts.ResponseSerializedJob EndSendSerializedJob(System.IAsyncResult result) { 684 return base.Channel.EndSendSerializedJob(result); 685 } 686 687 private System.IAsyncResult OnBeginSendSerializedJob(object[] inValues, System.AsyncCallback callback, object asyncState) { 688 System.Guid clientId = ((System.Guid)(inValues[0])); 689 return this.BeginSendSerializedJob(clientId, callback, asyncState); 690 } 691 692 private object[] OnEndSendSerializedJob(System.IAsyncResult result) { 693 HeuristicLab.Hive.Contracts.ResponseSerializedJob retVal = this.EndSendSerializedJob(result); 694 return new object[] { 695 retVal}; 696 } 697 698 private void OnSendSerializedJobCompleted(object state) { 699 if ((this.SendSerializedJobCompleted != null)) { 700 InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state)); 701 this.SendSerializedJobCompleted(this, new SendSerializedJobCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState)); 702 } 703 } 704 705 public void SendSerializedJobAsync(System.Guid clientId) { 706 this.SendSerializedJobAsync(clientId, null); 707 } 708 709 public void SendSerializedJobAsync(System.Guid clientId, object userState) { 710 if ((this.onBeginSendSerializedJobDelegate == null)) { 711 this.onBeginSendSerializedJobDelegate = new BeginOperationDelegate(this.OnBeginSendSerializedJob); 712 } 713 if ((this.onEndSendSerializedJobDelegate == null)) { 714 this.onEndSendSerializedJobDelegate = new EndOperationDelegate(this.OnEndSendSerializedJob); 715 } 716 if ((this.onSendSerializedJobCompletedDelegate == null)) { 717 this.onSendSerializedJobCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnSendSerializedJobCompleted); 718 } 719 base.InvokeAsync(this.onBeginSendSerializedJobDelegate, new object[] { 720 clientId}, this.onEndSendSerializedJobDelegate, this.onSendSerializedJobCompletedDelegate, userState); 633 721 } 634 722 -
trunk/sources/HeuristicLab.Hive.Client.Communication/3.2/Service References/ServerService/Reference.svcmap
r1939 r2122 18 18 </ClientOptions> 19 19 <MetadataSources> 20 <MetadataSource Address="net.tcp://10. 20.53.7:9000/HiveServer/mex" Protocol="mex" SourceId="1" />20 <MetadataSource Address="net.tcp://10.0.2.15:9000/HiveServer/mex" Protocol="mex" SourceId="1" /> 21 21 </MetadataSources> 22 22 <Metadata> 23 <MetadataFile FileName="service1.wsdl" MetadataType="Wsdl" ID=" d53938ec-48ba-418f-bb09-632f539cde8a" SourceId="1" SourceUrl="net.tcp://10.20.53.7:9000/HiveServer/mex" />24 <MetadataFile FileName="service2.xsd" MetadataType="Schema" ID=" a16a26be-18d5-4b62-a8d7-91b7bc268763" SourceId="1" SourceUrl="net.tcp://10.20.53.7:9000/HiveServer/mex" />25 <MetadataFile FileName="service3.xsd" MetadataType="Schema" ID=" 4f67baa6-eb91-49e2-a96c-810e6d087176" SourceId="1" SourceUrl="net.tcp://10.20.53.7:9000/HiveServer/mex" />26 <MetadataFile FileName="HeuristicLab.Hive.Contracts.BusinessObjects1.xsd" MetadataType="Schema" ID=" cb3b3f0d-0600-4026-bcb3-79ce12ad35e8" SourceId="1" SourceUrl="net.tcp://10.20.53.7:9000/HiveServer/mex" />27 <MetadataFile FileName="HeuristicLab.DataAccess1.xsd" MetadataType="Schema" ID=" a242f5d6-43b5-432f-896a-9e3690c252ed" SourceId="1" SourceUrl="net.tcp://10.20.53.7:9000/HiveServer/mex" />28 <MetadataFile FileName="HeuristicLab.Hive.Contracts1.xsd" MetadataType="Schema" ID=" b3db33c3-5c13-42cc-a005-04e92465fe23" SourceId="1" SourceUrl="net.tcp://10.20.53.7:9000/HiveServer/mex" />29 <MetadataFile FileName="Arrays1.xsd" MetadataType="Schema" ID=" fefa8f39-1910-40e0-9ef1-e44ffc2f6345" SourceId="1" SourceUrl="net.tcp://10.20.53.7:9000/HiveServer/mex" />30 <MetadataFile FileName="System1.xsd" MetadataType="Schema" ID=" c92c72f7-5b07-4aa4-a719-1aabc2a53f18" SourceId="1" SourceUrl="net.tcp://10.20.53.7:9000/HiveServer/mex" />31 <MetadataFile FileName="HeuristicLab.PluginInfrastructure2.xsd" MetadataType="Schema" ID=" 3a57272e-8914-4d62-b585-e69d27495bd4" SourceId="1" SourceUrl="net.tcp://10.20.53.7:9000/HiveServer/mex" />32 <MetadataFile FileName="Message .xsd" MetadataType="Schema" ID="82cab27f-34e8-430c-be01-1d302547f342" SourceId="1" SourceUrl="net.tcp://10.20.53.7:9000/HiveServer/mex" />23 <MetadataFile FileName="service1.wsdl" MetadataType="Wsdl" ID="67311a7a-922b-4675-a2bb-10ab57a84034" SourceId="1" SourceUrl="net.tcp://10.0.2.15:9000/HiveServer/mex" /> 24 <MetadataFile FileName="service2.xsd" MetadataType="Schema" ID="b77a19d5-7c1f-453c-aab7-0899e51523ec" SourceId="1" SourceUrl="net.tcp://10.0.2.15:9000/HiveServer/mex" /> 25 <MetadataFile FileName="service3.xsd" MetadataType="Schema" ID="f44e3d38-15e3-439c-87ef-f1fa9333bc3b" SourceId="1" SourceUrl="net.tcp://10.0.2.15:9000/HiveServer/mex" /> 26 <MetadataFile FileName="HeuristicLab.Hive.Contracts.BusinessObjects1.xsd" MetadataType="Schema" ID="770b7a79-ce79-43dc-9a74-d3343aa63612" SourceId="1" SourceUrl="net.tcp://10.0.2.15:9000/HiveServer/mex" /> 27 <MetadataFile FileName="HeuristicLab.DataAccess1.xsd" MetadataType="Schema" ID="fbac237d-3ab8-487d-af6c-0fe4280cfdf3" SourceId="1" SourceUrl="net.tcp://10.0.2.15:9000/HiveServer/mex" /> 28 <MetadataFile FileName="HeuristicLab.Hive.Contracts1.xsd" MetadataType="Schema" ID="27f1b8eb-5d07-4ef1-949c-4d57e10b1301" SourceId="1" SourceUrl="net.tcp://10.0.2.15:9000/HiveServer/mex" /> 29 <MetadataFile FileName="Arrays1.xsd" MetadataType="Schema" ID="17721bf1-192c-413b-9514-a9f214b3ae25" SourceId="1" SourceUrl="net.tcp://10.0.2.15:9000/HiveServer/mex" /> 30 <MetadataFile FileName="System1.xsd" MetadataType="Schema" ID="69764c0a-dc15-4450-8089-3f7127023a79" SourceId="1" SourceUrl="net.tcp://10.0.2.15:9000/HiveServer/mex" /> 31 <MetadataFile FileName="HeuristicLab.PluginInfrastructure2.xsd" MetadataType="Schema" ID="92730854-6687-4242-99b1-ce6d8282968e" SourceId="1" SourceUrl="net.tcp://10.0.2.15:9000/HiveServer/mex" /> 32 <MetadataFile FileName="Message1.xsd" MetadataType="Schema" ID="34654b8c-c376-4952-82c5-7a7ea739b2bd" SourceId="1" SourceUrl="net.tcp://10.0.2.15:9000/HiveServer/mex" /> 33 33 </Metadata> 34 34 <Extensions> -
trunk/sources/HeuristicLab.Hive.Client.Communication/3.2/Service References/ServerService/configuration.svcinfo
r1939 r2122 6 6 </bindings> 7 7 <endpoints> 8 <endpoint normalizedDigest="<?xml version="1.0" encoding="utf-16"?><Data address="net.tcp://10. 20.53.7:9000/HiveServer/ClientCommunicator" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IClientFacade" contract="ServerService.IClientFacade" name="NetTcpBinding_IClientFacade"><identity><userPrincipalName value="mse08026@fhs-hagenberg.ac.at" /></identity></Data>" digest="<?xml version="1.0" encoding="utf-16"?><Data address="net.tcp://10.20.53.7:9000/HiveServer/ClientCommunicator" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IClientFacade" contract="ServerService.IClientFacade" name="NetTcpBinding_IClientFacade"><identity><userPrincipalName value="mse08026@fhs-hagenberg.ac.at" /></identity></Data>" contractName="ServerService.IClientFacade" name="NetTcpBinding_IClientFacade" />8 <endpoint normalizedDigest="<?xml version="1.0" encoding="utf-16"?><Data address="net.tcp://10.0.2.15:9000/HiveServer/ClientCommunicator" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IClientFacade" contract="ServerService.IClientFacade" name="NetTcpBinding_IClientFacade"><identity><userPrincipalName value="STEFAN-4710DBDB\Stefan" /></identity></Data>" digest="<?xml version="1.0" encoding="utf-16"?><Data address="net.tcp://10.0.2.15:9000/HiveServer/ClientCommunicator" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IClientFacade" contract="ServerService.IClientFacade" name="NetTcpBinding_IClientFacade"><identity><userPrincipalName value="STEFAN-4710DBDB\Stefan" /></identity></Data>" contractName="ServerService.IClientFacade" name="NetTcpBinding_IClientFacade" /> 9 9 </endpoints> 10 10 </configurationSnapshot> -
trunk/sources/HeuristicLab.Hive.Client.Communication/3.2/Service References/ServerService/configuration91.svcinfo
r1939 r2122 1 1 <?xml version="1.0" encoding="utf-8"?> 2 <SavedWcfConfigurationInformation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="9.1" CheckSum=" s00QQcc2/XY558TAo0TIgu0l4q4=">2 <SavedWcfConfigurationInformation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="9.1" CheckSum="kx3DG0eZsWj8OUKg2cLMJp8jj9s="> 3 3 <bindingConfigurations> 4 4 <bindingConfiguration bindingType="netTcpBinding" name="NetTcpBinding_IClientFacade"> … … 107 107 </bindingConfigurations> 108 108 <endpoints> 109 <endpoint name="NetTcpBinding_IClientFacade" contract="ServerService.IClientFacade" bindingType="netTcpBinding" address="net.tcp://10. 20.53.7:9000/HiveServer/ClientCommunicator" bindingConfiguration="NetTcpBinding_IClientFacade">109 <endpoint name="NetTcpBinding_IClientFacade" contract="ServerService.IClientFacade" bindingType="netTcpBinding" address="net.tcp://10.0.2.15:9000/HiveServer/ClientCommunicator" bindingConfiguration="NetTcpBinding_IClientFacade"> 110 110 <properties> 111 111 <property path="/address" isComplexType="false" isExplicitlyDefined="true" clrType="System.Uri, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 112 <serializedValue>net.tcp://10. 20.53.7:9000/HiveServer/ClientCommunicator</serializedValue>112 <serializedValue>net.tcp://10.0.2.15:9000/HiveServer/ClientCommunicator</serializedValue> 113 113 </property> 114 114 <property path="/behaviorConfiguration" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> … … 137 137 </property> 138 138 <property path="/identity/userPrincipalName/value" isComplexType="false" isExplicitlyDefined="true" clrType="System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 139 <serializedValue> mse08026@fhs-hagenberg.ac.at</serializedValue>139 <serializedValue>STEFAN-4710DBDB\Stefan</serializedValue> 140 140 </property> 141 141 <property path="/identity/servicePrincipalName" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.ServicePrincipalNameElement, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> -
trunk/sources/HeuristicLab.Hive.Client.Communication/3.2/Service References/ServerService/service1.wsdl
r1939 r2122 67 67 <wsdl:part name="parameters" element="tns:SendJobResponse" /> 68 68 </wsdl:message> 69 <wsdl:message name="IClientFacade_SendSerializedJob_InputMessage"> 70 <wsdl:part name="parameters" element="tns:SendSerializedJob" /> 71 </wsdl:message> 72 <wsdl:message name="IClientFacade_SendSerializedJob_OutputMessage"> 73 <wsdl:part name="parameters" element="tns:SendSerializedJobResponse" /> 74 </wsdl:message> 69 75 <wsdl:message name="IClientFacade_StoreFinishedJobResult_InputMessage"> 70 76 <wsdl:part name="parameters" element="tns:StoreFinishedJobResult" /> … … 133 139 <wsdl:input wsaw:Action="http://tempuri.org/IClientCommunicator/SendJob" message="tns:IClientFacade_SendJob_InputMessage" /> 134 140 <wsdl:output wsaw:Action="http://tempuri.org/IClientCommunicator/SendJobResponse" message="tns:IClientFacade_SendJob_OutputMessage" /> 141 </wsdl:operation> 142 <wsdl:operation name="SendSerializedJob"> 143 <wsdl:input wsaw:Action="http://tempuri.org/IClientCommunicator/SendSerializedJob" message="tns:IClientFacade_SendSerializedJob_InputMessage" /> 144 <wsdl:output wsaw:Action="http://tempuri.org/IClientCommunicator/SendSerializedJobResponse" message="tns:IClientFacade_SendSerializedJob_OutputMessage" /> 135 145 </wsdl:operation> 136 146 <wsdl:operation name="StoreFinishedJobResult"> … … 202 212 </wsdl:output> 203 213 </wsdl:operation> 214 <wsdl:operation name="SendSerializedJob"> 215 <soap12:operation soapAction="http://tempuri.org/IClientCommunicator/SendSerializedJob" style="document" /> 216 <wsdl:input> 217 <soap12:body use="literal" /> 218 </wsdl:input> 219 <wsdl:output> 220 <soap12:body use="literal" /> 221 </wsdl:output> 222 </wsdl:operation> 204 223 <wsdl:operation name="StoreFinishedJobResult"> 205 224 <soap12:operation soapAction="http://tempuri.org/IClientCommunicator/StoreFinishedJobResult" style="document" /> … … 286 305 <wsdl:service name="ClientFacade"> 287 306 <wsdl:port name="NetTcpBinding_IClientFacade" binding="tns:NetTcpBinding_IClientFacade"> 288 <soap12:address location="net.tcp://10. 20.53.7:9000/HiveServer/ClientCommunicator" />307 <soap12:address location="net.tcp://10.0.2.15:9000/HiveServer/ClientCommunicator" /> 289 308 <wsa10:EndpointReference> 290 <wsa10:Address>net.tcp://10. 20.53.7:9000/HiveServer/ClientCommunicator</wsa10:Address>309 <wsa10:Address>net.tcp://10.0.2.15:9000/HiveServer/ClientCommunicator</wsa10:Address> 291 310 <Identity xmlns="http://schemas.xmlsoap.org/ws/2006/02/addressingidentity"> 292 <Upn> mse08026@fhs-hagenberg.ac.at</Upn>311 <Upn>STEFAN-4710DBDB\Stefan</Upn> 293 312 </Identity> 294 313 </wsa10:EndpointReference> -
trunk/sources/HeuristicLab.Hive.Client.Communication/3.2/Service References/ServerService/service2.xsd
r1939 r2122 48 48 </xs:complexType> 49 49 </xs:element> 50 <xs:element name="SendSerializedJob"> 51 <xs:complexType> 52 <xs:sequence> 53 <xs:element xmlns:q7="http://schemas.microsoft.com/2003/10/Serialization/" minOccurs="0" name="clientId" type="q7:guid" /> 54 </xs:sequence> 55 </xs:complexType> 56 </xs:element> 57 <xs:element name="SendSerializedJobResponse"> 58 <xs:complexType> 59 <xs:sequence> 60 <xs:element xmlns:q8="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Contracts" minOccurs="0" name="SendSerializedJobResult" nillable="true" type="q8:ResponseSerializedJob" /> 61 </xs:sequence> 62 </xs:complexType> 63 </xs:element> 50 64 <xs:element name="StoreFinishedJobResult"> 51 65 <xs:complexType> 52 66 <xs:sequence> 53 <xs:element xmlns:q 7="http://schemas.microsoft.com/2003/10/Serialization/" minOccurs="0" name="clientId" type="q7:guid" />54 <xs:element xmlns:q 8="http://schemas.microsoft.com/2003/10/Serialization/" minOccurs="0" name="jobId" type="q8:guid" />67 <xs:element xmlns:q9="http://schemas.microsoft.com/2003/10/Serialization/" minOccurs="0" name="clientId" type="q9:guid" /> 68 <xs:element xmlns:q10="http://schemas.microsoft.com/2003/10/Serialization/" minOccurs="0" name="jobId" type="q10:guid" /> 55 69 <xs:element minOccurs="0" name="result" nillable="true" type="xs:base64Binary" /> 56 70 <xs:element minOccurs="0" name="percentage" type="xs:double" /> 57 <xs:element xmlns:q 9="http://schemas.datacontract.org/2004/07/System" minOccurs="0" name="exception" nillable="true" type="q9:Exception" />71 <xs:element xmlns:q11="http://schemas.datacontract.org/2004/07/System" minOccurs="0" name="exception" nillable="true" type="q11:Exception" /> 58 72 </xs:sequence> 59 73 </xs:complexType> … … 62 76 <xs:complexType> 63 77 <xs:sequence> 64 <xs:element xmlns:q1 0="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Contracts" minOccurs="0" name="StoreFinishedJobResultResult" nillable="true" type="q10:ResponseResultReceived" />78 <xs:element xmlns:q12="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Contracts" minOccurs="0" name="StoreFinishedJobResultResult" nillable="true" type="q12:ResponseResultReceived" /> 65 79 </xs:sequence> 66 80 </xs:complexType> … … 69 83 <xs:complexType> 70 84 <xs:sequence> 71 <xs:element xmlns:q1 1="http://schemas.microsoft.com/2003/10/Serialization/" minOccurs="0" name="clientId" type="q11:guid" />72 <xs:element xmlns:q1 2="http://schemas.microsoft.com/2003/10/Serialization/" minOccurs="0" name="jobId" type="q12:guid" />85 <xs:element xmlns:q13="http://schemas.microsoft.com/2003/10/Serialization/" minOccurs="0" name="clientId" type="q13:guid" /> 86 <xs:element xmlns:q14="http://schemas.microsoft.com/2003/10/Serialization/" minOccurs="0" name="jobId" type="q14:guid" /> 73 87 <xs:element minOccurs="0" name="result" nillable="true" type="xs:base64Binary" /> 74 88 <xs:element minOccurs="0" name="percentage" type="xs:double" /> 75 <xs:element xmlns:q1 3="http://schemas.datacontract.org/2004/07/System" minOccurs="0" name="exception" nillable="true" type="q13:Exception" />89 <xs:element xmlns:q15="http://schemas.datacontract.org/2004/07/System" minOccurs="0" name="exception" nillable="true" type="q15:Exception" /> 76 90 </xs:sequence> 77 91 </xs:complexType> … … 80 94 <xs:complexType> 81 95 <xs:sequence> 82 <xs:element xmlns:q1 4="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Contracts" minOccurs="0" name="ProcessSnapshotResult" nillable="true" type="q14:ResponseResultReceived" />96 <xs:element xmlns:q16="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Contracts" minOccurs="0" name="ProcessSnapshotResult" nillable="true" type="q16:ResponseResultReceived" /> 83 97 </xs:sequence> 84 98 </xs:complexType> … … 87 101 <xs:complexType> 88 102 <xs:sequence> 89 <xs:element xmlns:q1 5="http://schemas.microsoft.com/2003/10/Serialization/" minOccurs="0" name="clientId" type="q15:guid" />103 <xs:element xmlns:q17="http://schemas.microsoft.com/2003/10/Serialization/" minOccurs="0" name="clientId" type="q17:guid" /> 90 104 </xs:sequence> 91 105 </xs:complexType> … … 94 108 <xs:complexType> 95 109 <xs:sequence> 96 <xs:element xmlns:q1 6="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Contracts" minOccurs="0" name="LogoutResult" nillable="true" type="q16:Response" />110 <xs:element xmlns:q18="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Contracts" minOccurs="0" name="LogoutResult" nillable="true" type="q18:Response" /> 97 111 </xs:sequence> 98 112 </xs:complexType> … … 101 115 <xs:complexType> 102 116 <xs:sequence> 103 <xs:element xmlns:q1 7="http://schemas.microsoft.com/2003/10/Serialization/" minOccurs="0" name="jobId" type="q17:guid" />117 <xs:element xmlns:q19="http://schemas.microsoft.com/2003/10/Serialization/" minOccurs="0" name="jobId" type="q19:guid" /> 104 118 </xs:sequence> 105 119 </xs:complexType> … … 108 122 <xs:complexType> 109 123 <xs:sequence> 110 <xs:element xmlns:q 18="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Contracts" minOccurs="0" name="IsJobStillNeededResult" nillable="true" type="q18:Response" />124 <xs:element xmlns:q20="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Contracts" minOccurs="0" name="IsJobStillNeededResult" nillable="true" type="q20:Response" /> 111 125 </xs:sequence> 112 126 </xs:complexType> … … 115 129 <xs:complexType> 116 130 <xs:sequence> 117 <xs:element xmlns:q 19="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Contracts.BusinessObjects" minOccurs="0" name="pluginList" nillable="true" type="q19:ArrayOfHivePluginInfo" />131 <xs:element xmlns:q21="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Contracts.BusinessObjects" minOccurs="0" name="pluginList" nillable="true" type="q21:ArrayOfHivePluginInfo" /> 118 132 </xs:sequence> 119 133 </xs:complexType> … … 122 136 <xs:complexType> 123 137 <xs:sequence> 124 <xs:element xmlns:q2 0="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Contracts" minOccurs="0" name="SendPluginsResult" nillable="true" type="q20:ResponsePlugin" />138 <xs:element xmlns:q22="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Contracts" minOccurs="0" name="SendPluginsResult" nillable="true" type="q22:ResponsePlugin" /> 125 139 </xs:sequence> 126 140 </xs:complexType> … … 129 143 <xs:complexType> 130 144 <xs:sequence> 131 <xs:element xmlns:q2 1="http://schemas.microsoft.com/2003/10/Serialization/" minOccurs="0" name="clientId" type="q21:guid" />145 <xs:element xmlns:q23="http://schemas.microsoft.com/2003/10/Serialization/" minOccurs="0" name="clientId" type="q23:guid" /> 132 146 </xs:sequence> 133 147 </xs:complexType> … … 136 150 <xs:complexType> 137 151 <xs:sequence> 138 <xs:element xmlns:q2 2="http://schemas.microsoft.com/Message" name="SendStreamedJobResult" type="q22:StreamBody" />152 <xs:element xmlns:q24="http://schemas.microsoft.com/Message" name="SendStreamedJobResult" type="q24:StreamBody" /> 139 153 </xs:sequence> 140 154 </xs:complexType> … … 143 157 <xs:complexType> 144 158 <xs:sequence> 145 <xs:element xmlns:q2 3="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Contracts.BusinessObjects" minOccurs="0" name="pluginList" nillable="true" type="q23:ArrayOfHivePluginInfo" />159 <xs:element xmlns:q25="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Contracts.BusinessObjects" minOccurs="0" name="pluginList" nillable="true" type="q25:ArrayOfHivePluginInfo" /> 146 160 </xs:sequence> 147 161 </xs:complexType> … … 150 164 <xs:complexType> 151 165 <xs:sequence> 152 <xs:element xmlns:q2 4="http://schemas.microsoft.com/Message" name="SendStreamedPluginsResult" type="q24:StreamBody" />166 <xs:element xmlns:q26="http://schemas.microsoft.com/Message" name="SendStreamedPluginsResult" type="q26:StreamBody" /> 153 167 </xs:sequence> 154 168 </xs:complexType> … … 157 171 <xs:complexType> 158 172 <xs:sequence> 159 <xs:element xmlns:q2 5="http://schemas.microsoft.com/Message" name="stream" type="q25:StreamBody" />173 <xs:element xmlns:q27="http://schemas.microsoft.com/Message" name="stream" type="q27:StreamBody" /> 160 174 </xs:sequence> 161 175 </xs:complexType> … … 164 178 <xs:complexType> 165 179 <xs:sequence> 166 <xs:element xmlns:q2 6="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Contracts" minOccurs="0" name="StoreFinishedJobResultStreamedResult" nillable="true" type="q26:ResponseResultReceived" />180 <xs:element xmlns:q28="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Contracts" minOccurs="0" name="StoreFinishedJobResultStreamedResult" nillable="true" type="q28:ResponseResultReceived" /> 167 181 </xs:sequence> 168 182 </xs:complexType> … … 171 185 <xs:complexType> 172 186 <xs:sequence> 173 <xs:element xmlns:q2 7="http://schemas.microsoft.com/Message" name="stream" type="q27:StreamBody" />187 <xs:element xmlns:q29="http://schemas.microsoft.com/Message" name="stream" type="q29:StreamBody" /> 174 188 </xs:sequence> 175 189 </xs:complexType> … … 178 192 <xs:complexType> 179 193 <xs:sequence> 180 <xs:element xmlns:q 28="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Contracts" minOccurs="0" name="ProcessSnapshotStreamedResult" nillable="true" type="q28:ResponseResultReceived" />194 <xs:element xmlns:q30="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Contracts" minOccurs="0" name="ProcessSnapshotStreamedResult" nillable="true" type="q30:ResponseResultReceived" /> 181 195 </xs:sequence> 182 196 </xs:complexType> -
trunk/sources/HeuristicLab.Hive.Client.Communication/3.2/WcfService.cs
r2117 r2122 195 195 if (e.Error == null) { 196 196 Stream stream = null; 197 MemoryStream memStream = null; 197 198 198 199 try { … … 206 207 207 208 //second deserialize the BLOB 208 MemoryStream memStream = new MemoryStream(); 209 memStream = new MemoryStream(); 210 209 211 byte[] buffer = new byte[3024]; 210 212 int read = 0; … … 213 215 } 214 216 217 memStream.Close(); 218 215 219 SendJobCompletedEventArgs completedEventArgs = 216 220 new SendJobCompletedEventArgs(new object[] { response, memStream.GetBuffer() }, e.Error, e.Cancelled, e.UserState); … … 220 224 if(stream != null) 221 225 stream.Dispose(); 226 227 if (memStream != null) 228 memStream.Dispose(); 222 229 } 223 230 } else -
trunk/sources/HeuristicLab.Hive.Client.Communication/3.2/app.config
r1939 r2122 22 22 </bindings> 23 23 <client> 24 <endpoint address="net.tcp://10. 20.53.7:9000/HiveServer/ClientCommunicator"24 <endpoint address="net.tcp://10.0.2.15:9000/HiveServer/ClientCommunicator" 25 25 binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IClientFacade" 26 26 contract="ServerService.IClientFacade" name="NetTcpBinding_IClientFacade"> 27 27 <identity> 28 <userPrincipalName value=" mse08026@fhs-hagenberg.ac.at" />28 <userPrincipalName value="STEFAN-4710DBDB\Stefan" /> 29 29 </identity> 30 30 </endpoint> -
trunk/sources/HeuristicLab.Hive.Contracts/3.2/ResponseResultReceived.cs
r1530 r2122 33 33 public Guid JobId { get; set; } 34 34 [DataMember] 35 public Guid JobResultId { get; set; } 36 [DataMember] 35 37 public bool finished { get; set; } 36 38 } -
trunk/sources/HeuristicLab.Hive.Server.Core/3.2/ClientCommunicator.cs
r2117 r2122 37 37 using HeuristicLab.DataAccess.Interfaces; 38 38 using System.IO; 39 using System.Runtime.Serialization.Formatters.Binary; 39 40 40 41 namespace HeuristicLab.Hive.Server.Core { … … 465 466 466 467 public ResponseResultReceived ProcessJobResult( 467 JobResult result,468 468 Stream stream, 469 469 bool finished) { … … 474 474 475 475 try { 476 BinaryFormatter formatter = 477 new BinaryFormatter(); 478 479 JobResult result = 480 (JobResult)formatter.Deserialize(stream); 481 476 482 tx = session.BeginTransaction(); 477 483 … … 485 491 finished); 486 492 487 //second deserialize the BLOB 488 IJobResultsAdapter jobResultsAdapter = 489 session.GetDataAdapter<JobResult, IJobResultsAdapter>(); 490 491 IJobAdapter jobAdapter = 492 session.GetDataAdapter<Job, IJobAdapter>(); 493 494 jobResultStream = 495 jobResultsAdapter.GetSerializedJobResultStream(result.Id, true); 496 497 jobStream = 498 jobAdapter.GetSerializedJobStream(result.JobId, true); 499 500 byte[] buffer = new byte[3024]; 501 int read = 0; 502 while ((read = stream.Read(buffer, 0, buffer.Length)) > 0) { 503 jobResultStream.Write(buffer, 0, read); 504 505 if (finished) 493 if (response.Success) { 494 //second deserialize the BLOB 495 IJobResultsAdapter jobResultsAdapter = 496 session.GetDataAdapter<JobResult, IJobResultsAdapter>(); 497 498 IJobAdapter jobAdapter = 499 session.GetDataAdapter<Job, IJobAdapter>(); 500 501 jobResultStream = 502 jobResultsAdapter.GetSerializedJobResultStream(response.JobResultId, true); 503 504 jobStream = 505 jobAdapter.GetSerializedJobStream(result.JobId, true); 506 507 byte[] buffer = new byte[3024]; 508 int read = 0; 509 while ((read = stream.Read(buffer, 0, buffer.Length)) > 0) { 510 jobResultStream.Write(buffer, 0, read); 506 511 jobStream.Write(buffer, 0, read); 507 } 508 509 jobStream.Close(); 510 511 tx.Commit(); 512 } 513 514 jobResultStream.Close(); 515 jobStream.Close(); 516 517 tx.Commit(); 518 } 512 519 513 520 return response; … … 565 572 response.StatusMessage = ApplicationConstants.RESPONSE_COMMUNICATOR_NO_JOB_WITH_THIS_ID; 566 573 response.JobId = jobId; 574 tx.Rollback(); 567 575 return response; 568 576 } … … 570 578 response.Success = false; 571 579 response.StatusMessage = ApplicationConstants.RESPONSE_COMMUNICATOR_JOB_WAS_ABORTED; 580 tx.Rollback(); 581 return response; 572 582 } 573 583 if (job.JobInfo.Client == null) { … … 575 585 response.StatusMessage = ApplicationConstants.RESPONSE_COMMUNICATOR_JOB_IS_NOT_BEEING_CALCULATED; 576 586 response.JobId = jobId; 587 tx.Rollback(); 577 588 return response; 578 589 } … … 581 592 response.StatusMessage = ApplicationConstants.RESPONSE_COMMUNICATOR_WRONG_CLIENT_FOR_JOB; 582 593 response.JobId = jobId; 594 tx.Rollback(); 583 595 return response; 584 596 } … … 587 599 response.StatusMessage = ApplicationConstants.RESPONSE_COMMUNICATOR_JOBRESULT_RECEIVED; 588 600 response.JobId = jobId; 601 tx.Rollback(); 589 602 return response; 590 603 } … … 597 610 response.StatusMessage = ApplicationConstants.RESPONSE_COMMUNICATOR_WRONG_JOB_STATE; 598 611 response.JobId = jobId; 612 tx.Rollback(); 599 613 return response; 600 614 } … … 602 616 603 617 if (finished) { 604 job.JobInfo.State = State.finished; 605 job.SerializedJobData = result; 606 jobAdapter.UpdateSerializedJob(job); 607 } 618 job.JobInfo.State = State.finished; 619 } 620 621 job.SerializedJobData = result; 622 jobAdapter.UpdateSerializedJob(job); 608 623 609 624 List<JobResult> jobResults = new List<JobResult>( … … 625 640 626 641 jobResultAdapter.UpdateSerializedJobResult(serializedjobResult); 627 jobAdapter.Update(job.JobInfo);628 642 629 643 response.Success = true; … … 631 645 response.JobId = jobId; 632 646 response.finished = finished; 647 response.JobResultId = jobResult.Id; 633 648 634 649 tx.Commit(); -
trunk/sources/HeuristicLab.Hive.Server.Core/3.2/ClientFacade.cs
r2117 r2122 124 124 125 125 public ResponseResultReceived StoreFinishedJobResultStreamed(Stream stream) { 126 BinaryFormatter formatter =127 new BinaryFormatter();128 129 JobResult result =130 (JobResult)formatter.Deserialize(stream);131 132 126 return ((IInternalClientCommunicator) 133 clientCommunicator).ProcessJobResult( 134 result, stream, true); 127 clientCommunicator).ProcessJobResult(stream, true); 135 128 } 136 129 137 130 public ResponseResultReceived ProcessSnapshotStreamed(Stream stream) { 138 BinaryFormatter formatter =139 new BinaryFormatter();140 141 JobResult result =142 (JobResult)formatter.Deserialize(stream);143 144 131 return ((IInternalClientCommunicator) 145 clientCommunicator).ProcessJobResult( 146 result, stream, false); 132 clientCommunicator).ProcessJobResult(stream, false); 147 133 } 148 134 -
trunk/sources/HeuristicLab.Hive.Server.Core/3.2/DbTestApp.cs
r2117 r2122 32 32 using HeuristicLab.DataAccess.Interfaces; 33 33 using System.IO; 34 using HeuristicLab.Hive.Server.Core; 35 using HeuristicLab.Core; 34 36 35 37 namespace HeuristicLab.Hive.Server { … … 301 303 302 304 Stream s = jobAdapter.GetSerializedJobStream( 303 new Guid("281602a2-1a47-4101-9a75-02974292d490"), true); 305 new Guid("1b35f32b-d880-4c76-86af-4b4e283b30e6"), true); 306 307 int length = 0; 308 309 FileStream fs = 310 new FileStream(@"W:\\result.gz", FileMode.Create); 304 311 305 312 byte[] buffer = new byte[1024]; 306 while( s.Read(buffer, 0, buffer.Length)>0)313 while((length = s.Read(buffer, 0, buffer.Length)) > 0) 307 314 { 308 //do nothing 309 } 310 315 fs.Write(buffer, 0, length); 316 } 317 318 fs.Close(); 311 319 s.Close(); 312 320 313 321 session.EndSession(); 322 } 323 324 private void TestJobResultStreaming() { 325 ISessionFactory factory = 326 ServiceLocator.GetSessionFactory(); 327 328 ISession session = 329 factory.GetSessionForCurrentThread(); 330 331 IJobResultsAdapter jobResultsAdapter = 332 session.GetDataAdapter<JobResult, IJobResultsAdapter>(); 333 334 Stream s = jobResultsAdapter.GetSerializedJobResultStream( 335 new Guid("c20b11a9-cde1-4d7f-8499-23dedb5a65ed"), true); 336 337 int length = 0; 338 339 FileStream fs = 340 new FileStream(@"W:\\result.gz", FileMode.Create); 341 342 byte[] buffer = new byte[1024]; 343 while ((length = s.Read(buffer, 0, buffer.Length)) > 0) { 344 fs.Write(buffer, 0, length); 345 } 346 347 fs.Close(); 348 s.Close(); 349 350 session.EndSession(); 351 } 352 353 private void TestJobResultDeserialization() { 354 ExecutionEngineFacade executionEngineFacade = 355 new ExecutionEngineFacade(); 356 357 ResponseObject<SerializedJobResult> response = 358 executionEngineFacade.GetLastSerializedResult( 359 new Guid("56ce20bc-067b-424d-a7df-67aaace7c850"), false); 360 361 IStorable restoredJob = 362 PersistenceManager.RestoreFromGZip(response.Obj.SerializedJobResultData); 314 363 } 315 364 … … 317 366 //TestClientGroupAdapter(); 318 367 //InsertTestClientGroups(); 319 TestJobStreaming(); 368 //TestJobStreaming(); 369 //TestJobResultStreaming(); 370 TestJobResultDeserialization(); 320 371 } 321 372 } -
trunk/sources/HeuristicLab.Hive.Server.Core/3.2/InternalInterfaces/IInternalClientCommunicator.cs
r2117 r2122 31 31 interface IInternalClientCommunicator { 32 32 ResponseResultReceived ProcessJobResult( 33 JobResult result,34 33 Stream stream, 35 34 bool finished);
Note: See TracChangeset
for help on using the changeset viewer.