@Test public void testRegisterFactoryJmx() { factory = DefaultAtlasContextFactory.getInstance(); factory.registerFactoryJmx(null); }
protected void registerFactoryJmx(DefaultAtlasContextFactory factory) { if (factory == null) { return; } try { factory.setObjectName(); if (!ManagementFactory.getPlatformMBeanServer().isRegistered(factory.getJmxObjectName())) { ManagementFactory.getPlatformMBeanServer().registerMBean(factory, factory.getJmxObjectName()); if (LOG.isDebugEnabled()) { LOG.debug("Registered AtlasContextFactory with JMX"); } } } catch (Exception e) { LOG.warn("Unable to resgister DefaultAtlasContextFactory with JMX", e); } }
DefaultAtlasContextFactory implements AtlasContextFactory, AtlasContextFactoryMXBean { protected void registerFactoryJmx(DefaultAtlasContextFactory factory) { if (factory == null) { return; } try { factory.setObjectName(); if (!ManagementFactory.getPlatformMBeanServer().isRegistered(factory.getJmxObjectName())) { ManagementFactory.getPlatformMBeanServer().registerMBean(factory, factory.getJmxObjectName()); if (LOG.isDebugEnabled()) { LOG.debug("Registered AtlasContextFactory with JMX"); } } } catch (Exception e) { LOG.warn("Unable to resgister DefaultAtlasContextFactory with JMX", e); } } }
DefaultAtlasContextFactory implements AtlasContextFactory, AtlasContextFactoryMXBean { protected void registerFactoryJmx(DefaultAtlasContextFactory factory) { if (factory == null) { return; } try { factory.setObjectName(); if (!ManagementFactory.getPlatformMBeanServer().isRegistered(factory.getJmxObjectName())) { ManagementFactory.getPlatformMBeanServer().registerMBean(factory, factory.getJmxObjectName()); if (LOG.isDebugEnabled()) { LOG.debug("Registered AtlasContextFactory with JMX"); } } } catch (Exception e) { LOG.warn("Unable to resgister DefaultAtlasContextFactory with JMX", e); } } private  DefaultAtlasContextFactory(); }
DefaultAtlasContextFactory implements AtlasContextFactory, AtlasContextFactoryMXBean { protected void registerFactoryJmx(DefaultAtlasContextFactory factory) { if (factory == null) { return; } try { factory.setObjectName(); if (!ManagementFactory.getPlatformMBeanServer().isRegistered(factory.getJmxObjectName())) { ManagementFactory.getPlatformMBeanServer().registerMBean(factory, factory.getJmxObjectName()); if (LOG.isDebugEnabled()) { LOG.debug("Registered AtlasContextFactory with JMX"); } } } catch (Exception e) { LOG.warn("Unable to resgister DefaultAtlasContextFactory with JMX", e); } } private  DefaultAtlasContextFactory(); static DefaultAtlasContextFactory getInstance(); @Override synchronized void init(); synchronized void init(CompoundClassLoader cl); @Override void setProperties(Map<String, String> properties); @Override void setProperties(Properties properties); @Override Map<String, String> getProperties(); @Override synchronized void destroy(); @Override AtlasContext createContext(File atlasMappingFile); @Override AtlasContext createContext(URI atlasMappingUri); AtlasContext createContext(AtlasMapping mapping); @Override AtlasContext createContext(Format format, InputStream stream); @Override String getClassName(); @Override String getThreadName(); void setThreadName(String threadName); @Override String getVersion(); @Override String getUuid(); ObjectName getJmxObjectName(); AtlasModuleInfoRegistry getModuleInfoRegistry(); void setModuleInfoRegistry(AtlasModuleInfoRegistry registry); @Override AtlasConversionService getConversionService(); @Override AtlasFieldActionService getFieldActionService(); @Override AtlasCombineStrategy getCombineStrategy(); void setCombineStrategy(AtlasCombineStrategy atlasCombineStrategy); @Override AtlasPropertyStrategy getPropertyStrategy(); @Override void setPropertyStrategy(AtlasPropertyStrategy atlasPropertyStrategy); @Override AtlasSeparateStrategy getSeparateStrategy(); void setSeparateStrategy(AtlasSeparateStrategy atlasSeparateStrategy); @Override AtlasValidationService getValidationService(); void setValidationService(AtlasValidationService atlasValidationService); CompoundClassLoader getClassLoader(); @Override void addClassLoader(ClassLoader cl); void setClassLoader(CompoundClassLoader cl); }
DefaultAtlasContextFactory implements AtlasContextFactory, AtlasContextFactoryMXBean { protected void registerFactoryJmx(DefaultAtlasContextFactory factory) { if (factory == null) { return; } try { factory.setObjectName(); if (!ManagementFactory.getPlatformMBeanServer().isRegistered(factory.getJmxObjectName())) { ManagementFactory.getPlatformMBeanServer().registerMBean(factory, factory.getJmxObjectName()); if (LOG.isDebugEnabled()) { LOG.debug("Registered AtlasContextFactory with JMX"); } } } catch (Exception e) { LOG.warn("Unable to resgister DefaultAtlasContextFactory with JMX", e); } } private  DefaultAtlasContextFactory(); static DefaultAtlasContextFactory getInstance(); @Override synchronized void init(); synchronized void init(CompoundClassLoader cl); @Override void setProperties(Map<String, String> properties); @Override void setProperties(Properties properties); @Override Map<String, String> getProperties(); @Override synchronized void destroy(); @Override AtlasContext createContext(File atlasMappingFile); @Override AtlasContext createContext(URI atlasMappingUri); AtlasContext createContext(AtlasMapping mapping); @Override AtlasContext createContext(Format format, InputStream stream); @Override String getClassName(); @Override String getThreadName(); void setThreadName(String threadName); @Override String getVersion(); @Override String getUuid(); ObjectName getJmxObjectName(); AtlasModuleInfoRegistry getModuleInfoRegistry(); void setModuleInfoRegistry(AtlasModuleInfoRegistry registry); @Override AtlasConversionService getConversionService(); @Override AtlasFieldActionService getFieldActionService(); @Override AtlasCombineStrategy getCombineStrategy(); void setCombineStrategy(AtlasCombineStrategy atlasCombineStrategy); @Override AtlasPropertyStrategy getPropertyStrategy(); @Override void setPropertyStrategy(AtlasPropertyStrategy atlasPropertyStrategy); @Override AtlasSeparateStrategy getSeparateStrategy(); void setSeparateStrategy(AtlasSeparateStrategy atlasSeparateStrategy); @Override AtlasValidationService getValidationService(); void setValidationService(AtlasValidationService atlasValidationService); CompoundClassLoader getClassLoader(); @Override void addClassLoader(ClassLoader cl); void setClassLoader(CompoundClassLoader cl);  }