Examples of StorageException


Examples of org.apache.aurora.scheduler.storage.Storage.StorageException

    Capture<Runnable> timeoutCapture = expectTaskGroupBackoff(10);
    expectAnyMaintenanceCalls();
    expectOfferDeclineIn(10);
    expect(assigner.maybeAssign(OFFER_A, task, emptyJob))
        .andThrow(new StorageException("Injected failure."));

    Capture<Runnable> timeoutCapture2 = expectTaskGroupBackoff(10, 20);
    expect(assigner.maybeAssign(OFFER_A, task, emptyJob)).andReturn(Optional.of(mesosTask));
    driver.launchTask(OFFER_A.getId(), mesosTask);
    expectLastCall();
View Full Code Here

Examples of org.apache.james.managesieve.api.StorageException

            } finally {
                IOUtils.closeQuietly(out);
            }
        } catch (IOException ex) {
            FileUtils.deleteQuietly(tmpFile);
            throw new StorageException(ex);
        }

        // Does the file exist?
        // If so, make a backup
        File backupFile = new File(file.getParentFile(), file.getName() + ".bak");
        if (file.exists()) {
            try {
                FileUtils.copyFile(file, backupFile);
            } catch (IOException ex) {
                throw new StorageException(ex);
            }
        }

        // Copy the temporary file to its final name
        try {
            FileUtils.copyFile(tmpFile, file);
        } catch (IOException ex) {
            throw new StorageException(ex);
        }
        // Tidy up
        if (tmpFile.exists()) {
            FileUtils.deleteQuietly(tmpFile);
        }
View Full Code Here

Examples of org.apache.lucene.gdata.storage.StorageException

        try {
            StorageController controller = GDataServerRegistry.getRegistry()
                    .lookup(StorageController.class,
                            ComponentType.STORAGECONTROLLER);
            if (controller == null)
                throw new StorageException(
                        "StorageController is not registered");
            this.storage = controller.getStorage();
            this.entryEventMediator = GDataServerRegistry.getRegistry().getEntryEventMediator();
        } catch (StorageException e) {
            LOG
View Full Code Here

Examples of org.apache.lucene.gdata.storage.StorageException

     * @see org.apache.lucene.gdata.storage.lucenestorage.StorageModifier#createAccount(org.apache.lucene.gdata.storage.lucenestorage.StorageAccountWrapper)
     */
    @Override
    public void createAccount(StorageAccountWrapper account) throws StorageException {
        if(throwException)
            throw new StorageException();
       
    }
View Full Code Here

Examples of org.apache.lucene.gdata.storage.StorageException

     * @see org.apache.lucene.gdata.storage.lucenestorage.StorageModifier#createFeed(org.apache.lucene.gdata.storage.lucenestorage.StorageFeedWrapper)
     */
    @Override
    public void createFeed(StorageFeedWrapper wrapper) throws StorageException {
        if(throwException)
            throw new StorageException();
       
    }
View Full Code Here

Examples of org.apache.lucene.gdata.storage.StorageException

     * @see org.apache.lucene.gdata.storage.lucenestorage.StorageModifier#deleteAccount(java.lang.String)
     */
    @Override
    public void deleteAccount(String accountName) throws StorageException {
        if(throwException)
            throw new StorageException();
       
    }
View Full Code Here

Examples of org.apache.lucene.gdata.storage.StorageException

     * @see org.apache.lucene.gdata.storage.lucenestorage.StorageModifier#deleteEntry(org.apache.lucene.gdata.storage.lucenestorage.StorageEntryWrapper)
     */
    @Override
    public void deleteEntry(StorageEntryWrapper wrapper) throws StorageException {
        if(throwException)
            throw new StorageException();
       
    }
View Full Code Here

Examples of org.apache.lucene.gdata.storage.StorageException

     * @see org.apache.lucene.gdata.storage.lucenestorage.StorageModifier#deleteFeed(java.lang.String)
     */
    @Override
    public void deleteFeed(String feedId) throws StorageException {
        if(throwException)
            throw new StorageException();
       
    }
View Full Code Here

Examples of org.apache.lucene.gdata.storage.StorageException

     * @see org.apache.lucene.gdata.storage.lucenestorage.StorageModifier#insertEntry(org.apache.lucene.gdata.storage.lucenestorage.StorageEntryWrapper)
     */
    @Override
    public void insertEntry(StorageEntryWrapper wrapper) throws StorageException {
        if(throwException)
            throw new StorageException();
       
    }
View Full Code Here

Examples of org.apache.lucene.gdata.storage.StorageException

     * @see org.apache.lucene.gdata.storage.lucenestorage.StorageModifier#updateAccount(org.apache.lucene.gdata.storage.lucenestorage.StorageAccountWrapper)
     */
    @Override
    public void updateAccount(StorageAccountWrapper user) throws StorageException {
        if(throwException)
            throw new StorageException();
       
    }
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.