@Override public void beforeEnableMonitoring() { if (this.writerController.isLogMetadataRecord()) { this.sendMetadataAsRecord(); } }
@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(); }
/** * Creates a new instance of this class, using the singleton instance of the {@link MonitoringController} as controller. */ public OperationExecutionSOAPResponseOutInterceptor() { this(MonitoringController.getInstance()); }
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 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(); }
/** * Creates a new instance of this class, using the given instance of a {@link MonitoringController} as controller. * * @param monitoringCtrl * The controller of this interceptor. */ public OperationExecutionSOAPResponseInInterceptor(final IMonitoringController monitoringCtrl) { this.monitoringController = monitoringCtrl; this.timeSource = this.monitoringController.getTimeSource(); this.vmName = this.monitoringController.getHostname(); }
/** * {@inheritDoc} */ @Override public boolean activateProbe(final String pattern) { return this.addPattern(pattern, true); }
/** * Creates a new instance of this class, using the given instance of a {@link MonitoringController} as controller. * * @param monitoringCtrl * The controller of this interceptor. */ public OperationExecutionSOAPRequestOutInterceptor(final IMonitoringController monitoringCtrl) { this.monitoringController = monitoringCtrl; this.timeSource = this.monitoringController.getTimeSource(); }
/** * {@inheritDoc} */ @Override public void contextDestroyed(final ServletContextEvent event) { for (final ScheduledSamplerJob s : this.startedSamplerJobs) { this.samplingController.removeScheduledSampler(s); } }
/** * {@inheritDoc} */ @Override public void setProbePatternList(final List<String> strPatternList) { this.setProbePatternList(strPatternList, true); }
@Override public void run() { this.readFile(false); } }
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() { 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(); }
/** * Creates a new instance of this class using the singleton instance of the {@link MonitoringController} as a controller. */ public TerminationServletContextListener() { this.ctrl = MonitoringController.getInstance(); }
/** * Creates a new instance of this class, using the given instance of a {@link MonitoringController} as controller. * * @param monitoringCtrl * The controller of this interceptor. */ public OperationExecutionSOAPResponseOutInterceptor(final IMonitoringController monitoringCtrl) { this.monitoringController = monitoringCtrl; this.timeSource = this.monitoringController.getTimeSource(); this.vmName = this.monitoringController.getHostname(); }
@Override public void beforeEnableMonitoring() { if (this.writerController.isLogMetadataRecord()) { this.sendMetadataAsRecord(); } }
/** * {@inheritDoc} */ @Override public boolean activateProbe(final String pattern) { return this.addPattern(pattern, true); }
/** * Creates a new instance of this class, using the given instance of a {@link MonitoringController} as controller. * * @param monitoringCtrl * The controller of this interceptor. */ public OperationExecutionSOAPRequestInInterceptor(final IMonitoringController monitoringCtrl) { this.monitoringController = monitoringCtrl; this.timeSource = this.monitoringController.getTimeSource(); }
/** * Creates a new instance of this class, using the singleton instance of the {@link MonitoringController} as controller. */ public OperationExecutionSOAPRequestInInterceptor() { this(MonitoringController.getInstance()); }
/** * Creates a new instance of this class, using the given instance of a * {@link MonitoringController} as controller. * * @param monitoringCtrl * The controller of this interceptor. */ public OperationExecutionSOAPResponseOutInterceptor(final IMonitoringController monitoringCtrl) { this.monitoringController = monitoringCtrl; this.timeSource = this.monitoringController.getTimeSource(); this.vmName = this.monitoringController.getHostname(); }