Class WorkersControlMXBeanImpl
- java.lang.Object
-
- org.apache.ignite.internal.worker.WorkersControlMXBeanImpl
-
- All Implemented Interfaces:
WorkersControlMXBean
public class WorkersControlMXBeanImpl extends Object implements WorkersControlMXBean
MBean that provides control of system workersRegistry.
-
-
Constructor Summary
Constructors Constructor Description WorkersControlMXBeanImpl(WorkersRegistry registry)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getWorkerNames()Returns names of all registered workers.booleanstopThreadById(long id)Stops thread byid, if exists.booleanstopThreadByUniqueName(String name)Stops thread byname, if exists and unique.booleanterminateWorker(String name)Terminates worker.
-
-
-
Constructor Detail
-
WorkersControlMXBeanImpl
public WorkersControlMXBeanImpl(WorkersRegistry registry)
Constructor.- Parameters:
registry- System worker registry.
-
-
Method Detail
-
getWorkerNames
public List<String> getWorkerNames()
Returns names of all registered workers.- Specified by:
getWorkerNamesin interfaceWorkersControlMXBean- Returns:
- Worker names.
-
terminateWorker
public boolean terminateWorker(String name)
Terminates worker.- Specified by:
terminateWorkerin interfaceWorkersControlMXBean- Parameters:
name- Worker name.- Returns:
Trueif worker has been terminated successfully,falseotherwise.
-
stopThreadByUniqueName
public boolean stopThreadByUniqueName(String name)
Stops thread byname, if exists and unique.- Specified by:
stopThreadByUniqueNamein interfaceWorkersControlMXBean- Parameters:
name- Thread name.- Returns:
Trueif thread has been stopped successfully,falseotherwise.
-
stopThreadById
public boolean stopThreadById(long id)
Stops thread byid, if exists.- Specified by:
stopThreadByIdin interfaceWorkersControlMXBean- Parameters:
id- Thread id.- Returns:
Trueif thread has been stopped successfully,falseotherwise.
-
-