Package voldemort.client

Examples of voldemort.client.SocketStoreClientFactory


            // .enableDefaultClient(true);

            if(clientZoneId >= 0) {
                clientConfig.setClientZoneId(clientZoneId);
            }
            SocketStoreClientFactory socketFactory = new SocketStoreClientFactory(clientConfig);
            this.storeClient = socketFactory.getStoreClient(storeName);
            StoreDefinition storeDef = getStoreDefinition(socketFactory, storeName);
            this.keyType = findKeyType(storeDef);
            benchmarkProps.put(Benchmark.KEY_TYPE, this.keyType);
            this.factory = socketFactory;
View Full Code Here


        Map<String, Integer> kvUpdateCount = new HashMap<String, Integer>(KV_POOL_SIZE);
        public final Map<String, Integer> exceptionCount = new PrintableHashMap();
        public final Map<String, Integer> requestCount = new PrintableHashMap();

        DummyTestClient(String clientName, String bootstrapURL, String storeName, Integer clientZoneId) {
            factory = new SocketStoreClientFactory(new ClientConfig().setBootstrapUrls(bootstrapURL).setClientZoneId(clientZoneId));
            client = factory.getStoreClient(storeName);
            thread = new Thread(this);
            this.clientName = clientName;

            int i = 0;
View Full Code Here

     *
     * {@linktourl http://project-voldemort.com/javadoc/client/voldemort/client/ClientConfig.html}
     */
  public void init() throws DBException {
    ClientConfig clientConfig = new ClientConfig(getProperties());
    socketFactory = new SocketStoreClientFactory(clientConfig);
   
    // Retrieve store name
    storeName = getProperties().getProperty("store_name", "usertable");
   
    // Use store name to retrieve client
View Full Code Here

//        VoldemortServer server = new VoldemortServer(config);
//        server.start();

        // bootstrap
        String bootstrapUrl = "tcp://localhost:6666";
        StoreClientFactory factory = new SocketStoreClientFactory(new ClientConfig().setBootstrapUrls(bootstrapUrl));

        // create a client that executes operations on a single store
        client = factory.getStoreClient("test");
    }
View Full Code Here

     *
     * {@linktourl http://project-voldemort.com/javadoc/client/voldemort/client/ClientConfig.html}
     */
  public void init() throws DBException {
    ClientConfig clientConfig = new ClientConfig(getProperties());
    socketFactory = new SocketStoreClientFactory(clientConfig);
   
    // Retrieve store name
    storeName = getProperties().getProperty("store_name", "usertable");
   
    // Use store name to retrieve client
View Full Code Here

TOP

Related Classes of voldemort.client.SocketStoreClientFactory

Copyright © 2018 www.massapicom. 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.