VIVIMAN
3 years ago
7 changed files with 121 additions and 14 deletions
@ -0,0 +1,67 @@ |
|||
package com.insigma.service.impl; |
|||
|
|||
import com.insigma.entry.IndexObj; |
|||
import com.insigma.entry.TabColObj; |
|||
import com.insigma.service.Computer; |
|||
import com.insigma.service.Database; |
|||
import com.insigma.service.Middleware; |
|||
import com.insigma.utils.LinuxCommandUtil; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* (LinuxTongWebKingBase 类) linux 下 东方通 + 金昌 |
|||
* |
|||
* @author zhangxianwei |
|||
* @since 16:43 2022/4/19 |
|||
*/ |
|||
@Slf4j |
|||
public class LinuxTongWebKingBase extends Computer implements Database, Middleware { |
|||
|
|||
@Override |
|||
public boolean runShell(String shell) { |
|||
try { |
|||
new LinuxCommandUtil(shell).run(); |
|||
}catch (Exception e){ |
|||
log.error("执行发生异常:{}", e.getMessage()); |
|||
return false; |
|||
} |
|||
return true; |
|||
} |
|||
|
|||
@Override |
|||
public boolean rebuildIndex(List<IndexObj> index) { |
|||
return Database.super.rebuildIndex(index); |
|||
} |
|||
|
|||
@Override |
|||
public boolean setDbSize(int size) { |
|||
return Database.super.setDbSize(size); |
|||
} |
|||
|
|||
@Override |
|||
public boolean cleanDbCache(List<String> sql, List<TabColObj> tabColObjs) { |
|||
return Database.super.cleanDbCache(sql, tabColObjs); |
|||
} |
|||
|
|||
@Override |
|||
public boolean registrationDbService() { |
|||
return Database.super.registrationDbService(); |
|||
} |
|||
|
|||
@Override |
|||
public boolean cleanMwCache() { |
|||
return Middleware.super.cleanMwCache(); |
|||
} |
|||
|
|||
@Override |
|||
public boolean setMwSize(int size) { |
|||
return Middleware.super.setMwSize(size); |
|||
} |
|||
|
|||
@Override |
|||
public boolean registrationMwService() { |
|||
return Middleware.super.registrationMwService(); |
|||
} |
|||
} |
@ -1,12 +0,0 @@ |
|||
package com.insigma.utils; |
|||
|
|||
/** |
|||
* (RegisterUtil 类) |
|||
* |
|||
* @author zhangxianwei |
|||
* @since 18:02 2022/4/18 |
|||
*/ |
|||
public class RegisterUtil { |
|||
|
|||
|
|||
} |
Loading…
Reference in new issue