Package org.uberfire.commons.async

Examples of org.uberfire.commons.async.DescriptiveRunnable


    private ExecutorService executorService = null;

    @Asynchronous
    public void execute( final AsyncMailboxProcessOutgoing mailboxProcessOutgoing ) {
        if ( useExecService.get() ) {
            getExecutorService().execute( new DescriptiveRunnable() {
                @Override
                public void run() {
                    mailboxProcessOutgoing.execute( inboxBackend );
                }
View Full Code Here


    private ExecutorService executorService = null;

    @Asynchronous
    public void execute( final AsyncIncrementalBuilder incrementalBuilder ) {
        if ( useExecService.get() ) {
            getExecutorService().execute( new DescriptiveRunnable() {
                @Override
                public void run() {
                    incrementalBuilder.execute( projectService,
                                                buildService,
                                                incrementalBuildResultsEvent,
View Full Code Here

    private ExecutorService executorService = null;

    @Asynchronous
    public void execute( final AsyncIncrementalBuilder incrementalBuilder ) {
        if ( useExecService.get() ) {
            getExecutorService().execute( new DescriptiveRunnable() {
                @Override
                public void run() {
                    incrementalBuilder.execute( projectService, buildService, incrementalBuildResultsEvent, buildResultsEvent );
                }
View Full Code Here

        // enable monitor by default
        if ( System.getProperty( MONITOR_DISABLED ) == null ) {
            watchService = fs.newWatchService();
            configUpdates = new CheckConfigurationUpdates( watchService );
            final ConfigServiceWatchServiceExecutor configServiceWatchServiceExecutor = getWatchServiceExecutor();
            jobs.add( executorService.submit( new DescriptiveRunnable() {
                @Override
                public String getDescription() {
                    return configUpdates.getDescription();
                }
View Full Code Here

    public void setExitCallback( ExitCallback callback ) {
        this.callback = callback;
    }

    public void start( final Environment env ) throws IOException {
        SimpleAsyncExecutorService.getDefaultInstance().execute( new DescriptiveRunnable() {
            @Override
            public String getDescription() {
                return "Git Command [" + getClass().getName() + "]";
            }
View Full Code Here

                myAddress != null ? myAddress.getPort() : 0, BACKLOG,
                myAddress != null ? myAddress.getAddress() : null );
        myAddress = (InetSocketAddress) listenSock.getLocalSocketAddress();

        run.set( true );
        SimpleAsyncExecutorService.getUnmanagedInstance().execute( new DescriptiveRunnable() {
            @Override
            public String getDescription() {
                return "Git-Daemon-Accept";
            }
View Full Code Here

        final SocketAddress peer = s.getRemoteSocketAddress();
        if ( peer instanceof InetSocketAddress ) {
            dc.setRemoteAddress( ( (InetSocketAddress) peer ).getAddress() );
        }

        SimpleAsyncExecutorService.getUnmanagedInstance().execute( new DescriptiveRunnable() {
            @Override
            public String getDescription() {
                return "Git-Daemon-Client " + peer.toString();
            }
View Full Code Here

    public synchronized void start() {
        if ( !started ) {
            this.started = true;
            for ( final AsyncWatchService watchThread : watchThreads ) {
                final IOWatchServiceExecutor watchServiceExecutor = getWatchServiceExecutor();
                jobs.add( executorService.submit( new DescriptiveRunnable() {
                    @Override
                    public String getDescription() {
                        return watchThread.getDescription();
                    }
View Full Code Here

            }
        };

        if ( started ) {
            final IOWatchServiceExecutor watchServiceExecutor = getWatchServiceExecutor();
            executorService.execute( new DescriptiveRunnable() {
                @Override
                public String getDescription() {
                    return asyncWatchService.getDescription();
                }
View Full Code Here

                            return;
                        }

                        onSync.set( true );

                        SimpleAsyncExecutorService.getUnmanagedInstance().execute( new DescriptiveRunnable() {
                            @Override
                            public String getDescription() {
                                return "Cluster Messaging Reply [" + service.getId() + "/QUERY_FOR_FS]";
                            }
View Full Code Here

TOP

Related Classes of org.uberfire.commons.async.DescriptiveRunnable

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.