Package com.netflix.staash.rest.dao

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


        String storageType = getStorageType(storage);
        String cluster = getCluster(storage);
//        String hostName = getHostName(cluster);
        if (DaoMap.containsKey(cluster)) return DaoMap.get(cluster);
        if (storageType.equals("cassandra") &&  clientType.equals("cql")) {
            DataDao dataDao = DaoMap.get(cluster);
            if (dataDao==null) {
//                dataDao = new CqlDataDaoImpl(factory.getDataCluster(cluster),metaDao);
            }
            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;
View Full Code Here

TOP

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

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.