Creates a new instance of DottedNameRegistryMediator this.server=server; registryName = ObjectNames.getDottedNameMonitoringRegistryObjectName();
this.server=server; registryName = ObjectNames.getDottedNameMonitoringRegistryObjectName();
try{ server.invoke(registryName, "add", new Object[]{dottedName, objectName}, new String[]{String.class.getName(), ObjectName.class.getName()}); } catch(Exception e){ logger.fine(e.getClass().getName()+":"+e.getLocalizedMessage()); }
try{ server.invoke(registryName, "remove", new Object[]{dottedName}, new String[]{String.class.getName()}); } catch(Exception e){ logger.fine(e.getClass().getName()+":"+e.getLocalizedMessage()); }