Search in sources :

Example 6 with ModuleJvm

use of com.ibeiliao.deployment.admin.vo.project.ModuleJvm 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

ModuleJvm (com.ibeiliao.deployment.admin.vo.project.ModuleJvm)6 ProjectModule (com.ibeiliao.deployment.admin.vo.project.ProjectModule)2 ProjectModulePO (com.ibeiliao.deployment.admin.po.project.ProjectModulePO)1 ProjectEnv (com.ibeiliao.deployment.admin.vo.global.ProjectEnv)1 Test (org.junit.Test)1