source: DCWoRMS/trunk/src/simulator/workload/generator/ResourceGeneratorInterface.java @ 477

Revision 477, 2.0 KB checked in by wojtekp, 13 years ago (diff)
  • Property svn:mime-type set to text/plain
Line 
1package simulator.workload.generator;
2
3import gridsim.ResourceCalendar;
4
5import java.io.FileNotFoundException;
6import java.io.IOException;
7
8import milus.MiloGridResource;
9
10import simulator.workload.exceptons.XMLLogicException;
11
12/**
13 * Interface of a resource configuration reader.
14 * @author Stanislaw Szczepanowski
15 *
16 */
17public interface ResourceGeneratorInterface {
18
19        /**
20         * This method creates resources on the basis of xml resources descriptions schema (ResourceDescSchema.xsd).
21         * It is used when new resources are to be created with a given statistical values (e.g. all resources should have
22         * total memory variable size with distribution N(0, 1) ).
23         *
24         * @param fileName the pathname of the xml file (proper with ResourceDescSchema.xsd)
25         * @throws FileNotFoundException
26         * @throws XMLLogicException
27         * @throws IllegalAccessException
28         */
29        public void readConfigurationXMLFile(String fileName) throws FileNotFoundException, XMLLogicException, IllegalAccessException;
30       
31        /**
32         * Reads the description of resources according to HostParamSchema.xsd
33         *
34         * @param fileName the pathname of the xml file
35         * @throws FileNotFoundException
36         */
37        public void readConfigurationHostsDescriptionXMLFile(String fileName) throws FileNotFoundException;
38       
39        /**
40         * Reads plugins configuration from text file.
41         * @param fileName
42         * @return
43         * @throws IOException
44         */
45        public boolean loadPlugins(String fileName) throws IOException;
46        /**
47         * Invoking this metohod will create resources. Important: this method must be invoked after the initialisation of the GridSim ({@link gridsim.GridSim} init methods).
48         * @throws Exception
49         */
50        public void createResources(ResourceCalendar calendar) throws Exception;
51       
52        /**
53         * Prints out the statistical data into the out printer
54         * @param out the {@link PrintWriter} object to write data into
55         */
56        //public void printResourcesStatistics(PrintWriter out); //FIXME
57       
58        /**
59         * Retrieves the created resources.
60         * @return array with the created resources
61         */
62        public MiloGridResource[] getCreatedResources();
63}
Note: See TracBrowser for help on using the repository browser.