blob: 7fda81cb7767df978b53f738e7352530496284f1 (
plain) (
blame)
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
|
package derms.replica1;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import java.util.List;
@WebService
public interface DERMSInterface {
@WebMethod
String addResource(@WebParam(name = "resourceID") String resourceID,
@WebParam(name = "resourceName") String resourceName,
@WebParam(name = "duration") int duration);
@WebMethod
String removeResource(@WebParam(name = "resourceID") String resourceID,
@WebParam(name = "duration") int duration);
@WebMethod
List<String> listResourceAvailability(@WebParam(name = "resourceName") String resourceName);
@WebMethod
String requestResource(@WebParam(name = "coordinatorID") String coordinatorID,
@WebParam(name = "resourceID") String resourceID,
@WebParam(name = "duration") int duration);
@WebMethod
List<String> findResource(@WebParam(name = "coordinatorID") String coordinatorID,
@WebParam(name = "resourceName") String resourceName);
@WebMethod
String returnResource(@WebParam(name = "coordinatorID") String coordinatorID,
@WebParam(name = "resourceID") String resourceID);
@WebMethod
String swapResource(@WebParam(name = "coordinatorID") String coordinatorID,
@WebParam(name = "oldResourceID") String oldResourceID,
@WebParam(name = "oldResourceType") String oldResourceType,
@WebParam(name = "newResourceID") String newResourceID,
@WebParam(name = "newResourceType") String newResourceType);
}
|