Examples of shutdown()


Examples of org.jboss.resource.connectionmanager.InternalManagedConnectionPool.shutdown()

         assertTrue("1: InternalManagedConnectionPool", cl.getContext() instanceof InternalManagedConnectionPool);
         InternalManagedConnectionPool imcp = (InternalManagedConnectionPool)cl.getContext();
         cm.returnManagedConnection(cl, true);

         // Shutdown the pool in order to trigger the RetryableResourceException
         imcp.shutdown();

         // Get a connection - new internal managed pool is created
         cl = cm.getManagedConnection(null, null);
         assertTrue("2: Got a null connection!", cl.getManagedConnection() != null);
         cm.returnManagedConnection(cl, true);
View Full Code Here

Examples of org.jboss.resource.connectionmanager.ManagedConnectionPool.shutdown()

    * @param cm The instance
    */
   private void shutdown(BaseConnectionManager2 cm)
   {
      ManagedConnectionPool pool = cm.getPoolingStrategy();
      pool.shutdown();
   }

  
   public void testConnectionCount() throws Exception
   {
View Full Code Here

Examples of org.jboss.test.classloader.system.support.MockClassLoaderSystem.shutdown()

      SimpleMockClassLoaderPolicy policy = new SimpleMockClassLoaderPolicy();
      MockClassLoaderDomain domain = system.createAndRegisterDomain("mock");
      system.registerClassLoaderPolicy(domain, policy);

      assertFalse(policy.shutdown);
      system.shutdown();
      assertTrue("Policy should be shutdown", policy.shutdown);
   }
  
   public void testClassLoaderPolicyShutdownFromClassLoaderDomainUnregister() throws Exception
   {
View Full Code Here

Examples of org.jboss.threads.JBossThreadPoolExecutor.shutdown()

        final JBossThreadPoolExecutor executor = this.executor;
        if (executor == null) {
            throw new IllegalStateException();
        }
        context.asynchronous();
        executor.shutdown();
        executor.addShutdownListener(new EventListener<StopContext>() {
            public void handleEvent(final StopContext stopContext) {
                stopContext.complete();
            }
        }, context);
View Full Code Here

Examples of org.jboss.threads.QueueExecutor.shutdown()

        final QueueExecutor executor = this.executor;
        if (executor == null) {
            throw new IllegalStateException();
        }
        context.asynchronous();
        executor.shutdown();
        executor.addShutdownListener(new EventListener<StopContext>() {
            public void handleEvent(final StopContext stopContext) {
                stopContext.complete();
            }
        }, context);
View Full Code Here

Examples of org.jboss.threads.QueuelessExecutor.shutdown()

        final QueuelessExecutor executor = this.executor;
        if (executor == null) {
            throw new IllegalStateException();
        }
        context.asynchronous();
        executor.shutdown();
        executor.addShutdownListener(new EventListener<StopContext>() {
            public void handleEvent(final StopContext stopContext) {
                stopContext.complete();
            }
        }, context);
View Full Code Here

Examples of org.jboss.weld.bootstrap.WeldBootstrap.shutdown()

   public void undeploy(Archive<?> archive) throws DeploymentException
   {
      WeldBootstrap bootstrap = weldBootstrapProducer.get();
      if(bootstrap != null)
      {
         bootstrap.shutdown();
      }
      ContextClassLoaderManager classLoaderManager = classLoaderManagerProducer.get();
      classLoaderManager.disable();
   }
}
View Full Code Here

Examples of org.jboss.weld.environment.se.Weld.shutdown()

        String expected = "" +
                          "Dave: Hello, HAL. Do you read me, HAL?" + NL +
                          "HAL: Dave. I read you." + NL;
        assertEquals(expected, actual);

        w.shutdown();
    }
}
View Full Code Here

Examples of org.jdesktop.core.animation.rendering.JRenderer.shutdown()

    while (!shell.isDisposed()) {
      if (!display.readAndDispatch())
        display.sleep();
    }
    renderer.getTimingSource().dispose();
    renderer.shutdown();
    animationTimer.dispose();
    infoTimer.dispose();
    display.dispose();
  }
View Full Code Here

Examples of org.jfrog.build.client.ArtifactoryBuildInfoClient.shutdown()

                // If export property set always save the file before sending it to artifactory
                exportBuildInfo(build, getExportFile(acc));
                client.sendBuildInfo(build);
            }
        } finally {
            client.shutdown();
        }
    }

    protected String getModuleName() {
        Project project = getProject();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.