/** * Creates a new instance of this class, using the singleton instance of the {@link MonitoringController} as controller. */ public OperationExecutionSOAPResponseOutInterceptor() { this(MonitoringController.getInstance()); }
/** * Creates a new instance of this class, using the singleton instance of the * {@link MonitoringController} as controller. */ public OperationExecutionSOAPResponseOutInterceptor() { this(MonitoringController.getInstance()); }
/** * Creates a new instance of this class, using the singleton instance of the * {@link MonitoringController} as controller. */ public OperationExecutionSOAPRequestOutInterceptor() { this(MonitoringController.getInstance()); }
/** * Creates a new instance of this class, using the singleton instance of the {@link MonitoringController} as controller. */ public OperationExecutionSOAPResponseInInterceptor() { this(MonitoringController.getInstance()); }
/** * Creates a new instance of this class, using the singleton instance of the {@link MonitoringController} as controller. */ public OperationExecutionSOAPRequestOutInterceptor() { this(MonitoringController.getInstance()); }
/** * 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 singleton instance of the {@link MonitoringController} as controller. */ public OperationExecutionSOAPRequestInInterceptor() { this(MonitoringController.getInstance()); }
/** * 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 singleton instance of the * {@link MonitoringController} as controller. */ public OperationExecutionSOAPResponseInInterceptor() { this(MonitoringController.getInstance()); }
/** * Creates a new instance of this class using the singleton instance of the {@link MonitoringController} as a controller. */ public TerminationServletContextListener() { this.ctrl = MonitoringController.getInstance(); }
public OperationExecutionMethodInvocationInterceptor() { this(MonitoringController.getInstance()); }
public OperationExecutionMethodInvocationInterceptor() { this(MonitoringController.getInstance()); }
public OperationExecutionMethodInvocationInterceptor() { this(MonitoringController.getInstance()); }
public OperationExecutionMethodInvocationInterceptor() { this(MonitoringController.getInstance()); }
/** * Creates a new generator for unique identifiers. */ public IdGenerator() { if (MonitoringController.getInstance().isDebug()) { this.uniqueIdentifierPrefix = 0; } else { this.uniqueIdentifierPrefix = ((long) new SecureRandom().nextInt()) << 32; // lower 32-bit are zeros } }
/** * Creates a new generator for unique identifiers. */ public IdGenerator() { if (MonitoringController.getInstance().isDebug()) { this.uniqueIdentifierPrefix = 0; } else { this.uniqueIdentifierPrefix = ((long) new SecureRandom().nextInt()) << 32; // lower 32-bit are zeros } }
@Override public void onStarting() { final IMonitoringController monitoringController = MonitoringController.getInstance(); try { final HostApplicationMetaData record = new HostApplicationMetaData("Default System", InetAddress.getLocalHost().getHostAddress(), monitoringController.getHostname(), monitoringController.getName()); this.writeMonitoringRecord(record); } catch (final UnknownHostException e) { LOGGER.warn("An exception occurred", e); } }
@Override public void onStarting() { final IMonitoringController monitoringController = MonitoringController.getInstance(); try { final HostApplicationMetaData record = new HostApplicationMetaData( "Default System", InetAddress.getLocalHost().getHostAddress(), monitoringController.getHostname(), monitoringController.getName()); this.writeMonitoringRecord(record); } catch (final UnknownHostException e) { LOG.warn("An exception occurred", e); } }
/** * Make sure that {@link MonitoringController#getInstance()} always returns the same instance. */ @Test public void testSingletonGetterOnlyOneInstance() { Assert.assertSame("singleton getter returned different objects", MonitoringController.getInstance(), MonitoringController.getInstance()); Assert.assertEquals("monitoring should not be terminated", false, MonitoringController.getInstance().isMonitoringTerminated()); } }
public void ignoretestIt() throws IOException { // Assert.assertNotNull(this.ctx); Assert.assertThat(this.ctx.isRunning(), CoreMatchers.is(true)); final IMonitoringController monitoringController = MonitoringController.getInstance(); Assume.assumeThat(monitoringController.getName(), CoreMatchers.is(CTRLNAME)); for (int i = 0; i < 5; i++) { UrlUtil.ping(BOOKSTORE_SEARCH_ANY_URL); } this.checkRecordList(this.recordListFilledByListWriter); }