Package org.gradle.messaging.concurrent

Examples of org.gradle.messaging.concurrent.DefaultExecutorFactory$ThreadFactoryImpl


        this.errorOutput = errorOutput;
        this.standardInput = standardInput;
        this.lock = new ReentrantLock();
        this.stateChange = lock.newCondition();
        this.state = ExecHandleState.INIT;
        executor = new DefaultExecutorFactory().create(String.format("Run %s", displayName));
        shutdownHookAction = new ExecHandleShutdownHookAction(this);
        broadcast = new AsyncListenerBroadcast<ExecHandleListener>(ExecHandleListener.class, executor);
        broadcast.addAll(listeners);
    }
View Full Code Here


        int exitCode;
        try {
            ExecOutputHandleRunner standardOutputRunner;
            ExecOutputHandleRunner errorOutputRunner;
            ExecOutputHandleRunner standardInputRunner;
            InputStream instr = new DisconnectableInputStream(execHandle.getStandardInput(), new DefaultExecutorFactory());
            Process process;

            // This big fat static lock is here for windows. When starting multiple processes concurrently, the stdout
            // and stderr streams for some of the processes get stuck
            synchronized (START_LOCK) {
View Full Code Here

    private final DefaultMultiChannelConnector connector;
    private final DefaultMessagingServer server;
    private final DefaultExecutorFactory executorFactory;

    public TcpMessagingServer(ClassLoader messageClassLoader) {
        executorFactory = new DefaultExecutorFactory();
        incomingConnector = new TcpIncomingConnector(executorFactory, messageClassLoader);
        connector = new DefaultMultiChannelConnector(new NoOpOutgoingConnector(), incomingConnector, executorFactory);
        server = new DefaultMessagingServer(connector, messageClassLoader);
    }
View Full Code Here

    /**
     * Creates an ExecutorFactory for the test to use.
     */
    protected ExecutorFactory getExecutorFactory() {
        return new DefaultExecutorFactory() {
            @Override
            protected ExecutorService createExecutor(String displayName) {
                return getExecutor();
            }
        };
View Full Code Here

    protected TimeProvider createTimeProvider() {
        return new TrueTimeProvider();
    }
   
    protected ExecutorFactory createExecutorFactory() {
        return new DefaultExecutorFactory();
    }
View Full Code Here

    private final DefaultMultiChannelConnector connector;
    private final DefaultMessagingClient client;
    private final DefaultExecutorFactory executorFactory;

    public TcpMessagingClient(ClassLoader messagingClassLoader, URI serverAddress) {
        executorFactory = new DefaultExecutorFactory();
        connector = new DefaultMultiChannelConnector(new TcpOutgoingConnector(messagingClassLoader), new NoOpIncomingConnector(), executorFactory);
        client = new DefaultMessagingClient(connector, messagingClassLoader, serverAddress);
    }
View Full Code Here

     * Starts accepting connections.
     *
     * @param handler The handler for connections.
     */
    void accept(final IncomingConnectionHandler handler) {
        DefaultExecutorFactory executorFactory = new DefaultExecutorFactory();
        TcpIncomingConnector incomingConnector = new TcpIncomingConnector(executorFactory, getClass().getClassLoader());
        final CompletionHandler finished = new CompletionHandler();

        LOGGER.lifecycle("Awaiting requests.");
       
View Full Code Here

TOP

Related Classes of org.gradle.messaging.concurrent.DefaultExecutorFactory$ThreadFactoryImpl

Copyright © 2018 www.massapicom. 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.