Examples of StoreNotFoundException


Examples of com.sleepycat.persist.StoreNotFoundException

                throw new StoreExistsException
                    ("Catalog DB already exists and ExclusiveCreate=true, " +
                     dbNameMsg);
            } else {
                assert !dbConfig.getAllowCreate();
                throw new StoreNotFoundException
                    ("Catalog DB does not exist and AllowCreate=false, " +
                     dbNameMsg);
            }
        }
        openCount = 1;
View Full Code Here

Examples of com.sleepycat.persist.StoreNotFoundException

            // iterate through stores
            for(final String storeName: storeNames) {
                // store definition
                StoreDefinition storeDefinition = storeDefinitions.get(storeName);
                if(storeDefinition == null) {
                    throw new StoreNotFoundException("Store " + storeName + " not found");
                }

                out.write("STORE_NAME: " + storeDefinition.getName() + "\n");

                // k-v serializer
View Full Code Here

Examples of com.sleepycat.persist.StoreNotFoundException

        // iterate through stores
        for(final String storeName: storeNames) {
            // store definition
            StoreDefinition storeDefinition = storeDefinitions.get(storeName);
            if(storeDefinition == null) {
                throw new StoreNotFoundException("Store " + storeName + " not found");
            }

            out.write("STORE_NAME: " + storeDefinition.getName() + "\n");

            // k-v serializer
View Full Code Here

Examples of org.apache.karaf.cellar.core.exception.StoreNotFoundException

     * @throws InterruptedException if the command execution has been interrupted.
     */
    @Override
    public <R extends Result, C extends Command<R>> Map<Node, R> execute(C command) throws StoreNotFoundException, ProducerNotFoundException, InterruptedException {
        if (command == null) {
            throw new StoreNotFoundException("Command store not found");
        } else {
            commandStore.getPending().put(command.getId(), command);
            TimeoutTask timeoutTask = new TimeoutTask(command, commandStore);
            timeoutScheduler.schedule(timeoutTask, command.getTimeout(), TimeUnit.MILLISECONDS);
        }
View Full Code Here

Examples of org.apache.karaf.cellar.core.exception.StoreNotFoundException

        this.commandStore = commandStore;
    }

    public <R extends Result, C extends Command<R>> Map<Node, R> execute(C command) throws StoreNotFoundException, ProducerNotFoundException, InterruptedException {
        if (command == null) {
            throw new StoreNotFoundException("Command store not found");
        } else {
            commandStore.getPending().put(command.getId(), command);
            TimeoutTask timeoutTask = new TimeoutTask(command, commandStore);
            timeoutScheduler.schedule(timeoutTask, command.getTimeout(), TimeUnit.MILLISECONDS);
        }
View Full Code Here

Examples of org.openxri.exceptions.StoreNotFoundException

        XRI xri = new XRI(this.xri);
        XRIAuthority xriAuthority = ((XRIAuthority) xri.getAuthorityPath());

        authority = ((StoreBetterLookup) openXRIStore).localLookup(xriAuthority);

        if (authority == null) throw new StoreNotFoundException();
      } catch (StoreNotFoundException ex) {

        BasePage.log.error(ex);
        BasePage.this.error(BasePage.this.getString("notfound") + ex.getLocalizedMessage());
        return;
View Full Code Here

Examples of org.openxri.exceptions.StoreNotFoundException

      rootSubSegment = DbSubSegment.RootByName(session, name);

      if (rootSubSegment == null) {

        throw new StoreNotFoundException("Root subsegment does not exist.");
      }

      session.delete(rootSubSegment);
      session.flush();
      session.getTransaction().commit();
View Full Code Here

Examples of org.openxri.exceptions.StoreNotFoundException

    log.trace("deleteAuthority()");

    // check authority

    if (authority == null) throw new NullPointerException();
    if (! (authority instanceof DbAuthority)) throw new StoreNotFoundException("Authority is not from this store.");

    // start database session

    Session session = this.getSessionFactory().getCurrentSession();
View Full Code Here

Examples of org.openxri.exceptions.StoreNotFoundException

    log.trace("registerSubsegment(" + subSegmentName + ")");

    // check parent authority

    if (parentAuthority == null) throw new NullPointerException();
    if (! (parentAuthority instanceof DbAuthority)) throw new StoreNotFoundException("Parent authority is not from this store.");

    // check if the parent authority overrides the CREATE pipeline. if not, use the default.

    ServerConfig serverConfig = ServerConfigFactory.getSingleton();
    PipelineRegistry pipelineRegistry = (serverConfig == null) ? null : serverConfig.getPipelineRegistry();
View Full Code Here

Examples of org.openxri.exceptions.StoreNotFoundException

    log.trace("registerSubsegment(" + subSegmentName + ")");

    // check authority and parent authority

    if (parentAuthority != null && (! (parentAuthority instanceof DbAuthority))) throw new StoreNotFoundException("Parent authority is not from this store.");
    if (authority != null && (! (authority instanceof DbAuthority))) throw new StoreNotFoundException("Authority is not from this store.");

    // start database session

    Session session = this.getSessionFactory().getCurrentSession();
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.