summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx/virtualization/virtualizer/Virtualizer.java
blob: ff24862933c6af38926294ca2edc854056e04d7b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
package org.openslx.virtualization.virtualizer;

import java.util.List;

import org.openslx.virtualization.Version;
import org.openslx.virtualization.disk.DiskImage.ImageFormat;

/**
 * Representation of a virtualization system.
 * 
 * The virtualization system can be for example a virtual machine hypervisor (like VirtualBox), a
 * container for operating systems or applications (like LXC or Docker), or a runtime environment
 * (like Wine).
 * 
 * @author Manuel Bentele
 * @version 1.0
 */
public abstract class Virtualizer
{
	/**
	 * Internal data representation for the virtualizer.
	 */
	protected final org.openslx.bwlp.thrift.iface.Virtualizer internalVirtualizer;

	/**
	 * Creates a new virtualizer.
	 * 
	 * @param internalVirtualizer internal data representation for the new virtualizer.
	 */
	public Virtualizer( org.openslx.bwlp.thrift.iface.Virtualizer internalVirtualizer )
	{
		this.internalVirtualizer = internalVirtualizer;
	}

	/**
	 * Returns the identifier of the virtualizer.
	 * 
	 * @return identifier of the virtualizer.
	 */
	public String getId()
	{
		return this.internalVirtualizer.getVirtId();
	}

	/**
	 * Returns the name of the virtualizer.
	 * 
	 * @return name of the virtualizer.
	 */
	public String getName()
	{
		return this.internalVirtualizer.getVirtName();
	}

	/**
	 * Returns a list of supported disk image formats by the virtualizer.
	 * 
	 * @return list of supported disk image formats by the virtualizer.
	 */
	public abstract List<ImageFormat> getSupportedImageFormats();

	/**
	 * Returns a list of supported versions of the virtualizer.
	 * 
	 * @return list of supported versions of the virtualizer.
	 */
	public abstract List<Version> getSupportedVersions();
}