public class WorkersRegistry extends Object implements GridWorkerListener
| Constructor and Description |
|---|
WorkersRegistry() |
| Modifier and Type | Method and Description |
|---|---|
Collection<String> |
names()
Returns names of all registered workers.
|
void |
onStarted(GridWorker w) |
void |
onStopped(GridWorker w) |
void |
register(GridWorker w)
Adds worker to the registry.
|
void |
unregister(String name)
Removes worker from the registry.
|
GridWorker |
worker(String name)
Returns worker with given name.
|
public void register(GridWorker w)
w - Worker.public void unregister(String name)
name - Worker name.public Collection<String> names()
public GridWorker worker(String name)
name - Name.GridWorker with name name or null if not found.public void onStarted(GridWorker w)
onStarted in interface GridWorkerListenerw - Started worker.public void onStopped(GridWorker w)
onStopped in interface GridWorkerListenerw - Stopped worker.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.0 Release Date : May 23 2018