org.inria.myriads.snoozecommon.parser.util
public final class VirtualClusterParserUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
domToString(Document doc)
Convert a DOM document to a String.
|
static String |
getMacAddressFromLibVirtTemplate(String template)
Gets the MAC of the libvirt template.
|
static List<String> |
getNetworkInterfacesFromXml(String xmlDescription)
Returns a list of networks attached to a domain.
|
static String |
replaceMacAddressInLibVirtTemplate(String template,
String newMacAddress)
Replaces the MAC address inside libvirt template.
|
static Document |
stringToDom(String xml)
Convert a string document to a Document DOM.
|
public static String replaceMacAddressInLibVirtTemplate(String template, String newMacAddress)
template
- The templatenewMacAddress
- The new mac addresspublic static String getMacAddressFromLibVirtTemplate(String template)
template
- The templatepublic static List<String> getNetworkInterfacesFromXml(String xmlDescription) throws VirtualMachineTemplateException
xmlDescription
- The xml descriptionVirtualMachineTemplateException
public static Document stringToDom(String xml)
xml
- the string to convertCopyright © 2013. All Rights Reserved.