@LifeCycle(on = LifeCycleType.STOP) public void stop() { this.log.end(); this.delegate = null; }
/** * Initialize the JNDI data */ private void initData() { this.log.start(); this.data = new Hashtable<String, Map<String, Serializable>>(); this.data.put("/", new HashMap<String, Serializable>()); this.log.end(); }
@Override public Object lookupLink(String name) throws NamingException { this.log.start("String = " + name); Object out; if (this.initialContext == null) { out = this.defaultInitCtx.lookup(name); } else { out = this.initialContext.lookup(name); } this.log.end(); return out; }
public void addComponent(final ComponentContext componentContext) throws RoutingException { this.log.start(); for (final Object installModule : this.installModules.values()) { ((InstallModule) installModule).addComponent(componentContext); } this.exchangeQueues.put(componentContext.getComponentName(), new ArrayBlockingQueue<MessageExchangeDecorator>(QUEUE_SIZE)); this.log.end(); }
@LifeCycle(on = LifeCycleType.STOP) public void stop() throws Exception { this.log.start(); this.selector.close(); this.selectorAgentThread.interrupt(); this.log.end(); }
public void removeComponent(final ComponentContext componentContext) throws RoutingException { this.log.start(); for (final Object installModule : this.installModules.values()) { ((InstallModule) installModule).removeComponent(componentContext); } this.exchangeQueues.remove(componentContext.getComponentName()); this.log.end(); }
@LifeCycle(on = LifeCycleType.START) public void start() throws IOException { this.log = new LoggingUtil(this.logger); this.log.start(); this.selectorAgentThread = new Thread(this, "SelectorAgent Thread"); this.selectorAgentThread.setDaemon(true); this.selector = Selector.open(); this.selectorAgentThread.start(); this.log.end(); }
/** * This method wake up all threads that are waiting for a message. This * method deregister all endpoints for this component. * * @see javax.jbi.messaging.DeliveryChannel#close() */ public synchronized void close() throws MessagingException { this.log.start(); this.checkDeliveryChannelIsOpened(); this.opened = false; this.log.end(); }
@Override public void doInit() throws JBIException { this.log.start(); this.componentLifeCycleThread.doInit(this.componentContext); this.log.end(); }
public Document getServiceDescription(String componentName, ServiceEndpoint endpoint) throws PetalsException { this.log.start(); Installer installer = this.installersByName.get(componentName); if (installer == null) { throw new PetalsException("Cannot find a component '" + componentName + "' in the container"); } Document doc = installer.getComponent().getServiceDescription(endpoint); this.log.end(); return doc; }
public boolean isExchangeWithProviderOkayForComponent(String componentName, ServiceEndpoint internalEndpoint, MessageExchange exchange) throws JBIException { this.log.start(); Installer installer = this.installersByName.get(componentName); if (installer == null) { throw new JBIException("Cannot find a component '" + componentName + "' in the container"); } boolean result = installer.getComponent().isExchangeWithProviderOkay(internalEndpoint, exchange); this.log.end(); return result; }
@LifeCycle(on = LifeCycleType.STOP) public void stop() throws Exception { this.log.start(); this.log.debug("Stopping NIO Server agent."); this.serverSocketChannel.close(); this.log.info("The NIO Server agent is stopped."); this.threadPoolTaskExecutor.shutdownNow(); this.log.end(); }
/** * Method called when the fractal component is stopped * * @throws Exception */ @LifeCycle(on = LifeCycleType.STOP) public void stop() throws Exception { this.log.start(); // Close the connection pool and disconnect all clients this.clientConnections.close(); this.log.end(); }
public void stopContainer() throws Exception { this.log.start(); this.log.info("PEtALS is stopping..."); // launch the stop of the Petals server in a different thread this.petalsStopThread.start(); this.log.end(); }
public synchronized void verifyContainerTopology( final ContainerConfiguration newContainerConfiguration, final SubDomainConfiguration newSubDomainConfiguration, final DomainConfiguration newDomainConfiguration) throws TopologyException { this.log.start(); this.verifyDomain(newDomainConfiguration); this.verifySubDomain(newSubDomainConfiguration); this.verifyContainer(newContainerConfiguration); this.log.end(); }
public void recoverAllEntities() throws ManagementException { this.log.start(); this.recoverAllSharedLibrary(); this.recoverAllComponent(); this.recoverAllServiceAssembly(); this.log.end(); }
public void deregisterExternalEndpoint(ServiceEndpoint externalEndpoint) throws JBIException { this.logger.start(); ParameterCheckHelper.isNullParameter(externalEndpoint, "externalEndpoint"); this.componentContextCommunication.getEndpointRegistry().deregisterExternalEndpoint( externalEndpoint.getEndpointName(), externalEndpoint.getServiceName()); this.externalEndpoints.remove(externalEndpoint); this.logger.end(); }
public void unLoadSharedLibrary() { this.log.start(); String classLoaderId = this.sharedLibrary.getIdentification().getName() + "-" + this.sharedLibrary.getVersion(); this.loaderService.deleteClassLoader(classLoaderId); this.state = SharedLibraryLifeCycleImpl.UNINSTALLED; this.log.end(); }
@LifeCycle(on = LifeCycleType.START) protected void start() { this.log = new LoggingUtil(this.logger); this.log.start(); this.deploymentTaskFactory = new DeploymentTaskFactory(this.endpointRegistry, this, this.systemStateService, this.repositoryService, this.log, this.adminService, this.container, this.configurationService.getContainerConfiguration() .getRootDirectoryPath()); this.log.end(); }
public void loadSharedLibrary() throws PetalsException { this.log.start(); final String slName = this.sharedLibrary.getIdentification().getName(); final String slVersion = this.sharedLibrary.getVersion(); final String classLoaderId = slName + "-" + slVersion; final List<String> classpathUrls = this.sharedLibrary.getSharedLibraryClassPath() .getPathElement(); this.loaderService.createSharedLibraryClassLoader(classLoaderId, this.baseUrls, classpathUrls, this.useParentFirst); this.state = SharedLibraryLifeCycleImpl.INSTALLED; this.log.info("Shared library '" + slName + "' (" + slVersion + ") loaded."); this.log.end(); }