hu.mta.sztaki.lpds.cloud.simulator.util
Class CloudLoader
java.lang.Object
hu.mta.sztaki.lpds.cloud.simulator.util.CloudLoader
public class CloudLoader
- extends Object
This class offers a simple interface to prepare an IaaSService class based on
data loaded from an XML cloud configuration file.
- Author:
- "Gabor Kecskemeti, Laboratory of Parallel and Distributed Systems,
MTA SZTAKI (c) 2012"
Method Summary |
static IaaSService |
loadNodes(String fileName)
Offers the IaaSService creator functionality by defining the sax parser
for the XML cloud configuration. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CloudLoader
public CloudLoader()
loadNodes
public static IaaSService loadNodes(String fileName)
throws IOException,
SAXException,
ParserConfigurationException
- Offers the IaaSService creator functionality by defining the sax parser
for the XML cloud configuration.
- Parameters:
fileName
- the name of the xml file containing the configuration of the cloud (a
samlple xml can be found in
at.ac.uibk.dps.cloud.simulator.test.simple.UtilTest)
- Returns:
- the instantiated IaaSservice that complies with the configuration
specified in the XML file received as the parameter
- Throws:
IOException
- if there was some problem with finding/accessing the xml file
SAXException
- if there was some problem parsing the configuration file
ParserConfigurationException
Copyright © 2012–2015 University of Innsbruck & MTA SZTAKI. All rights reserved.