public enum GraphFunctions extends Enum<GraphFunctions>
| Enum Constant and Description | 
|---|
| ALLDo master, worker, and ZooKeeper | 
| ALL_EXCEPT_ZOOKEEPERDo master and worker | 
| MASTER_ONLYOnly be the master | 
| MASTER_ZOOKEEPER_ONLYOnly be the master and ZooKeeper | 
| UNKNOWNUndecided yet | 
| WORKER_ONLYOnly be the worker | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | isKnown() | 
| abstract boolean | isMaster()Tell whether this function acts as a master. | 
| boolean | isNotAWorker() | 
| boolean | isUnknown() | 
| abstract boolean | isWorker()Tell whether this function acts as a worker. | 
| abstract boolean | isZooKeeper()Tell whether this function acts as a ZooKeeper server. | 
| static GraphFunctions | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static GraphFunctions[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final GraphFunctions UNKNOWN
public static final GraphFunctions MASTER_ONLY
public static final GraphFunctions MASTER_ZOOKEEPER_ONLY
public static final GraphFunctions WORKER_ONLY
public static final GraphFunctions ALL
public static final GraphFunctions ALL_EXCEPT_ZOOKEEPER
public static GraphFunctions[] values()
for (GraphFunctions c : GraphFunctions.values()) System.out.println(c);
public static GraphFunctions 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 abstract boolean isMaster()
public abstract boolean isWorker()
public abstract boolean isZooKeeper()
public boolean isKnown()
public boolean isUnknown()
public boolean isNotAWorker()
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.