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");
}
Aggregations