|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Platform>
org.dasein.cloud.services.server.Platform
public enum Platform
An operating system associated with servers and images.
| Enum Constant Summary | |
|---|---|
CENT_OS
CentOS |
|
DEBIAN
Debian |
|
FEDORA_CORE
Fedora Core |
|
FREE_BSD
FreeBSD |
|
OPEN_BSD
OpenBSD |
|
RHEL
RHEL |
|
SOLARIS
Solaris |
|
UBUNTU
Ubuntu |
|
UNIX
Generic UNIX |
|
UNKNOWN
No clue |
|
WINDOWS
Generic Windows |
|
| Method Summary | |
|---|---|
String |
getDeviceId(String letter)
Provides an appropriate device ID (e.g. |
String |
getDeviceMapping(String letter)
Provides a device mapping (e.g. |
static Platform |
guess(String name)
|
boolean |
isBsd()
|
boolean |
isLinux()
|
boolean |
isOpen()
|
boolean |
isUnix()
|
boolean |
isWindows()
|
String |
toString()
|
static Platform |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Platform[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Platform UNIX
public static final Platform UBUNTU
public static final Platform DEBIAN
public static final Platform SOLARIS
public static final Platform FEDORA_CORE
public static final Platform RHEL
public static final Platform FREE_BSD
public static final Platform OPEN_BSD
public static final Platform CENT_OS
public static final Platform WINDOWS
public static final Platform UNKNOWN
| Method Detail |
|---|
public static Platform[] values()
for (Platform c : Platform.values()) System.out.println(c);
public static Platform valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic static Platform guess(String name)
public String getDeviceId(String letter)
letter - the letter to be mapped into a platform-specific device ID
public String getDeviceMapping(String letter)
letter - the letter to be mapped
public boolean isBsd()
public boolean isLinux()
public boolean isOpen()
public boolean isUnix()
public boolean isWindows()
public String toString()
toString in class Enum<Platform>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
Copyright © 2009 enStratus Networks LLC – Available under the terms of the Artistic License 2.0.