diff options
author | Victor Mocanu | 2017-11-02 17:12:56 +0100 |
---|---|---|
committer | Victor Mocanu | 2017-11-02 17:12:56 +0100 |
commit | 1f58a5c478c82978418cb152ad43a7cc18a002a8 (patch) | |
tree | ed26ba585b5e9e6cbd1dfe3c6009be259d74cb8e /src/main/java/org/openslx/util/vm/VmMetaData.java | |
parent | [VBox] added sorting to the keysarrays (diff) | |
download | master-sync-shared-1f58a5c478c82978418cb152ad43a7cc18a002a8.tar.gz master-sync-shared-1f58a5c478c82978418cb152ad43a7cc18a002a8.tar.xz master-sync-shared-1f58a5c478c82978418cb152ad43a7cc18a002a8.zip |
[VBox] new working coppy
added new Javadocs, updated getters of VBoxMetaData still got TODOs
Diffstat (limited to 'src/main/java/org/openslx/util/vm/VmMetaData.java')
-rw-r--r-- | src/main/java/org/openslx/util/vm/VmMetaData.java | 35 |
1 files changed, 32 insertions, 3 deletions
diff --git a/src/main/java/org/openslx/util/vm/VmMetaData.java b/src/main/java/org/openslx/util/vm/VmMetaData.java index 36ecd4c..5529c63 100644 --- a/src/main/java/org/openslx/util/vm/VmMetaData.java +++ b/src/main/java/org/openslx/util/vm/VmMetaData.java @@ -30,6 +30,12 @@ public abstract class VmMetaData<T, U, V, W> protected Map<HWVersion, V> hwversion = new HashMap<>(); protected Map<EthernetDevType, W> networkCards = new HashMap<>(); + /** + * All the available virtual Sound Cards that are supported by VmxPlayer and VBoxPlayer + * <add further entries when incorporating other Virtualizers> + * @author victorm + * + */ public static enum SoundCardType { NONE( "None" ), @@ -46,6 +52,12 @@ public abstract class VmMetaData<T, U, V, W> } } + /** + * All the available settings for the 3D acceleration that are supported by VmxPlayer and VBoxPlayer + * <add further entries when incorporating other Virtualizers> + * @author victorm + * + */ public static enum DDAcceleration { OFF( "Off" ), @@ -59,7 +71,12 @@ public abstract class VmMetaData<T, U, V, W> } } - // Virtual hardware version + /** + * All the available virtual Hardware Versions that are supported by VmxPlayer and VBoxPlayer + * <add further entries when incorporating other Virtualizers> + * @author victorm + * + */ public static enum HWVersion { NONE( "(invalid)" ), @@ -81,7 +98,12 @@ public abstract class VmMetaData<T, U, V, W> } } - // Virtual network adapter + /** + * All the available virtual Network Cards that are supported by VmxPlayer and VBoxPlayer + * <add further entries when incorporating other Virtualizers> + * @author victorm + * + */ public static enum EthernetDevType { AUTO( "(default)" ), @@ -282,6 +304,7 @@ public abstract class VmMetaData<T, U, V, W> LOGGER.debug( "Machine description not in .vmx format.", e ); } try { + LOGGER.debug( "versuche vbox" ); return new VboxMetaData( osList, vmContent, length ); } catch ( UnsupportedVirtualizerFormatException e ) { LOGGER.debug( "Machine description not in .vbox format.", e ); @@ -326,5 +349,11 @@ public abstract class VmMetaData<T, U, V, W> public abstract EthernetDevType getEthernetDevType( int cardIndex ); public abstract byte[] getDefinitionArray(); - + + /** + * + * Function used by subclasses to put the virtual devices, which the subclass supports in the respected map + * (i.e. a supported virtual Soundcard in the soundCards Map + */ + public abstract void populateTheMaps(); } |