public class WorkersControlMXBeanImpl extends Object implements WorkersControlMXBean
| Constructor and Description |
|---|
WorkersControlMXBeanImpl(WorkersRegistry registry)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getWorkerNames()
Returns names of all registered workers.
|
boolean |
stopThreadById(long id)
Stops thread by
id, if exists. |
boolean |
stopThreadByUniqueName(String name)
Stops thread by
name, if exists and unique. |
boolean |
terminateWorker(String name)
Terminates worker.
|
public WorkersControlMXBeanImpl(WorkersRegistry registry)
registry - System worker registry.public List<String> getWorkerNames()
getWorkerNames in interface WorkersControlMXBeanpublic boolean terminateWorker(String name)
terminateWorker in interface WorkersControlMXBeanname - Worker name.True if worker has been terminated successfully, false otherwise.public boolean stopThreadByUniqueName(String name)
name, if exists and unique.stopThreadByUniqueName in interface WorkersControlMXBeanname - Thread name.True if thread has been stopped successfully, false otherwise.public boolean stopThreadById(long id)
id, if exists.stopThreadById in interface WorkersControlMXBeanid - Thread id.True if thread has been stopped successfully, false otherwise.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.0 Release Date : October 15 2020