Package krati.store.avro.protocol

Examples of krati.store.avro.protocol.BasicDataStoreResponder


    protected DataStore<byte[], byte[]> createDataStore(File storeDir, int initialCapacity) throws Exception {
        return Utility.createStaticDataStore(storeDir, initialCapacity);
    }
   
    protected StoreResponder createStoreResponder() {
        return new BasicDataStoreResponder(_store);
    }
View Full Code Here


        return schema;
    }
   
    public static void main(String[] args) throws Exception {
        File storeDir = new File(System.getProperty("java.io.tmpdir"), SingleAvroStoreHttpServer.class.getSimpleName());
        StoreResponder storeResponder = new BasicDataStoreResponder(createDataStore(storeDir, 10000));
        storeResponder.setProperty(StoreKeys.KRATI_STORE_VALUE_SCHEMA, createSchema().toString());
        HttpServer server = new HttpServer(storeResponder, 8080);
        server.start();
        server.join();
    }
View Full Code Here

TOP

Related Classes of krati.store.avro.protocol.BasicDataStoreResponder

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.