* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
import javax.management.InstanceAlreadyExistsException;
import javax.management.InstanceNotFoundException;
import javax.management.MBeanRegistrationException;
import javax.management.InstanceAlreadyExistsException;
import javax.management.InstanceNotFoundException;
import javax.management.MBeanRegistrationException;
import javax.management.MalformedObjectNameException;
import javax.management.NotCompliantMBeanException;
import javax.management.ObjectName;
import javax.management.MalformedObjectNameException;
import javax.management.NotCompliantMBeanException;
import javax.management.ObjectName;
* @param beanType Used as the <code>type</code> property in the bean's ObjectName.
* @param beanCategory Used as the <code>Category</code> property in the bean's ObjectName.
*/
* @param beanType Used as the <code>type</code> property in the bean's ObjectName.
* @param beanCategory Used as the <code>Category</code> property in the bean's ObjectName.
*/
@Nullable String beanCategory) {
this.beanName = beanName;
this.beanType = beanType;
@Nullable String beanCategory) {
this.beanName = beanName;
this.beanType = beanType;
LOG.debug("MBean {} registered successfully", mbeanName.getCanonicalName());
} catch (InstanceAlreadyExistsException | MBeanRegistrationException | NotCompliantMBeanException
| MalformedObjectNameException e) {
LOG.debug("MBean {} registered successfully", mbeanName.getCanonicalName());
} catch (InstanceAlreadyExistsException | MBeanRegistrationException | NotCompliantMBeanException
| MalformedObjectNameException e) {
* @return true is successfully unregistered, false otherwise.
*/
public boolean unregisterMBean() {
* @return true is successfully unregistered, false otherwise.
*/
public boolean unregisterMBean() {