@Override public Map<String, Serializable> getContext(String key) throws ServiceUnavailableException { this.log.start(key); Map<String, Serializable> contextMap = this.data.get(key); if (contextMap == null) { contextMap = new Hashtable<String, Serializable>(); this.data.put(key, contextMap); } this.log.end(); return contextMap; }
/** * 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(); }
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; }
@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(); }
@LifeCycle(on = LifeCycleType.START) public void start() { this.log = new LoggingUtil(logger); this.log.start(); File rootPath = new File(this.configurationService.getContainerConfiguration() .getRootDirectoryPath(), "artifacts"); this.delegate = new LocalArtifactRepositoryService(rootPath); }
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.domainConfiguration = this.configurationService.getDomainConfiguration(); if (this.domainConfiguration.getJndiConfiguration() == null) { this.initData(); this.registryUtil = new RegistryUtil(this); } 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(); }
@LifeCycle(on = LifeCycleType.START) protected void start() { this.log = new LoggingUtil(this.logger); this.log.start(); try { current = new Current(new TransactionFactoryImpl()); } catch (RemoteException e) { // never thrown by JOTM e.printStackTrace(); } }