Examples of shutdown()


Examples of org.apache.camel.impl.DefaultCamelContext.shutdown()

   
    // TODO: this is a temporary workaround until validation is provided by the JMX API - please replace after next Camel Release
    DefaultCamelContext ctx = new DefaultCamelContext();
    try {
      ctx.resolveLanguage(combo_language.getText().trim()).createPredicate(text_condition.getText().replaceAll("\n", "").replaceAll("\r", "").trim());
      ctx.shutdown();
    } catch (Exception ex) {
      if (!ex.getMessage().contains("No language could be found for:")) {
        setErrorMessage("Condition Error: " + ex.getMessage());
        if (getButton(OK) != null) getButton(OK).setEnabled(false);
        return false;
View Full Code Here

Examples of org.apache.camel.processor.aggregate.AggregateProcessor.shutdown()

        // the aggregator should restore the timeout condition and trigger timeout
        assertMockEndpointsSatisfied();
        assertEquals(2, mock.getReceivedCounter());

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

Examples of org.apache.cayenne.access.DataDomain.shutdown()

     */
    public void shutdown() {
        Collection domains = getDomains();
        for (Iterator i = domains.iterator(); i.hasNext();) {
            DataDomain domain = (DataDomain) i.next();
            domain.shutdown();
        }
    }

    private class ConfigurationShutdownHook extends Thread {

View Full Code Here

Examples of org.apache.cayenne.configuration.CayenneRuntime.shutdown()

    public void destroy() {
        CayenneRuntime runtime = WebUtil.getCayenneRuntime(servletContext);

        if (runtime != null) {
            runtime.shutdown();
        }
    }

    public void doFilter(
            ServletRequest request,
View Full Code Here

Examples of org.apache.cayenne.di.Injector.shutdown()

            log(message, Project.MSG_ERR);
            throw new BuildException(message, th);
        } finally {
            Thread.currentThread().setContextClassLoader(loader);
            injector.shutdown();
        }
    }

    /**
     * Validates attributes that are not related to internal
View Full Code Here

Examples of org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.shutdown()

                            } finally {
                                latch.countDown();
                                System.err.println("Remaining: " + latch.getCount());
                            }
                        }
                        mgr.shutdown();
                    }
                }
            };
        }
        for (int i = 0; i < threads.length; i++) {
View Full Code Here

Examples of org.apache.commons.httpclient.SimpleHttpConnectionManager.shutdown()

            httpPostMethod.setRequestHeader("Content-Type", "text/xml");
            httpPostMethod.setRequestEntity(new StringRequestEntity(sb.toString()));
            httpClient.executeMethod(httpPostMethod);
            return httpPostMethod.getResponseBodyAsString() + "\n";
        } finally {
            mgr.shutdown();
        }  
    }

    public static void main(String[] argv) {
        if (argv.length == 0 || HELP.matches(argv)) {
View Full Code Here

Examples of org.apache.commons.httpclient.util.IdleConnectionTimeoutThread.shutdown()

            }
        }

        assertFalse("closeIdleConnections() called", cm.closed);
       
        timeoutThread.shutdown();
    }   
   
    private static class TimeoutHttpConnectionManager implements HttpConnectionManager {
       
        public boolean closed = false;
View Full Code Here

Examples of org.apache.commons.lang3.concurrent.TimedSemaphore.shutdown()

        assertFalse("Wrong periodic task policy", exec
                .getContinueExistingPeriodicTasksAfterShutdownPolicy());
        assertFalse("Wrong delayed task policy", exec
                .getExecuteExistingDelayedTasksAfterShutdownPolicy());
        assertFalse("Already shutdown", exec.isShutdown());
        semaphore.shutdown();
    }

    /**
     * Tests starting the timer.
     */
 
View Full Code Here

Examples of org.apache.cxf.Bus.shutdown()

            }
        } finally {
            //cleanup as much as we can.
            Bus bus = BusFactory.getDefaultBus(false);
            if (bus != null) {
                bus.shutdown(true);
            }
            Thread.currentThread().setContextClassLoader(origContext);
            System.setProperty("java.class.path", cp);
           
            Map<Object, Object> newProps = new HashMap<Object, Object>(System.getProperties());
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.