Tabnine Logo
DeleteAllKeysInList.setMaxErrors
Code IndexAdd Tabnine to your IDE (free)

How to use
setMaxErrors
method
in
org.jclouds.blobstore.strategy.internal.DeleteAllKeysInList

Best Java code snippets using org.jclouds.blobstore.strategy.internal.DeleteAllKeysInList.setMaxErrors (Showing top 2 results out of 315)

origin: apache/jclouds

testDeleter.setMaxErrors(1);
testDeleter.executeOneIteration(containerName,
   ListContainerOptions.Builder.recursive(), semaphore,
origin: apache/jclouds

@SuppressWarnings("unchecked")
public void testExceptionThrownAfterMaxRetries() {
 IMocksControl mockControl = createControl();
 ListeningExecutorService executorService = mockControl
    .createMock(ListeningExecutorService.class);
 DeleteAllKeysInList testDeleter = createMockBuilder(
    DeleteAllKeysInList.class).withConstructor(executorService,
    blobstore, retryHandler, maxParallelDeletes).createMock();
 // Fail the first future that is created for deleting blobs.
 EasyMock.<ListenableFuture<?>> expect(
       executorService.submit(isA(Callable.class)))
    .andReturn(
       Futures.<Void> immediateFailedFuture(new RuntimeException()))
    .once();
 EasyMock.expectLastCall().andReturn(Futures.<Void> immediateFuture(null))
    .anyTimes();
 replay(executorService);
 testDeleter.setMaxErrors(1);
 boolean blobRunTimeExceptionThrown = false;
 try {
 testDeleter.execute(containerName,
    ListContainerOptions.Builder.recursive());
 } catch (BlobRuntimeException be) {
   blobRunTimeExceptionThrown = true;
 }
 assertTrue(blobRunTimeExceptionThrown, "Expected a BlobRunTimeException");
}
org.jclouds.blobstore.strategy.internalDeleteAllKeysInListsetMaxErrors

Popular methods of DeleteAllKeysInList

  • execute
  • parentIsFolder
  • executeOneIteration
    This method goes through all the blobs from a container and attempts to create futures for deleting
  • cancelOutstandingFutures
  • deleteBlobsAndEmptyDirs
    Delete the blobs from a given PageSet. The PageSet may contain blobs or directories. If there are di
  • deleteDirectory
  • getListing
    Get the object listing from a given container based on the options. For recursive listing of directo
  • getMessage
  • waitForCompletion
  • <init>

Popular in Java

  • Making http post requests using okhttp
  • putExtra (Intent)
  • onRequestPermissionsResult (Fragment)
  • startActivity (Activity)
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JComboBox (javax.swing)
  • Runner (org.openjdk.jmh.runner)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now