@ThreadSafe public enum JobDefinitionRegistry extends Enum<JobDefinitionRegistry>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
<T extends JobConfig> |
getJobDefinition(T jobConfig)
Gets the job definition from the jTob configuration.
|
static JobDefinitionRegistry |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JobDefinitionRegistry[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JobDefinitionRegistry INSTANCE
public static JobDefinitionRegistry[] values()
for (JobDefinitionRegistry c : JobDefinitionRegistry.values()) System.out.println(c);
public static JobDefinitionRegistry 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 <T extends JobConfig> JobDefinition<T,Serializable,Serializable> getJobDefinition(T jobConfig) throws JobDoesNotExistException
T
- the job configuration classjobConfig
- the job configurationJobDoesNotExistException
- when the job definition does not existCopyright © 2023. All Rights Reserved.