/** * {@inheritDoc} */ public synchronized DomainConfiguration getDomainConfiguration() { this.log.call(); return this.domainConfiguration; }
public void registerServiceAssembly(ServiceAssemblyLifeCycle serviceAssemblyLifeCycle, String name) { this.log.call(); this.serviceAssemblyLifeCycles.put(name, serviceAssemblyLifeCycle); }
/** * @see org.ow2.petals.system.classloader.ClassLoaderService#containsClassLoader(java.lang.String) */ public boolean containsClassLoader(String classLoaderId) { this.log.call(); return this.classLoaders.containsKey(classLoaderId); }
@Override public void removeContext(String key) throws ServiceUnavailableException { this.log.call(key); this.data.remove(key); }
public ComponentLifeCycleMBean getBindingComponentLifeCycleByName(String name) { ParameterCheckHelper.isNullOrEmptyParameterWithLog(name, "name must not be null or empty", this.log); this.log.call(); return this.bindingLifeCyclesByName.get(name); }
public MessageExchange accept() throws MessagingException { this.log.call(); final MessageExchange me = this.poll(-1); return me; }
/** * Stop the FRACTAL component */ @LifeCycle(on = LifeCycleType.STOP) protected void stop() { this.log.call(); this.threadPoolExecutor.shutdownNow(); }
/** * */ @LifeCycle(on = LifeCycleType.STOP) protected void stop() { this.log.call(); }
/** * Stop the Fractal component */ @LifeCycle(on = LifeCycleType.STOP) protected void stop() { this.log.call(); this.filterTimer.cancel(); }
/** * Stop the Fractal component */ @LifeCycle(on = LifeCycleType.STOP) protected void stop() { this.log.call(); this.rateControlTimer.cancel(); }
public Object getTransactionManager() { this.logger.call(); // FIXME: Bug as the generated class of the Fractal binding to the // transaction manager is not in the classloader of the component when // this latest is isolated. It is not possible to cast it in the // component! Object result = this.componentContextCommunication.getTransactionManagerService(); return result; }
/** * Start of the shared library lifecycle. * */ @LifeCycle(on = LifeCycleType.START) public void start() { this.log = new LoggingUtil(this.logger); this.log.call(); }
public MessageExchangeFactory createExchangeFactory(final ServiceEndpoint endpoint) { this.log.call(endpoint); return new MessageExchangeFactoryImpl(this, this.componentContext.getAddress(), this.logger, null, null, endpoint); }
public MessageExchangeFactory createExchangeFactoryForService(final QName serviceName) { this.log.call(serviceName); return new MessageExchangeFactoryImpl(this, this.componentContext.getAddress(), this.logger, null, serviceName, null); }
public RemoteJMXServer getRemoteJMXServer(String containerName) throws PetalsException { this.log.call(containerName); if (distributedJMXServer == null) { distributedJMXServer = new RemoteJMXServer(this.getLocalJMXServer()); } return distributedJMXServer; }
public void electEndpoints(Map<ServiceEndpoint, TransportSendContext> electedEndpoints, ComponentContext sourceComponentContext, MessageExchangeDecorator exchangeDecorator) throws RoutingException { this.log.call(); if (MessageExchange.Role.CONSUMER.equals(exchangeDecorator.getRole()) && exchangeDecorator.getMessage(MessageExchangeImpl.IN_MSG) != null) { checkMonitored(exchangeDecorator); } }
@LifeCycle(on = LifeCycleType.STOP) protected void stop() throws IllegalLifeCycleException { this.log.call(); for (String containerName : this.petalsJMXConnections.keySet()) { try { this.log.debug("Try to disconnect JMX connection to container : " + containerName); this.petalsJMXConnections.get(containerName).disconnect(); } catch (ConnectionErrorException e) { this.log.debug(e); } } }
public String[] uninstallAllSharedLibraries() { this.log.call(); final List<String> removedSharedLibraries = new ArrayList<String>(); for (final SharedLibrary sharedLibraryStateHolder : this.systemStateService .getSharedLibraryStateHolders()) { if (this.uninstallSharedLibrary(sharedLibraryStateHolder.getName())) { removedSharedLibraries.add(sharedLibraryStateHolder.getName()); } } return removedSharedLibraries.toArray(new String[removedSharedLibraries.size()]); }
public boolean canDeployToComponent(String componentName) { this.log.call(); ParameterCheckHelper .isNullOrEmptyParameterWithLog(componentName, "componentName", this.log); boolean result = false; Installer installer = this.adminService.getInstallerByName(componentName); if (installer.isInstalled() && (installer.getComponent().getServiceUnitManager() != null)) { result = true; } return result; }
public MessageExchange createExchange(QName serviceName, QName operationName) throws MessagingException { this.log.call("Service Name : " + serviceName + " - operationName : " + operationName); MessageExchangeImpl messageExchange = this.createExchange(); this.setDefaultMessageExchangeProperties(messageExchange); messageExchange.setService(serviceName); messageExchange.setOperation(operationName); return new MessageExchangeDecorator(messageExchange, Role.CONSUMER); }