다음을 통해 공유


OS Class

public final class OS
extends ExpandableStringEnum<OS>

The OS of agent machine.

Field Summary

Modifier and Type Field and Description
static final OS LINUX

Static value Linux for OS.

static final OS WINDOWS

Static value Windows for OS.

Constructor Summary

Constructor Description
OS()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of OS value.

Method Summary

Modifier and Type Method and Description
static OS fromString(String name)

Creates or finds a OS from its string representation.

static Collection<OS> values()

Gets known OS values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

LINUX

public static final OS LINUX

Static value Linux for OS.

WINDOWS

public static final OS WINDOWS

Static value Windows for OS.

Constructor Details

OS

@Deprecated
public OS()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of OS value.

Method Details

fromString

public static OS fromString(String name)

Creates or finds a OS from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding OS.

values

public static Collection values()

Gets known OS values.

Returns:

known OS values.

Applies to