Revision 477,
1.5 KB
checked in by wojtekp, 13 years ago
(diff) |
|
-
Property svn:mime-type set to
text/plain
|
Line | |
---|
1 | package schedframe.scheduling.plugin.grid; |
---|
2 | |
---|
3 | import java.util.List; |
---|
4 | |
---|
5 | import schedframe.resources.providers.ResourceProvider; |
---|
6 | import schedframe.scheduling.SchedulerDescription; |
---|
7 | import schedframe.scheduling.SecurityContext; |
---|
8 | import schedframe.scheduling.tasks.requirements.AbstractResourceRequirements; |
---|
9 | |
---|
10 | |
---|
11 | /** |
---|
12 | * This interface provides access to information about resources |
---|
13 | * |
---|
14 | */ |
---|
15 | public interface ResourceDiscovery extends Module { |
---|
16 | |
---|
17 | /** |
---|
18 | * |
---|
19 | * @return List of all administration domains in the system |
---|
20 | */ |
---|
21 | public List<String> getAdministrationDomains(SecurityContext secContext); |
---|
22 | |
---|
23 | /** |
---|
24 | * |
---|
25 | * @return List of resource providers available in the system |
---|
26 | */ |
---|
27 | public List<ResourceProvider> getProviders(SecurityContext secContext); |
---|
28 | |
---|
29 | /** |
---|
30 | * |
---|
31 | * @param admDomain |
---|
32 | * @return List of resource providers available in particular administration |
---|
33 | * domain. |
---|
34 | */ |
---|
35 | public List<ResourceProvider> getProviders(String admDomain, SecurityContext secContext); |
---|
36 | |
---|
37 | |
---|
38 | |
---|
39 | public List<ResourceProvider> getProviders(AbstractResourceRequirements<?> reqDesc, |
---|
40 | SecurityContext secContext); |
---|
41 | |
---|
42 | /** |
---|
43 | * @return description of all resources. Order of the resources is not determined. |
---|
44 | */ |
---|
45 | public List<SchedulerDescription> getResources(SecurityContext secContext); |
---|
46 | |
---|
47 | /** |
---|
48 | * @param reqDesc resource requirements |
---|
49 | * @return description of all resources that meet resource requirements |
---|
50 | */ |
---|
51 | public List<SchedulerDescription> getResources(AbstractResourceRequirements<?> reqDesc, SecurityContext secContext); |
---|
52 | |
---|
53 | public List<SchedulerDescription> getResources(); |
---|
54 | |
---|
55 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.