Package com.netflix.staash.rest.dao

Examples of com.netflix.staash.rest.dao.AstyanaxDataDaoImpl


    }
    @Provides
    DataDao provideCqlDataDao(@Named("paas.cassclient") String clientType, @Named("datacluster") Cluster cluster, MetaDao meta) {
        if (clientType.equals("cql"))
        return new CqlDataDaoImpl(cluster, meta);
        else return new AstyanaxDataDaoImpl();
    }
View Full Code Here


            DaoMap.put(cluster,  dataDao);
            return dataDao;
        } else if (storageType.equals("cassandra") &&  clientType.equals("astyanax")) {
            DataDao dataDao = DaoMap.get(cluster);
            if (dataDao==null) {
                dataDao = new AstyanaxDataDaoImpl();//factory.getDataCluster(cluster),metaDao);
            }
            DaoMap.put(cluster,  dataDao);
            return dataDao;
        } else if (storageType.equals("mysql") && clientType==null) {
           
View Full Code Here

    }
    @Provides
    DataDao provideCqlDataDao(@Named("staash.cassclient") String clientType, @Named("datacluster") Cluster cluster, MetaDao meta) {
        if (clientType.equals("cql"))
        return new CqlDataDaoImpl(cluster, meta);
        else return new AstyanaxDataDaoImpl();
    }
View Full Code Here

TOP

Related Classes of com.netflix.staash.rest.dao.AstyanaxDataDaoImpl

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.