public static enum SlaveRegistrationException.ErrorCode extends Enum<SlaveRegistrationException.ErrorCode>
Enum Constant and Description |
---|
HOST_ALREADY_EXISTS |
HOST_IS_NOT_MASTER |
INCOMPATIBLE_VERSION |
MASTER_IS_ADMIN_ONLY |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
byte |
getCode() |
static SlaveRegistrationException.ErrorCode |
parseCode(byte code) |
static SlaveRegistrationException.ErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SlaveRegistrationException.ErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SlaveRegistrationException.ErrorCode UNKNOWN
public static final SlaveRegistrationException.ErrorCode HOST_ALREADY_EXISTS
public static final SlaveRegistrationException.ErrorCode MASTER_IS_ADMIN_ONLY
public static final SlaveRegistrationException.ErrorCode HOST_IS_NOT_MASTER
public static final SlaveRegistrationException.ErrorCode INCOMPATIBLE_VERSION
public static SlaveRegistrationException.ErrorCode[] values()
for (SlaveRegistrationException.ErrorCode c : SlaveRegistrationException.ErrorCode.values()) System.out.println(c);
public static SlaveRegistrationException.ErrorCode 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 byte getCode()
public static SlaveRegistrationException.ErrorCode parseCode(byte code)
Copyright © 2023 JBoss by Red Hat. All rights reserved.