Examples of StorageException


Examples of com.knowgate.storage.StorageException

  public boolean useJDBC() {
    return bJdb;
  }
   
  public Table getTable() throws StorageException {
    if (null==oCon) throw new StorageException("Not connected to the database through JDBC");
    return oCon;
  }
View Full Code Here

Examples of com.netfever.web.storage.api.StorageException

  public void setRoot(String root) throws StorageException {
    this.root = new File(root);
   
    if (!this.root.isDirectory()) {
      if (!this.root.exists()) {
        throw new StorageException("Setting root to {" + root + "} but folder does not exists");       
      } else {
        throw new StorageException("Setting root to {" + root + "} - it exists but is not a folder");               
      }
    } else {
      log.info("Setting root to {" + root + "}");
    }
  }
View Full Code Here

Examples of com.thinkaurelius.titan.diskstorage.StorageException

        StaticBuffer thirdCol = recordSuccessfulLockWrite(5, TimeUnit.SECONDS, secondCol).col;
        recordSuccessfulLockDelete(1, TimeUnit.NANOSECONDS, thirdCol);
        recordSuccessfulLocalUnlock();
        ctrl.replay();

        StorageException expected = null;
        try {
            locker.writeLock(defaultLockID, defaultTx); // SUT
        } catch (TemporaryStorageException e) {
            expected = e;
        }
View Full Code Here

Examples of de.esoco.j2me.storage.StorageException

        writeChildNode(rStorage, nIndex);
        rStorage.closeNode();
      }
      catch (IOException eIO)
      {
        throw new StorageException("Writing child node(s) to storage failed",
                       eIO);
      }

      // insertChildNode() modifies rPrevious of the next node, so it
      // must also be stored
View Full Code Here

Examples of frost.storage.StorageException

            while (enumeration.hasMoreElements()) {
                enumeration.nextElement().updateSettings();
            }
        }
        if (!writeSettingsFile()) {
            throw new StorageException("Error while saving the settings.");
        }
    }
View Full Code Here

Examples of gettasky.storage.StorageException

        {
            return getMongoInstance().getDB(DATABASE_NAME);
        }
        catch (Exception e)
        {
            throw new StorageException(e);
        }
    }
View Full Code Here

Examples of net.floodlightcontroller.storage.StorageException

   
    synchronized private MemoryTable getTable(String tableName, boolean create) {
        MemoryTable table = tableMap.get(tableName);
        if (table == null) {
            if (!create)
                throw new StorageException("Table " + tableName + " does not exist");
            table = new MemoryTable(tableName);
            tableMap.put(tableName, table);
        }
        return table;
    }
View Full Code Here

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

    expect(stateManager.changeState(
        TASK_ID_A,
        Optional.<ScheduleStatus>absent(),
        RUNNING,
        Optional.of("fake message")))
        .andThrow(new StorageException("Injected error"));

    control.replay();

    TaskStatus status = TaskStatus.newBuilder()
        .setState(TaskState.TASK_RUNNING)
View Full Code Here

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

  @Test
  public void testStorageStartFails() throws Exception {
    storageUtil.storage.prepare();
    storageUtil.expectOperations();
    storageUtil.storage.start(EasyMock.<Quiet>anyObject());
    expectLastCall().andThrow(new StorageException("Recovery failed."));
    expectShutdown();

    replayAndCreateLifecycle();

    LeadershipListener leaderListener = schedulerLifecycle.prepare();
View Full Code Here

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

  public void testStatusUpdateFails() throws Exception {
    new StatusFixture() {
      @Override
      void expectations() throws Exception {
        expect(systemLauncher.statusUpdate(STATUS)).andReturn(false);
        expect(userLauncher.statusUpdate(STATUS)).andThrow(new StorageException("Injected."));
      }
    }.run();
  }
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.