Examples of makeComputingMap()


Examples of com.google.common.collect.GenericMapMaker.makeComputingMap()

                public void onEviction(Long nid, MBeanServerConnection mbeanServer) {
                    // do nothing
                }
            });

        mbeanServers = mapMaker.makeComputingMap(new Function<Long, MBeanServerConnection>() {

            public MBeanServerConnection apply(Long nid) {
                Node node = nodeService.findById(nid);
                String ip = node.getIp();
                if (node.getParameters().getUseExternalIp()) {
View Full Code Here

Examples of com.google.common.collect.GenericMapMaker.makeComputingMap()

            public void onEviction(List<String> names, Table table) {
                logger.warn("Eviction For Table:" + table);
            }
        });

        this.tables = mapMaker.makeComputingMap(new Function<List<String>, Table>() {

            public Table apply(List<String> names) {
                Assert.isTrue(names.size() == 2);
                try {
                    beforeFindTable(jdbcTemplate, names.get(0), names.get(0), names.get(1));
View Full Code Here

Examples of com.google.common.collect.GenericMapMaker.makeComputingMap()

            public void onEviction(List<String> names, Table table) {
                logger.warn("Eviction For Table:" + table);
            }
        });

        this.tables = mapMaker.makeComputingMap(new Function<List<String>, Table>() {

            public Table apply(List<String> names) {
                Assert.isTrue(names.size() == 2);
                try {
                    beforeFindTable(jdbcTemplate, names.get(0), names.get(0), names.get(1));
View Full Code Here

Examples of com.google.common.collect.GenericMapMaker.makeComputingMap()

            public void onEviction(Long nid, MBeanServerConnection mbeanServer) {
                // do nothing
            }
        });

        mbeanServers = mapMaker.makeComputingMap(new Function<Long, MBeanServerConnection>() {

            public MBeanServerConnection apply(Long nid) {
                Node node = nodeService.findById(nid);
                String ip = node.getIp();
                if (node.getParameters().getUseExternalIp()) {
View Full Code Here

Examples of com.google.common.collect.GenericMapMaker.makeComputingMap()

                                                                            dbDialect.destory();
                                                                        }
                                                                    }
                                                                });

        dialects = mapMaker.makeComputingMap(new Function<Long, Map<DbMediaSource, DbDialect>>() {

            public Map<DbMediaSource, DbDialect> apply(final Long pipelineId) {
                // 构建第二层map
                return new MapMaker().makeComputingMap(new Function<DbMediaSource, DbDialect>() {
View Full Code Here

Examples of com.google.common.collect.GenericMapMaker.makeComputingMap()

            public void onEviction(List<String> names, Table table) {
                logger.warn("Eviction For Table:" + table);
            }
        });

        this.tables = mapMaker.makeComputingMap(new Function<List<String>, Table>() {

            public Table apply(List<String> names) {
                Assert.isTrue(names.size() == 2);
                try {
                    beforeFindTable(jdbcTemplate, names.get(0), names.get(0), names.get(1));
View Full Code Here

Examples of com.google.common.collect.GenericMapMaker.makeComputingMap()

            public void onEviction(Long nid, MBeanServerConnection mbeanServer) {
                // do nothing
            }
        });

        mbeanServers = mapMaker.makeComputingMap(new Function<Long, MBeanServerConnection>() {

            public MBeanServerConnection apply(Long nid) {
                Node node = nodeService.findById(nid);
                String ip = node.getIp();
                int port = node.getPort().intValue() + 1;
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.