public final class SchedulingOptions extends Object implements Serializable
SchedulingOptions.preemptible()
to create a preemptible
instance. Use SchedulingOptions.standard()
to configure scheduling options for a standard
instance.Modifier and Type | Class and Description |
---|---|
static class |
SchedulingOptions.Maintenance
Defines the maintenance behavior for this instance.
|
Modifier and Type | Method and Description |
---|---|
Boolean |
automaticRestart()
Returns whether the instance should be automatically restarted if it is terminated by Compute
Engine (not terminated by a user).
|
boolean |
equals(Object obj) |
SchedulingOptions.Maintenance |
getMaintenance()
Returns the maintenance behavior for the instance.
|
int |
hashCode() |
boolean |
isPreemptible()
Returns
true if the instance is preemptible, false otherwhise. |
static SchedulingOptions |
preemptible()
Returns a
SchedulingOptions object for a preemptible instance. |
static SchedulingOptions |
standard(boolean automaticRestart,
SchedulingOptions.Maintenance maintenance)
Returns a
SchedulingOptions object for a standard instance. |
String |
toString() |
public Boolean automaticRestart()
public SchedulingOptions.Maintenance getMaintenance()
public boolean isPreemptible()
true
if the instance is preemptible, false
otherwhise.public static SchedulingOptions preemptible()
SchedulingOptions
object for a preemptible instance.public static SchedulingOptions standard(boolean automaticRestart, SchedulingOptions.Maintenance maintenance)
SchedulingOptions
object for a standard instance.automaticRestart
- specifies whether the instance should be automatically restarted if it
is terminated by Compute Engine (not terminated by a user)maintenance
- defines the maintenance behavior for the instanceCopyright © 2019 Google LLC. All rights reserved.