Enum Class ServiceType
- All Implemented Interfaces:
Serializable, Comparable<ServiceType>, Constable
Represents the supported service types that can register with the MasterServer.
This enumeration is used to avoid raw string comparisons when identifying services such as DataMover and
DataProxy. It provides helper methods to safely determine the service category and to convert external string
representations into strongly typed values.
Any unknown or unsupported service string is mapped to OTHER.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents a DataMover service.Represents a DataProxy service.Represents any unknown or unsupported service type. -
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceTypeConverts a service name string into aServiceType.booleanisMover()Indicates whether this service type represents a DataMover.booleanisProxy()Indicates whether this service type represents a DataProxy.static ServiceTypeReturns the enum constant of this class with the specified name.static ServiceType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DATA_MOVER
Represents a DataMover service. -
DATA_PROXY
Represents a DataProxy service. -
OTHER
Represents any unknown or unsupported service type.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
from
-
isMover
public boolean isMover()Indicates whether this service type represents a DataMover.- Returns:
trueif this isDATA_MOVER, otherwisefalse
-
isProxy
public boolean isProxy()Indicates whether this service type represents a DataProxy.- Returns:
trueif this isDATA_PROXY, otherwisefalse
-