public enum SchedulerBuilder extends java.lang.Enum<SchedulerBuilder>
Enum Constant and Description |
---|
INSTANCE
Builder instance.
|
Modifier and Type | Method and Description |
---|---|
Scheduler |
build(java.util.Collection<XHost> xHosts)
Instantiates the scheduler.
|
Scheduler |
build(java.util.Collection<XHost> xHosts,
java.lang.Integer id)
Instantiates the scheduler.
|
static SchedulerBuilder |
getInstance()
Gets the builder instance.
|
static SchedulerBuilder |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SchedulerBuilder[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SchedulerBuilder INSTANCE
public static SchedulerBuilder[] values()
for (SchedulerBuilder c : SchedulerBuilder.values()) System.out.println(c);
public static SchedulerBuilder valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static SchedulerBuilder getInstance()
public Scheduler build(java.util.Collection<XHost> xHosts)
xHosts
- xHosts