Enum Class ServiceKind
- All Implemented Interfaces:
Serializable,Comparable<ServiceKind>,Constable
Defines the service kind.
- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA probe service receiving data and turning it into alarms or monitoring information.A server process being executed in the environment of a service to utilize the communication capabilities of the service/transport/parameters.A sink service consuming data and not re-emitting data.A source service providing some form of input data, e.g., a connector.A transformation service in the widest sense, may be an AI service. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Comparator<ServiceKind> Comparator for default start sequence, lowest priority first.private int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanafter(ServiceKind kind, boolean includeEquals) Returns whether this kind shall be started afterkind.booleanbefore(ServiceKind kind, boolean includeEquals) Returns whether this kind shall be started beforekind.intReturns the start priority.static ServiceKindReturns the enum constant of this class with the specified name.static ServiceKind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SOURCE_SERVICE
A source service providing some form of input data, e.g., a connector. -
TRANSFORMATION_SERVICE
A transformation service in the widest sense, may be an AI service. -
SINK_SERVICE
A sink service consuming data and not re-emitting data. -
PROBE_SERVICE
A probe service receiving data and turning it into alarms or monitoring information. -
SERVER
A server process being executed in the environment of a service to utilize the communication capabilities of the service/transport/parameters. Internal service kind.
-
-
Field Details
-
START_COMPARATOR
Comparator for default start sequence, lowest priority first. -
startPriority
private int startPriority
-
-
Constructor Details
-
ServiceKind
private ServiceKind(int startPriority) Creates a service kind.- Parameters:
startPriority- the default start priority of the service kind, non-negative integer, the lower the earlier
-
-
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
-
getStartPriority
public int getStartPriority()Returns the start priority.- Returns:
- the default start priority of the service kind, non-negative integer, the lower the earlier
-
before
Returns whether this kind shall be started beforekind.- Parameters:
kind- the kind to compareincludeEquals- whether equal start priorities shall be counted as before- Returns:
trueif this kind shall be started beforekind,falseelse
-
after
Returns whether this kind shall be started afterkind.- Parameters:
kind- the kind to compareincludeEquals- whether equal start priorities shall be counted as after- Returns:
trueif this kind shall be started afterkind,falseelse
-