Search in sources :

Example 1 with HTTaskStatusMonitor

use of org.wso2.carbon.humantask.core.integration.jmx.HTTaskStatusMonitor in project carbon-business-process by wso2.

the class HumanTaskServiceComponent method registerMBeans.

/**
 * to register all the MBeans.
 *
 * @throws Exception
 * @throws MBeanRegistrationException
 * @throws InstanceAlreadyExistsException
 * @throws NotCompliantMBeanException
 */
public void registerMBeans() throws Exception, MBeanRegistrationException, InstanceAlreadyExistsException, NotCompliantMBeanException {
    log.info("Registering HT related MBeans");
    HTTaskStatusMonitor taskStatusMonitor = new HTTaskStatusMonitor();
    DeployedTasks deployedTasks = new DeployedTasks();
    MBeanRegistrar.registerMBean(taskStatusMonitor, "org.wso2.carbon.humantask.core.integration.jmx:type=HTTaskStatusMonitorMXBean");
    MBeanRegistrar.registerMBean(deployedTasks, "org.wso2.carbon.humantask.core.integration.jmx:type=DeployedTasksMXBean");
    log.info("MXBean for Human tasks registered successfully");
}
Also used : DeployedTasks(org.wso2.carbon.humantask.core.integration.jmx.DeployedTasks) HTTaskStatusMonitor(org.wso2.carbon.humantask.core.integration.jmx.HTTaskStatusMonitor)

Aggregations

DeployedTasks (org.wso2.carbon.humantask.core.integration.jmx.DeployedTasks)1 HTTaskStatusMonitor (org.wso2.carbon.humantask.core.integration.jmx.HTTaskStatusMonitor)1