Examples of CachingIdService


Examples of com.urbanairship.datacube.idservices.CachingIdService

    private static Logger log = LoggerFactory.getLogger(ErrorHandlingTest.class);
   
    @Test
    public void test() throws Exception {
        log.info("You can ignore exceptions and scary stack traces from this test");
        IdService idService = new CachingIdService(5, new MapIdService(),"test");

        Configuration conf = getTestUtil().getConfiguration();
        HTablePool pool = new HTablePool(conf, Integer.MAX_VALUE);
       
        DbHarness<LongOp> dbHarness = new HBaseDbHarness<LongOp>(pool, "XY".getBytes(),
View Full Code Here

Examples of com.urbanairship.datacube.idservices.CachingIdService

     * Test the core datacube logic. Don't use a database, use our in-memory pretend storage
     * backend.
     */
    @Test
    public void writeAndRead() throws Exception {
        IdService idService = new CachingIdService(5, new MapIdService(), "test");
        ConcurrentMap<BoxedByteArray,byte[]> backingMap =
                new ConcurrentHashMap<BoxedByteArray,byte[]>();
       
        DbHarness<LongOp> dbHarness = new MapDbHarness<LongOp>(backingMap, LongOp.DESERIALIZER,
                CommitType.READ_COMBINE_CAS, idService);
View Full Code Here

Examples of com.urbanairship.datacube.idservices.CachingIdService

    public static final Dimension<Long> Z = new Dimension<Long>("Z", new BigEndianLongBucketer(), false, 8, true);

    @Test
    public void testAddress() throws Exception {
        ConcurrentMap<BoxedByteArray, byte[]> backingMap = Maps.newConcurrentMap();
        IdService idService = new CachingIdService(4, new MapIdService(), "test");
        DbHarness<LongOp> dbHarness = new MapDbHarness<LongOp>(backingMap, LongOp.DESERIALIZER, CommitType.OVERWRITE, idService);

        List<Dimension<?>> dims = ImmutableList.<Dimension<?>>of(X, Y, Z);
        List<Rollup> rollups = ImmutableList.of(new Rollup(X, Y), new Rollup(Y, Z));
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.