Search in sources :

Example 6 with ProjectModulePO

use of com.ibeiliao.deployment.admin.po.project.ProjectModulePO in project Corgi by kevinYin.

the class ProjectModuleServiceImpl method getByModuleId.

@Override
public ProjectModule getByModuleId(int moduleId) {
    Assert.isTrue(moduleId > 0, "moduleId 数值小于1");
    ProjectModulePO projectModulePO = projectModuleDao.get(moduleId);
    if (projectModulePO != null) {
        ProjectModule projectModule = VOUtil.from(projectModulePO, ProjectModule.class);
        decodeAccountAndPassword(projectModule);
        List<ModuleJvm> moduleJvmArgses = buildModuleJvms(moduleId);
        projectModule.setModuleJvms(moduleJvmArgses);
        loadModuleConf(projectModule);
        return projectModule;
    }
    return null;
}
Also used : ProjectModule(com.ibeiliao.deployment.admin.vo.project.ProjectModule) ProjectModulePO(com.ibeiliao.deployment.admin.po.project.ProjectModulePO) ModuleJvm(com.ibeiliao.deployment.admin.vo.project.ModuleJvm)

Aggregations

ProjectModulePO (com.ibeiliao.deployment.admin.po.project.ProjectModulePO)6 ProjectModule (com.ibeiliao.deployment.admin.vo.project.ProjectModule)2 ModuleConfPO (com.ibeiliao.deployment.admin.po.project.ModuleConfPO)1 ProjectAccountRelationPO (com.ibeiliao.deployment.admin.po.project.ProjectAccountRelationPO)1 ModuleJvm (com.ibeiliao.deployment.admin.vo.project.ModuleJvm)1 Server (com.ibeiliao.deployment.admin.vo.server.Server)1 ServerGroup (com.ibeiliao.deployment.admin.vo.server.ServerGroup)1 ResinConf (com.ibeiliao.deployment.transfer.vo.ResinConf)1 Test (org.junit.Test)1 Transactional (org.springframework.transaction.annotation.Transactional)1