com.sun.org.glassfish.external.amx.AMXGlassfish Java Examples
The following examples show how to use
com.sun.org.glassfish.external.amx.AMXGlassfish.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MonitorBase.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
private @NotNull ManagedObjectManager createMOM(final boolean isFederated) { try { return new RewritingMOM(isFederated ? ManagedObjectManagerFactory.createFederated( AMXGlassfish.DEFAULT.serverMon(AMXGlassfish.DEFAULT.dasName())) : ManagedObjectManagerFactory.createStandalone("com.sun.metro")); } catch (Throwable t) { if (isFederated) { logger.log(Level.CONFIG, "Problem while attempting to federate with GlassFish AMX monitoring. Trying standalone.", t); return createMOM(false); } else { logger.log(Level.WARNING, "Ignoring exception - starting up without monitoring", t); return ManagedObjectManagerFactory.createNOOP(); } } }
Example #2
Source File: MonitorBase.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
private @NotNull ManagedObjectManager createMOM(final boolean isFederated) { try { return new RewritingMOM(isFederated ? ManagedObjectManagerFactory.createFederated( AMXGlassfish.DEFAULT.serverMon(AMXGlassfish.DEFAULT.dasName())) : ManagedObjectManagerFactory.createStandalone("com.sun.metro")); } catch (Throwable t) { if (isFederated) { logger.log(Level.CONFIG, "Problem while attempting to federate with GlassFish AMX monitoring. Trying standalone.", t); return createMOM(false); } else { logger.log(Level.WARNING, "Ignoring exception - starting up without monitoring", t); return ManagedObjectManagerFactory.createNOOP(); } } }
Example #3
Source File: MonitorBase.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
private @NotNull ManagedObjectManager createMOM(final boolean isFederated) { try { return new RewritingMOM(isFederated ? ManagedObjectManagerFactory.createFederated( AMXGlassfish.DEFAULT.serverMon(AMXGlassfish.DEFAULT.dasName())) : ManagedObjectManagerFactory.createStandalone("com.sun.metro")); } catch (Throwable t) { if (isFederated) { logger.log(Level.CONFIG, "Problem while attempting to federate with GlassFish AMX monitoring. Trying standalone.", t); return createMOM(false); } else { logger.log(Level.WARNING, "Ignoring exception - starting up without monitoring", t); return ManagedObjectManagerFactory.createNOOP(); } } }
Example #4
Source File: MonitorBase.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
private @NotNull ManagedObjectManager createMOM(final boolean isFederated) { try { return new RewritingMOM(isFederated ? ManagedObjectManagerFactory.createFederated( AMXGlassfish.DEFAULT.serverMon(AMXGlassfish.DEFAULT.dasName())) : ManagedObjectManagerFactory.createStandalone("com.sun.metro")); } catch (Throwable t) { if (isFederated) { logger.log(Level.CONFIG, "Problem while attempting to federate with GlassFish AMX monitoring. Trying standalone.", t); return createMOM(false); } else { logger.log(Level.WARNING, "Ignoring exception - starting up without monitoring", t); return ManagedObjectManagerFactory.createNOOP(); } } }
Example #5
Source File: MonitorBase.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
private @NotNull ManagedObjectManager createMOM(final boolean isFederated) { try { return new RewritingMOM(isFederated ? ManagedObjectManagerFactory.createFederated( AMXGlassfish.DEFAULT.serverMon(AMXGlassfish.DEFAULT.dasName())) : ManagedObjectManagerFactory.createStandalone("com.sun.metro")); } catch (Throwable t) { if (isFederated) { logger.log(Level.CONFIG, "Problem while attempting to federate with GlassFish AMX monitoring. Trying standalone.", t); return createMOM(false); } else { logger.log(Level.WARNING, "Ignoring exception - starting up without monitoring", t); return ManagedObjectManagerFactory.createNOOP(); } } }
Example #6
Source File: MonitorBase.java From hottub with GNU General Public License v2.0 | 6 votes |
private @NotNull ManagedObjectManager createMOM(final boolean isFederated) { try { return new RewritingMOM(isFederated ? ManagedObjectManagerFactory.createFederated( AMXGlassfish.DEFAULT.serverMon(AMXGlassfish.DEFAULT.dasName())) : ManagedObjectManagerFactory.createStandalone("com.sun.metro")); } catch (Throwable t) { if (isFederated) { logger.log(Level.CONFIG, "Problem while attempting to federate with GlassFish AMX monitoring. Trying standalone.", t); return createMOM(false); } else { logger.log(Level.WARNING, "Ignoring exception - starting up without monitoring", t); return ManagedObjectManagerFactory.createNOOP(); } } }
Example #7
Source File: MonitorBase.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
private @NotNull ManagedObjectManager createMOM(final boolean isFederated) { try { return new RewritingMOM(isFederated ? ManagedObjectManagerFactory.createFederated( AMXGlassfish.DEFAULT.serverMon(AMXGlassfish.DEFAULT.dasName())) : ManagedObjectManagerFactory.createStandalone("com.sun.metro")); } catch (Throwable t) { if (isFederated) { logger.log(Level.CONFIG, "Problem while attempting to federate with GlassFish AMX monitoring. Trying standalone.", t); return createMOM(false); } else { logger.log(Level.WARNING, "Ignoring exception - starting up without monitoring", t); return ManagedObjectManagerFactory.createNOOP(); } } }
Example #8
Source File: MonitorBase.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
private @NotNull ManagedObjectManager createMOM(final boolean isFederated) { try { return new RewritingMOM(isFederated ? ManagedObjectManagerFactory.createFederated( AMXGlassfish.DEFAULT.serverMon(AMXGlassfish.DEFAULT.dasName())) : ManagedObjectManagerFactory.createStandalone("com.sun.metro")); } catch (Throwable t) { if (isFederated) { logger.log(Level.CONFIG, "Problem while attempting to federate with GlassFish AMX monitoring. Trying standalone.", t); return createMOM(false); } else { logger.log(Level.WARNING, "Ignoring exception - starting up without monitoring", t); return ManagedObjectManagerFactory.createNOOP(); } } }
Example #9
Source File: MonitorBase.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private @NotNull ManagedObjectManager createMOMLoop(final String rootName, final int unique) { final boolean isFederated = AMXGlassfish.getGlassfishVersion() != null; ManagedObjectManager mom = createMOM(isFederated); mom = initMOM(mom); mom = createRoot(mom, rootName, unique); return mom; }
Example #10
Source File: MonitorBase.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private @NotNull ManagedObjectManager createMOMLoop(final String rootName, final int unique) { final boolean isFederated = AMXGlassfish.getGlassfishVersion() != null; ManagedObjectManager mom = createMOM(isFederated); mom = initMOM(mom); mom = createRoot(mom, rootName, unique); return mom; }
Example #11
Source File: MonitorBase.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
private @NotNull ManagedObjectManager createMOMLoop(final String rootName, final int unique) { final boolean isFederated = AMXGlassfish.getGlassfishVersion() != null; ManagedObjectManager mom = createMOM(isFederated); mom = initMOM(mom); mom = createRoot(mom, rootName, unique); return mom; }
Example #12
Source File: MonitorBase.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private @NotNull ManagedObjectManager createMOMLoop(final String rootName, final int unique) { final boolean isFederated = AMXGlassfish.getGlassfishVersion() != null; ManagedObjectManager mom = createMOM(isFederated); mom = initMOM(mom); mom = createRoot(mom, rootName, unique); return mom; }
Example #13
Source File: MonitorBase.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private @NotNull ManagedObjectManager createMOMLoop(final String rootName, final int unique) { final boolean isFederated = AMXGlassfish.getGlassfishVersion() != null; ManagedObjectManager mom = createMOM(isFederated); mom = initMOM(mom); mom = createRoot(mom, rootName, unique); return mom; }
Example #14
Source File: MonitorBase.java From hottub with GNU General Public License v2.0 | 5 votes |
private @NotNull ManagedObjectManager createMOMLoop(final String rootName, final int unique) { final boolean isFederated = AMXGlassfish.getGlassfishVersion() != null; ManagedObjectManager mom = createMOM(isFederated); mom = initMOM(mom); mom = createRoot(mom, rootName, unique); return mom; }
Example #15
Source File: MonitorBase.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private @NotNull ManagedObjectManager createMOMLoop(final String rootName, final int unique) { final boolean isFederated = AMXGlassfish.getGlassfishVersion() != null; ManagedObjectManager mom = createMOM(isFederated); mom = initMOM(mom); mom = createRoot(mom, rootName, unique); return mom; }
Example #16
Source File: MonitorBase.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private @NotNull ManagedObjectManager createMOMLoop(final String rootName, final int unique) { final boolean isFederated = AMXGlassfish.getGlassfishVersion() != null; ManagedObjectManager mom = createMOM(isFederated); mom = initMOM(mom); mom = createRoot(mom, rootName, unique); return mom; }