Examples of stop()


Examples of org.apache.juddi.v3.client.embed.EmbeddedRegistry.stop()

    try {
      String embeddedServerClass = getClientConfig().getHomeNode().getProperties().getProperty("embeddedServer","org.apache.juddi.v3.client.embed.JUDDIRegistry");
      Class<?> clazz =  ClassUtil.forName(embeddedServerClass, this.getClass());
      EmbeddedRegistry embeddedRegistry = (EmbeddedRegistry) clazz.newInstance();
      embeddedRegistry.stop();
    } catch (Exception e) {
      throw new ConfigurationException(e.getMessage(),e);
    }
  }
 
View Full Code Here

Examples of org.apache.karaf.admin.Instance.stop()

        EasyMock.verify(inst);
    }

    public void testStopInstance() throws Exception {
        Instance inst = EasyMock.createMock(Instance.class);
        inst.stop();
        EasyMock.expectLastCall();
        EasyMock.replay(inst);

        AdminService as = EasyMock.createMock(AdminService.class);
        EasyMock.expect(as.getInstance("test instance")).andReturn(inst);
View Full Code Here

Examples of org.apache.karaf.cellar.core.event.EventConsumer.stop()

                listGroups().put(groupName, group);
            }
            // shutdown the group consumer/producers
            for (Map.Entry<String, EventConsumer> consumerEntry : groupConsumer.entrySet()) {
                EventConsumer consumer = consumerEntry.getValue();
                consumer.stop();
            }
            groupConsumer.clear();
            groupProducers.clear();
        } finally {
            Thread.currentThread().setContextClassLoader(originalClassLoader);
View Full Code Here

Examples of org.apache.karaf.eik.workbench.provider.RuntimeDataProvider.stop()

                        }

                        final RuntimeDataProvider runtimeDataProvider = mbeanProviderDataMap.get(memento).getRuntimeDataProvider();
                        runtimeDataProviderManager.remove(runtimeDataProvider);
                        if (runtimeDataProvider != null) {
                            runtimeDataProvider.stop();
                        }

                        final MBeanProvider mbeanProvider = mbeanProviderDataMap.get(memento).getMbeanProvider();
                        mbeanProviderManager.remove(mbeanProvider);
View Full Code Here

Examples of org.apache.karaf.instance.core.Instance.stop()

    private boolean stopInstance(String name) {
        try {
            Instance instance = instanceService.getInstance(name);
            if (instance != null) {
                instance.stop();
                return true;
            }
        } catch (Exception ex) {
            Logger.getLogger(InstancePlugin.class.getName()).log(Level.SEVERE, null, ex);
        }
View Full Code Here

Examples of org.apache.karaf.shell.commands.utils.PumpStreamHandler.stop()

        int status = p.waitFor();


        log.info("Process exited w/status: {}", status);

        handler.stop();

        return null;
    }

}
View Full Code Here

Examples of org.apache.karaf.util.process.PumpStreamHandler.stop()

        int status = p.waitFor();


        log.info("Process exited w/status: {}", status);

        handler.stop();

        return null;
    }

}
View Full Code Here

Examples of org.apache.logging.dumbster.smtp.SimpleSmtpServer.stop()

        root.debug("Debug message #2");
        root.debug("Debug message #3");
        root.debug("Debug message #4");
        root.error("Error with exception", new RuntimeException("Exception message"));

        server.stop();
        assertTrue(server.getReceivedEmailSize() == 1);
        final SmtpMessage email = (SmtpMessage) server.getReceivedEmail().next();

        assertEquals("to@example.com", email.getHeaderValue("To"));
        assertEquals("cc@example.com", email.getHeaderValue("Cc"));
View Full Code Here

Examples of org.apache.logging.log4j.Timer.stop()

        timer.start();
        for (int i = 0; i < LOOP_CNT; ++i) {
            final StringFormattedMessage msg = new StringFormattedMessage(testMsg, "Apache", "Log4j");
            array[i] = msg.getFormattedMessage();
        }
        timer.stop();
        stringTime = timer.getElapsedNanoTime();
        System.out.println(timer.toString());
    }

    @Test
View Full Code Here

Examples of org.apache.logging.log4j.core.Appender.stop()

            logger.removeAppender(name);
        }
        final Appender app = appenders.remove(name);

        if (app != null) {
            app.stop();
        }
    }

    /**
     * Locates the appropriate LoggerConfig for a Logger name. This will remove tokens from the
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.