Class WorkersControlMXBeanImpl

    • Constructor Detail

      • WorkersControlMXBeanImpl

        public WorkersControlMXBeanImpl​(WorkersRegistry registry)
        Constructor.
        Parameters:
        registry - System worker registry.
    • Method Detail

      • terminateWorker

        public boolean terminateWorker​(String name)
        Terminates worker.
        Specified by:
        terminateWorker in interface WorkersControlMXBean
        Parameters:
        name - Worker name.
        Returns:
        True if worker has been terminated successfully, false otherwise.
      • stopThreadByUniqueName

        public boolean stopThreadByUniqueName​(String name)
        Stops thread by name, if exists and unique.
        Specified by:
        stopThreadByUniqueName in interface WorkersControlMXBean
        Parameters:
        name - Thread name.
        Returns:
        True if thread has been stopped successfully, false otherwise.
      • stopThreadById

        public boolean stopThreadById​(long id)
        Stops thread by id, if exists.
        Specified by:
        stopThreadById in interface WorkersControlMXBean
        Parameters:
        id - Thread id.
        Returns:
        True if thread has been stopped successfully, false otherwise.