public static enum ServiceController.Mode extends Enum<ServiceController.Mode>
| Enum Constant and Description | 
|---|
| ACTIVEDemand to start, recursively demanding dependencies. | 
| LAZYOnly come up if all dependencies are satisfied and at least one dependent demands to start. | 
| NEVERDo not start; in addition, ignore demands from dependents. | 
| ON_DEMANDOnly come up if all dependencies are satisfied and at least one dependent demands to start. | 
| PASSIVECome up automatically as soon as all dependencies are satisfied. | 
| REMOVERemove this service and all of its dependents. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | in(ServiceController.Mode... modes)Determine if this mode is one of the given modes. | 
| static ServiceController.Mode | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static ServiceController.Mode[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final ServiceController.Mode REMOVE
public static final ServiceController.Mode NEVER
public static final ServiceController.Mode ON_DEMAND
public static final ServiceController.Mode LAZY
UP state, it will remain that way regardless of demands from dependents.public static final ServiceController.Mode PASSIVE
public static final ServiceController.Mode ACTIVE
public static ServiceController.Mode[] values()
for (ServiceController.Mode c : ServiceController.Mode.values()) System.out.println(c);
public static ServiceController.Mode 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 boolean in(ServiceController.Mode... modes)
modes - the modes to checktrue if this mode is in the set; false otherwiseCopyright © 2018 JBoss by Red Hat. All rights reserved.