/** * Unregisters the {@link ThreadedMetric} management interface from the * supplied bean server. * * @param inServer the mbean server to unregister the management interface * from. * * * @see MBeanServer#unregisterMBean(javax.management.ObjectName) */ public static void unregisterMgmtInterface(MBeanServer inServer) throws InstanceNotFoundException, MBeanRegistrationException { inServer.unregisterMBean(DEFAULT_NAME); Messages.LOG_UNREGISTERED_MXBEAN.info(JmxUtils.class, DEFAULT_NAME); }
@Override protected void addURL(URL url) { super.addURL(url); //Overridden to be able to log Messages.LOG_JAR_LOADER_ADD_URL.info(this, url); }
/** * Registers the {@link ThreadedMetric} management interface with * the supplied bean server. * * @param inServer the mbean server to register the management interface to. * * @see MBeanServer#registerMBean(Object, javax.management.ObjectName) */ public static void registerMgmtInterface(MBeanServer inServer) throws MBeanRegistrationException, InstanceAlreadyExistsException, NotCompliantMBeanException { inServer.registerMBean(new ThreadedMetricBeanImpl(), DEFAULT_NAME); Messages.LOG_REGISTERED_MXBEAN.info(JmxUtils.class, DEFAULT_NAME); }
@Override public synchronized void stop() { try { if(!getStatus().isRunning()) { throw new IllegalStateException(); } STOPPING_SIMULATED_EXCHANGE.info(SimulatedExchange.class, getName()); // turn off the update engine if(ticker != null) { ticker.cancel(true); executor.purge(); } books.clear(); } finally { setStatus(Status.STOPPED); } } /* (non-Javadoc)
} finally { if (normalizer != null) { Messages.LOG_OPTION_EXPIRY_NORMALIZER_CUSTOMIZED.info( OptionUtils.class, normalizer.getClass().getName());
Messages.LOG_JAR_LOADER_INIT.info(this, inAppInfoProvider); if(!inAppInfoProvider.getModulesDir().isDirectory()) { throw new FileNotFoundException(Messages.JAR_DIR_DOES_NOT_EXIST.getText(inAppInfoProvider.getModulesDir().getAbsolutePath()));
/** * Initializes the report history manager. * * <p>This can be a very expensive call depending on the value returned * by {@link #getReportHistoryOriginDate()} and the number of execution reports * in the database. */ protected final void initializeReportHistoryManager() { synchronized(AbstractRunningStrategy.class) { Date origin = getReportHistoryOriginDate(); Messages.USING_ORDER_HISTORY_ORIGIN.info(AbstractRunningStrategy.class, origin); try { if(orderHistoryManager != null) { orderHistoryManager.stop(); } orderHistoryManager = new LiveOrderHistoryManager(origin); orderHistoryManager.start(); } catch (ClientInitException e) { throw new RuntimeException(e); } } } /**
SIMULATED_EXCHANGE_OUT_OF_EVENTS.info(SimulatedExchange.class, getName());
Messages.LOG_MODULE_DELETED.info(this, inModuleURN); } finally { moduleLock.unlock();
Messages.LOG_MODULE_STOPPED.info(this, inModule.getURN()); } catch (ModuleException e) { inModule.setLastStopFailure(e.getLocalizedDetail());
Messages.LOG_MODULE_STARTED.info(this, inModule.getURN()); } catch(ModuleException e) { inModule.setLastStartFailure(e.getLocalizedDetail());
Messages.LOG_CREATED_MODULE_INSTANCE.info(this, urn);