Examples of SeniorDataMatrix


Examples of com.alibaba.otter.manager.web.common.model.SeniorDataMatrix

            matrixs = dataMatrixService.listByCondition(condition);
        }

        List<SeniorDataMatrix> seniorMatrixs = new ArrayList<SeniorDataMatrix>();
        for (DataMatrix matrix : matrixs) {
            SeniorDataMatrix seniorMatrix = new SeniorDataMatrix();
            seniorMatrix.setId(matrix.getId());
            seniorMatrix.setGroupKey(matrix.getGroupKey());
            seniorMatrix.setMaster(matrix.getMaster());
            seniorMatrix.setSlave(matrix.getSlave());
            seniorMatrix.setGmtCreate(matrix.getGmtCreate());
            seniorMatrix.setGmtModified(matrix.getGmtModified());

            Map dataSourceCondition = new HashMap();
            condition.put("searchKey", "jdbc:mysql://groupKey=" + matrix.getGroupKey());
            List<DataMediaSource> dataSources = dataMediaSourceService.listByCondition(dataSourceCondition);
            seniorMatrix.setUsed(!CollectionUtils.isEmpty(dataSources));

            seniorMatrixs.add(seniorMatrix);
        }

        context.put("dataMatrixs", seniorMatrixs);
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.