public static enum Sidecar.Status extends Enum<Sidecar.Status>
Modifier and Type | Method and Description |
---|---|
static Sidecar.Status |
fromStatusCode(int statusCode) |
static Sidecar.Status |
fromString(String statusString) |
int |
getStatusCode() |
static Sidecar.Status |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Sidecar.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Sidecar.Status RUNNING
public static final Sidecar.Status UNKNOWN
public static final Sidecar.Status FAILING
public static final Sidecar.Status STOPPED
public static Sidecar.Status[] values()
for (Sidecar.Status c : Sidecar.Status.values()) System.out.println(c);
public static Sidecar.Status valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getStatusCode()
public static Sidecar.Status fromStatusCode(int statusCode)
public static Sidecar.Status fromString(String statusString)
Copyright © 2012–2019 Graylog, Inc.. All rights reserved.