@Override public final String toString() { final StringBuilder sb = new StringBuilder(2048).append("Current State of kieker.monitoring (") .append(MonitoringController.getVersion()).append(") ").append(this.stateController.toString()) .append(this.jmxController.toString()).append(this.timeSourceController.toString()) .append(this.probeController.toString()).append(this.writerController.toString()) .append("\n\tAutomatic assignment of logging timestamps: '").append(this.autoSetLoggingTimestamp) .append("'\n").append(this.samplingController.toString()); return sb.toString(); }
@Override public final String getControllerDomain() { return this.jmxController.getControllerDomain(); }
@Override public final String getJMXDomain() { return this.jmxController.getJMXDomain(); }
monitoringController.terminate(); monitoringController.jmxController.setMonitoringController(monitoringController); if (monitoringController.jmxController.isTerminated()) { monitoringController.terminate();
private MonitoringController(final Configuration configuration) { super(configuration); this.stateController = new StateController(configuration); this.samplingController = new SamplingController(configuration); this.jmxController = new JMXController(configuration); this.writerController = new WriterController(configuration); this.stateController.setStateListener(this); this.timeSourceController = new TimeSourceController(configuration); this.probeController = new ProbeController(configuration); this.autoSetLoggingTimestamp = configuration.getBooleanProperty(ConfigurationFactory.AUTO_SET_LOGGINGTSTAMP); }
@Override protected final void cleanup() { LOGGER.info("Shutting down Monitoring Controller ({})", this.getName()); // this.saveMetadataAsRecord(); this.probeController.terminate(); this.timeSourceController.terminate(); this.writerController.terminate(); this.jmxController.terminate(); this.tcpController.terminate(); this.samplingController.terminate(); this.stateController.terminate(); }
@Override protected final void init() { synchronized (this) { if (this.jmxEnabled && !this.isTerminated()) { final MBeanServer mbs = ManagementFactory.getPlatformMBeanServer(); if (this.serverObjectName != null) { try { mbs.registerMBean(this.server, this.serverObjectName); } catch (final Exception e) { // NOPMD NOCS (IllegalCatchCheck) LOGGER.warn("Unable to register JMXServer MBean", e); } } if (this.controllerObjectName != null) { try { // MXBeans is currently not possible (getClasses in IRecord) final StandardMBean mbean = new StandardMBean(this.monitoringController, IMonitoringController.class); mbs.registerMBean(mbean, this.controllerObjectName); } catch (final Exception e) { // NOPMD NOCS (IllegalCatchCheck) LOGGER.warn("Unable to register Monitoring Controller MBean", e); } } if ((this.server != null) && this.server.isActive()) { this.server.addNotificationListener(this.serverNotificationListener, null, null); } } } }
monitoringController.terminate(); monitoringController.jmxController.setMonitoringController(monitoringController); if (monitoringController.jmxController.isTerminated()) { monitoringController.terminate();
private MonitoringController(final Configuration configuration) { super(configuration); this.stateController = new StateController(configuration); this.samplingController = new SamplingController(configuration); this.jmxController = new JMXController(configuration); this.tcpController = new TCPController(configuration, this); this.writerController = new WriterController(configuration); this.stateController.setStateListener(this); this.timeSourceController = new TimeSourceController(configuration); this.probeController = new ProbeController(configuration); this.autoSetLoggingTimestamp = configuration.getBooleanProperty(ConfigurationKeys.AUTO_SET_LOGGINGTSTAMP); }
@Override protected final void cleanup() { LOG.info("Shutting down Monitoring Controller (" + this.getName() + ")"); // this.saveMetadataAsRecord(); this.probeController.terminate(); this.timeSourceController.terminate(); this.writerController.terminate(); this.jmxController.terminate(); this.samplingController.terminate(); this.stateController.terminate(); }
@Override protected final void init() { synchronized (this) { if (this.jmxEnabled && !this.isTerminated()) { final MBeanServer mbs = ManagementFactory.getPlatformMBeanServer(); if (this.serverObjectName != null) { try { mbs.registerMBean(this.server, this.serverObjectName); } catch (final Exception e) { // NOPMD NOCS (IllegalCatchCheck) LOG.warn("Unable to register JMXServer MBean", e); } } if (this.controllerObjectName != null) { try { // MXBeans is currently not possible (getClasses in IRecord) final StandardMBean mbean = new StandardMBean(this.monitoringController, IMonitoringController.class); mbs.registerMBean(mbean, this.controllerObjectName); } catch (final Exception e) { // NOPMD NOCS (IllegalCatchCheck) LOG.warn("Unable to register Monitoring Controller MBean", e); } } if ((this.server != null) && this.server.isActive()) { this.server.addNotificationListener(this.serverNotificationListener, null, null); } } } }
@Override public final String toString() { final StringBuilder sb = new StringBuilder(2048) .append("Current State of kieker.monitoring (") .append(MonitoringController.getVersion()) .append(") ") .append(this.stateController.toString()) .append(this.jmxController.toString()) .append(this.timeSourceController.toString()) .append(this.probeController.toString()) .append(this.writerController.toString()) .append("\n\tAutomatic assignment of logging timestamps: '") .append(this.autoSetLoggingTimestamp) .append("'\n") .append(this.samplingController.toString()); return sb.toString(); }