JMXServiceURL serviceUrl = new JMXServiceURL(url);
jmxConnector = JMXConnectorFactory.connect(serviceUrl, null);
MBeanServerConnection mbeanConn = jmxConnector.getMBeanServerConnection();
ObjectName cnsWorkerMonitor = new ObjectName("com.comcast.cns.tools:type=CNSWorkerMonitorMBean");
CNSWorkerMonitorMBean mbeanProxy = JMX.newMBeanProxy(mbeanConn, cnsWorkerMonitor, CNSWorkerMonitorMBean.class, false);
if (operation.equals("startWorker")) {
mbeanProxy.startCNSWorkers();
} else {
mbeanProxy.stopCNSWorkers();
}
} catch (Exception e) {
logger.error("event=error_in_"+operation+" Hose:"+host+" port:"+port+"Exception: "+e);
String operationString = null;
if(operation.equals("startWorker")){