source: DCWoRMS/branches/coolemall/src/schedframe/scheduling/plugin/grid/ResourceDiscovery.java @ 1396

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