Class ExecutorRegistry
- java.lang.Object
-
- org.apache.nemo.runtime.master.scheduler.ExecutorRegistry
-
@ThreadSafe public final class ExecutorRegistry extends java.lang.Object
(WARNING) This class must be thread-safe. Maintains map between executor id andExecutorRepresenter
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getNumberOfRunningExecutors()
static ExecutorRegistry
newInstance()
Static constructor for manual usage.java.lang.String
toString()
void
viewExecutors(java.util.function.Consumer<java.util.Set<ExecutorRepresenter>> consumer)
-
-
-
Method Detail
-
newInstance
public static ExecutorRegistry newInstance()
Static constructor for manual usage.- Returns:
- a new instance of ExecutorRegistry.
-
viewExecutors
public void viewExecutors(java.util.function.Consumer<java.util.Set<ExecutorRepresenter>> consumer)
-
getNumberOfRunningExecutors
public int getNumberOfRunningExecutors()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-