Examples of Store


Examples of org.neo4j.kernel.impl.nioneo.store.Store

        }
    }

    public long nextId( Class<?> clazz )
    {
        Store store = idGenerators.get( clazz );

        if ( store == null )
        {
            throw new IdGenerationFailedException( "No IdGenerator for: "
                + clazz );
        }
        return store.nextId();
    }
View Full Code Here

Examples of org.openxri.store.Store

    }

    @Override
    protected void onSubmit() {

      final Store openXRIStore = ((OpenXRIAdminApplication) this.getApplication()).getOpenXRIStore();

      // find the authority

      Authority authority;
View Full Code Here

Examples of org.papoose.core.spi.Store

    @Test
    public void test() throws Exception
    {
        final long earlyTimestamp = System.currentTimeMillis();
        Store fileStore = new MockStore();
        Papoose papoose = new Papoose("org.acme.osgi.0", fileStore, new ScheduledThreadPoolExecutor(10), new Properties());

        papoose.start();

        File testBundle = new File("./target/bundle.jar");
        String location = testBundle.toURI().normalize().toString();

        BundleContext context = papoose.getSystemBundleContext();

        Bundle bundle = context.installBundle(location);

        Assert.assertEquals(1, bundle.getBundleId());

        Assert.assertEquals(location, bundle.getLocation());

        Assert.assertTrue(earlyTimestamp < bundle.getLastModified());

        Dictionary headers = bundle.getHeaders("en");
        Assert.assertEquals("org.papoose.test.papoose-test-bundle", headers.get("Bundle-SymbOLicName"));

        headers = bundle.getHeaders("en");
        Assert.assertEquals("bundle_en", headers.get("L10N-Bundle"));

        headers = bundle.getHeaders();
        Assert.assertEquals("bundle_en", headers.get("L10N-Bundle"));

        headers = bundle.getHeaders(null);
        Assert.assertEquals("bundle_en", headers.get("L10N-Bundle"));

        headers = bundle.getHeaders("en_US");
        Assert.assertEquals("bundle_en", headers.get("L10N-Bundle"));

        headers = bundle.getHeaders("fr");
        Assert.assertEquals("bundle_fr", headers.get("L10N-Bundle"));

        headers = bundle.getHeaders("fr_FR");
        Assert.assertEquals("bundle_fr_FR", headers.get("L10N-Bundle"));

        headers = bundle.getHeaders("");
        Assert.assertEquals("%bundle", headers.get("L10N-Bundle"));

        headers = bundle.getHeaders("en");
        Assert.assertEquals("no translation for this entry", headers.get("L10N-NoTranslation"));

        papoose.getBundleManager().resolve(bundle);

        papoose.stop();

        fileStore.removeBundleStore(1);
    }
View Full Code Here

Examples of org.reflections.Store

                        new TypeAnnotationsScanner(),
                        //new SubTypesScanner(),
                        propScanner
                );

        store = new Store();

        //inject to scanners
        for (Scanner scanner : configuration.getScanners()) {
            scanner.setConfiguration(configuration);
            scanner.setStore(store.get(scanner.getClass()));
View Full Code Here

Examples of org.sdnplatform.sync.thrift.Store

        RegisterRequestMessage rrm = new RegisterRequestMessage();
        AsyncMessageHeader header = new AsyncMessageHeader();
        header.setTransactionId(getTransactionId());
        rrm.setHeader(header);
       
        Store store = new Store(storeName);
        store.setScope(TProtocolUtil.getTScope(scope));
        store.setPersist(false);
        rrm.setStore(store);
       
        SyncMessage bsm = new SyncMessage(MessageType.REGISTER_REQUEST);
        bsm.setRegisterRequest(rrm);
        Future<SyncReply> future =
View Full Code Here

Examples of org.zorbaxquery.api.Store

 
  /**
   * @param args
   */
  public static void main(String[] args) {
    Store store = InMemoryStore.getInstance();
    Zorba zorba = Zorba.getInstance(store);
    XQuery xquery = zorba.compileQuery("declare variable $input external; for $x in $input//b return $x");
    xquery.setVariableAsDocument("input", "test.xml", "<a><b>Hallo</b><b>Lukas</b><b>1</b></a>");
    Iterator iter = xquery.iterator();
    iter.open();
View Full Code Here

Examples of se.despotify.domain.Store

    loadAlbum();
    loadTracks();
  }

  public static void loadArtist() throws Exception {
    Store store = new MemoryStore();
    XMLStreamReader xmlr = createReader(new InputStreamReader(new FileInputStream(new java.io.File("src/main/resources/response/xml/load_artist_4f9873e19e5a4b4096c216c98bcdb010.xml")), "UTF8"));
    ResponseUnmarshaller unmarshaller = new ResponseUnmarshaller(store, xmlr);
    unmarshaller.skip();
    Artist artist = unmarshaller.unmarshallArtist(new Date());
    System.currentTimeMillis();
View Full Code Here

Examples of src.Store

    this.root  = (null == root? this.root  : root;
    this.user  = (null == user? this.user  : user;
    this.pass  = (null == pass? this.pass  : pass;
    this.cache = (null == cache) ? this.cache : cache;
   
    store = new Store(this.hosts, this.root, this.user, this.pass, this.cache);
  }
View Full Code Here

Examples of voldemort.store.Store

        // resolver (if they gave us one)
        InconsistencyResolver<Versioned<V1>> secondaryResolver = new TimeBasedInconsistencyResolver();
        if(resolver != null)
            secondaryResolver = resolver;

        Store store = new VersionIncrementingStore(new InMemoryStorageEngine(storeName),
                                                   nodeId,
                                                   time);
        if(isSerialized())
            store = new SerializingStore(store,
                                         keySerializer,
View Full Code Here

Examples of welcome.shared.store.Store

  @Override
  public Store getStore() throws IllegalArgumentException {
   
   
    //newStore is the distant store for demonstration purpose only ^^
    Store newStore = new Store();
   
    newStore.addArticle(new Article ("computer",10));
    newStore.addArticle(new Article ("macbook",2));
    newStore.addArticle(new Article ("pen",3));
    newStore.addArticle(new Article ("car",5));
   
   
    return newStore;
  }
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.