Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using HaaSMiddleware.ServiceTier.JobManagement;
using org.apache.etch.EtchServiceTier.types.EtchServiceTier;
namespace HaaSMiddleware.WebServices {
[WebService(Namespace = "http://hpcaas.it4i.cz/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]
[System.Web.Script.Services.ScriptService]
public class JobManagementWs : System.Web.Services.WebService {
private IJobManagementService service = new JobManagementService();
[WebMethod]
public SubmittedJobInfoExt CreateJob(JobSpecificationExt specification, string sessionCode) {
return service.CreateJob(specification, sessionCode);
}
[WebMethod]
public SubmittedJobInfoExt SubmitJob(long createdJobInfoId, string sessionCode) {
return service.SubmitJob(createdJobInfoId, sessionCode);
}
[WebMethod]
public SubmittedJobInfoExt CancelJob(long submittedJobInfoId, string sessionCode) {
return service.CancelJob(submittedJobInfoId, sessionCode);
}
[WebMethod]
public void DeleteJob(long submittedJobInfoId, string sessionCode)
{
service.DeleteJob(submittedJobInfoId, sessionCode);
}
[WebMethod]
public SubmittedJobInfoExt[] ListJobsForCurrentUser(string sessionCode) {
return service.ListJobsForCurrentUser(sessionCode);
}
[WebMethod]
public SubmittedJobInfoExt GetCurrentInfoForJob(long submittedJobInfoId, string sessionCode) {
return service.GetCurrentInfoForJob(submittedJobInfoId, sessionCode);
}
[WebMethod]
public void CopyJobDataToTemp(long submittedJobInfoId, string sessionCode, string path)
{
service.CopyJobDataToTemp(submittedJobInfoId, sessionCode, path);
}
[WebMethod]
public void CopyJobDataFromTemp(long createdJobInfoId, string sessionCode, string tempSessionCode)
{
service.CopyJobDataFromTemp(createdJobInfoId, sessionCode, tempSessionCode);
}
[WebMethod]
public string[] GetAllocatedNodesIPs(long submittedJobInfoId, string sessionCode)
{
return service.GetAllocatedNodesIPs(submittedJobInfoId, sessionCode);
}
}
}