Examples of waitForCompletion()


Examples of com.aelitis.azureus.plugins.net.netstatus.NetStatusProtocolTesterBT.waitForCompletion()

            {
              NetStatusPluginTester.this.logError( "  " + str, e );
            }
          });
     
      while( !bt_test.waitForCompletion( 5000 )){
       
        if ( isCancelled()){
         
          bt_test.destroy();
         
View Full Code Here

Examples of com.amazonaws.services.s3.transfer.Copy.waitForCompletion()

                && minModifiedDate > getLastModified(identifier)) {
                CopyObjectRequest copReq = new CopyObjectRequest(bucket, key,
                    bucket, key);
                copReq.setNewObjectMetadata(new ObjectMetadata());
                Copy copy = tmx.copy(copReq);
                copy.waitForCompletion();
                LOG.debug("[{}] touched. time taken [{}] ms ", new Object[] {
                    identifier, (System.currentTimeMillis() - start) });
            } else {
                LOG.debug("[{}] touch not required. time taken [{}] ms ",
                    new Object[] { identifier,
View Full Code Here

Examples of com.amazonaws.services.s3.transfer.MultipleFileUpload.waitForCompletion()

        System.out.println("uplaod to s3 bucket");
        File file = new File(pathToUpload);
//        s3.putObject(bucketName, file.getName(), file);
        MultipleFileUpload mfu = tm.uploadDirectory(bucketName, null, file, true);
        try {
            mfu.waitForCompletion();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        tm.shutdownNow();
    }
View Full Code Here

Examples of com.amazonaws.services.s3.transfer.Transfer.waitForCompletion()

    private void doItForJob(String jobId) throws InterruptedException {
        logger.info("Beginning download of "+jobId);
        String bucketName= getLast(on("/").omitEmptyStrings().split(awsLogUri));
        Transfer that=transferManager.downloadDirectory(bucketName, jobId, new File(localLogTarget));
        that.waitForCompletion();
    }
}
View Full Code Here

Examples of com.amazonaws.services.s3.transfer.Upload.waitForCompletion()

            });
            // TransferManager processes all transfers asynchronously,
            // so this call will return immediately.
            Upload upload = tm.upload(putObjectRequest);

            upload.waitForCompletion();

            // finished or aborted
            Date finish = new Date();
            String downloaded = "(incomplete download)";
            if (totalBytes >= remoteSize) {
View Full Code Here

Examples of com.ibm.io.async.IConnectionFuture.waitForCompletion()

    }

    protected AsyncSocketChannel createSocket(URI remoteLocation) throws UnknownHostException, IOException, InterruptedException {
        AsyncSocketChannel answer = AsyncSocketChannel.open();
        IConnectionFuture future = answer.connect(new InetSocketAddress(remoteLocation.getHost(), remoteLocation.getPort()));
        future.waitForCompletion();
        return answer;
    }

    protected AsyncSocketChannel createSocket(URI remoteLocation, URI localLocation) throws IOException, UnknownHostException, InterruptedException {
        return createSocket(remoteLocation);
View Full Code Here

Examples of com.jboss.transaction.txinterop.interop.states.ATInteropPreparedAfterTimeoutState.waitForCompletion()

            participant.commit() ;
            fail("Transaction rollback expected") ;
        }
        catch (final TransactionRolledBackException tre)
        {
            state.waitForCompletion(getTestTimeout()) ;
        }
        finally
        {
            ProxyConversation.clearConversationState(conversationId) ;
        }
View Full Code Here

Examples of com.jboss.transaction.txinterop.interop.states.ATInteropRetryPreparedAbortState.waitForCompletion()

            participant.commit() ;
            fail("Transaction rollback expected") ;
        }
        catch (final TransactionRolledBackException trbe)
        {
            state.waitForCompletion(getTestTimeout()) ;
        }
        finally
        {
            ProxyConversation.clearConversationState(conversationId) ;
        }
View Full Code Here

Examples of com.jboss.transaction.txinterop.interop.states.ATInteropRetryPreparedCommitState.waitForCompletion()

            getParticipantStub().retryPreparedCommit(serviceURI, context) ;
           
            final CompletionCoordinatorParticipant participant = ATInteropUtil.registerCompletion(context, context.getIdentifier().getValue()) ;
            participant.commit() ;
           
            state.waitForCompletion(0) ;
        }
        finally
        {
            ProxyConversation.clearConversationState(conversationId) ;
        }
View Full Code Here

Examples of com.jboss.transaction.txinterop.interop.states.BAInteropDroppedParticipantCompletedState.waitForCompletion()

            assertTrue("Participant did not issue Completed", state.waitForParticipantCompleted(getTestTimeout())) ;
           
            final BusinessActivityTerminator terminator = BAInteropUtil.registerTerminator(context, context.getIdentifier().getValue()) ;
            terminator.cancel() ;
           
            state.waitForCompletion(getTestTimeout()) ;
        }
        finally
        {
            ProxyConversation.clearConversationState(conversationId) ;
        }
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.