1 | package schedframe.scheduling.plugin.grid; |
---|
2 | |
---|
3 | import java.util.List; |
---|
4 | |
---|
5 | import schedframe.exceptions.CandidateHostsNotFoundException; |
---|
6 | import schedframe.resources.ResourceDescription; |
---|
7 | import schedframe.resources.ResourceProvider; |
---|
8 | import schedframe.scheduling.AbstractResourceRequirements; |
---|
9 | import schedframe.scheduling.SecurityContextInterface; |
---|
10 | |
---|
11 | |
---|
12 | /** |
---|
13 | * This interface provides access to information about resources |
---|
14 | * |
---|
15 | * @author Ariel |
---|
16 | * |
---|
17 | */ |
---|
18 | public interface ResourceDiscovery extends Module { |
---|
19 | |
---|
20 | /** |
---|
21 | * @return description of all resources. Order of the resources is not determined. |
---|
22 | */ |
---|
23 | public List<ResourceDescription> getResources(SecurityContextInterface secContext); |
---|
24 | |
---|
25 | /** |
---|
26 | * @param reqDesc resource requirements |
---|
27 | * @return description of all resources that meet resource requirements |
---|
28 | */ |
---|
29 | public ResourceDescription getResources(AbstractResourceRequirements<?> reqDesc, SecurityContextInterface secContext); |
---|
30 | |
---|
31 | /** |
---|
32 | * |
---|
33 | * @return List of resource providers available in the system |
---|
34 | */ |
---|
35 | public List<ResourceProvider> getProviders(SecurityContextInterface secContext); |
---|
36 | |
---|
37 | /** |
---|
38 | * |
---|
39 | * @param admDomain |
---|
40 | * @return List of resource providers available in particular administration |
---|
41 | * domain. |
---|
42 | */ |
---|
43 | public List<ResourceProvider> getProviders(String admDomain, SecurityContextInterface secContext); |
---|
44 | |
---|
45 | /** |
---|
46 | * |
---|
47 | * @param reqDesc |
---|
48 | * @return |
---|
49 | * @throws CandidateHostsNotFoundException TODO |
---|
50 | */ |
---|
51 | public List<ResourceProvider> getProviders(AbstractResourceRequirements<?> reqDesc, |
---|
52 | List<String> candidateHosts, |
---|
53 | SecurityContextInterface secContext) throws CandidateHostsNotFoundException; |
---|
54 | |
---|
55 | public List<ResourceProvider> getProviders(AbstractResourceRequirements<?> reqDesc, |
---|
56 | SecurityContextInterface secContext); |
---|
57 | |
---|
58 | /** |
---|
59 | * |
---|
60 | * @return List of all administration domains in the system |
---|
61 | */ |
---|
62 | public List<String> getAdministrationDomains(SecurityContextInterface secContext); |
---|
63 | |
---|
64 | public List<ResourceDescription> getResources(); |
---|
65 | |
---|
66 | } |
---|