Search in sources :

Example 1 with EcLogDTO

use of com.easy.cloud.core.common.log.pojo.dto.EcLogDTO in project dq-easy-cloud by dq-open-cloud.

the class EcLogAnalysisBO method buildDqLogAnalysisData.

/**
 * 构建日志分析数据---必须对dqLogAnalysisDTO中的dqLogDTO成员属性进行初始化后才能调用该方法
 */
public EcLogAnalysisBO buildDqLogAnalysisData() {
    try {
        EcLogDTO ecLogDTO = this.ecLogAnalysisDTO.getLogDTO();
        if (EcBaseUtils.isNull(ecLogDTO)) {
            throw new EcBaseBusinessException(EcLogErrorCodeEnum.DQ_LOG_DTO_CANT_NULL);
        }
        this.ecLogAnalysisDTO.buildRunTimeMinllisTotal().buildRunTimesTotal().buildRunTimeMinllisAvg();
        this.ecLogAnalysisDTO.buildRunTimeMinllisMin().buildRunTimeMinllisMax().buildLogType();
    } catch (Exception e) {
        e.printStackTrace();
    }
    return this;
}
Also used : EcBaseBusinessException(com.easy.cloud.core.exception.bo.EcBaseBusinessException) EcBaseBusinessException(com.easy.cloud.core.exception.bo.EcBaseBusinessException) EcLogDTO(com.easy.cloud.core.common.log.pojo.dto.EcLogDTO)

Example 2 with EcLogDTO

use of com.easy.cloud.core.common.log.pojo.dto.EcLogDTO in project dq-easy-cloud by dq-open-cloud.

the class TestRedisService method updateEcLogDTO.

@EcRedisAnnotation(actionType = EcRedisActionType.UPDATE, proxyClass = EcRedisDemoProxy.class)
public EcLogDTO updateEcLogDTO(String id) {
    EcLogDTO logDTO = new EcLogDTO();
    logDTO.setRequestPath("更新的path");
    EcLogUtils.info("更新数据洛", logDTO, logger);
    return logDTO;
}
Also used : EcLogDTO(com.easy.cloud.core.common.log.pojo.dto.EcLogDTO) EcRedisAnnotation(com.easy.cloud.core.cache.redis.annotation.EcRedisAnnotation)

Example 3 with EcLogDTO

use of com.easy.cloud.core.common.log.pojo.dto.EcLogDTO in project dq-easy-cloud by dq-open-cloud.

the class TestRedisService method saveEcLogDTO.

@EcRedisAnnotation(actionType = EcRedisActionType.SAVE, proxyClass = EcRedisDemoProxy.class)
public EcLogDTO saveEcLogDTO(String id) {
    EcLogDTO logDTO = new EcLogDTO();
    logDTO.setRequestPath("测试的path");
    EcLogUtils.info("保存数据洛", logDTO, logger);
    return logDTO;
}
Also used : EcLogDTO(com.easy.cloud.core.common.log.pojo.dto.EcLogDTO) EcRedisAnnotation(com.easy.cloud.core.cache.redis.annotation.EcRedisAnnotation)

Example 4 with EcLogDTO

use of com.easy.cloud.core.common.log.pojo.dto.EcLogDTO in project dq-easy-cloud by dq-open-cloud.

the class TestRedisDAOImp method queryRequestPath.

@Override
public EcLogDTO queryRequestPath(String id) {
    EcLogDTO logDTO = new EcLogDTO();
    logDTO.setRequestPath("dao下的对象");
    return logDTO;
}
Also used : EcLogDTO(com.easy.cloud.core.common.log.pojo.dto.EcLogDTO)

Example 5 with EcLogDTO

use of com.easy.cloud.core.common.log.pojo.dto.EcLogDTO in project dq-easy-cloud by dq-open-cloud.

the class EcRedisDemoProxy method update.

@Override
protected Object update() {
    EcLogDTO logDTO = EcRedisTemplateHandler.get(key, EcLogDTO.class);
    if (logDTO != null) {
        logDTO.setRequestPath("更行的数据www.update.com");
        EcRedisTemplateHandler.set(key, logDTO);
    }
    return super.update();
}
Also used : EcLogDTO(com.easy.cloud.core.common.log.pojo.dto.EcLogDTO)

Aggregations

EcLogDTO (com.easy.cloud.core.common.log.pojo.dto.EcLogDTO)6 EcRedisAnnotation (com.easy.cloud.core.cache.redis.annotation.EcRedisAnnotation)2 EcBaseBusinessException (com.easy.cloud.core.exception.bo.EcBaseBusinessException)1