Examples of shutdown()


Examples of org.jgroups.JChannel.shutdown()

    public void testReconciliationFlushTriggeredByMemberCrashing() throws Exception {

        FlushTrigger t = new FlushTrigger() {
            public void triggerFlush() {
                JChannel channel = channels.remove(channels.size() - 1);
                channel.shutdown();
            };
        };
        String apps[] = createApplicationNames(3);
        reconciliationHelper(apps, t);
    }
View Full Code Here

Examples of org.jgroups.mux.Multiplexer.shutdown()

                        }
                        finally{
                           if(entry.channel.flushSupported())
                              entry.channel.stopFlush();
                        }
                        all_closed=mux.shutdown(); // closes JChannel if all MuxChannels are in closed state

                        //mux.unregister(ch.getId());
                    }
                }
                if(all_closed) {
View Full Code Here

Examples of org.jivesoftware.whack.ExternalComponent.shutdown()

 
  public void removeComponent(String subdomain) throws ComponentException {
    ExternalComponent externalComponent = componentsByDomain.remove(subdomain);
    components.remove(externalComponent.getComponent());
    if (externalComponent != null) {
      externalComponent.shutdown();
    }
  }
 
  public void sendPacket(Component component, Packet packet) {
    // Get the ExternalComponent that is wrapping the specified component and ask it to
View Full Code Here

Examples of org.jmock.lib.concurrent.Blitzer.shutdown()

            }
          }
        }
      }
    });
    blitzer.shutdown();

    // then
    //
    if (!exceptions.isEmpty()) {
      for (Exception e : exceptions) {
View Full Code Here

Examples of org.jmule.core.searchmanager.SearchManager.shutdown()

    if (!jkad.isDisconnected())
      jkad.disconnect();
   
    SearchManager search_manager = SearchManagerSingleton.getInstance();
   
    search_manager.shutdown();
   
    notifyComponentStopped(search_manager);
   
    ServerManagerSingleton.getInstance().shutdown();
   
View Full Code Here

Examples of org.jnode.shell.io.Pipeline.shutdown()

        Assert.assertFalse(p.isActive());
        Assert.assertFalse(p.isShutdown());
        p.activate();
        Assert.assertTrue(p.isActive());
        Assert.assertFalse(p.isShutdown());
        p.shutdown();
        Assert.assertFalse(p.isActive());
        Assert.assertTrue(p.isShutdown());
        Assert.assertEquals(-1, is.read());
        try {
            os.write('X');
View Full Code Here

Examples of org.keycloak.services.managers.BruteForceProtector.shutdown()

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        BruteForceProtector protector = (BruteForceProtector) sce.getServletContext().getAttribute(BruteForceProtector.class.getName());
        if (protector != null) {
            protector.shutdown();
        }
        KeycloakSessionFactory sessionFactory = (KeycloakSessionFactory) sce.getServletContext().getAttribute(KeycloakSessionFactory.class.getName());
        if (sessionFactory != null) {
            sessionFactory.close();
        }
View Full Code Here

Examples of org.libvirt.Domain.shutdown()

                }
            } else {
                if (dm.getInfo().state == DomainInfo.DomainState.VIR_DOMAIN_SHUTOFF) {
                    return null;
                }
                dm.shutdown();
                int retry = _stopTimeout / 2000;
                /* Wait for the domain gets into shutoff state */
                while ((dm.getInfo().state != DomainInfo.DomainState.VIR_DOMAIN_SHUTOFF)
                        && (retry >= 0)) {
                    Thread.sleep(2000);
View Full Code Here

Examples of org.menagerie.DefaultZkSessionManager.shutdown()


        testQueue.put(testElement);
        int reportedSize = testQueue.size();
        System.out.println(reportedSize);
        dzsm.shutdown();
    }

}
View Full Code Here

Examples of org.modeshape.jcr.ModeShapeEngine.shutdown()

                session.logout();
            }
            //CHECKSTYLE:OFF
            System.out.println("Shutting down engine ...");
            try {
                engine.shutdown().get();
                System.out.println("Success!");
            } catch (Exception e) {
                e.printStackTrace();
            }
            //CHECKSTYLE:ON
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.