You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

45 lines
1.3 KiB

package com.insigma.service;
/**
* (Computer 计算机 接口)
*
* @author zhangxianwei
* @since 2022/4/17 21:07
*/
public interface Computer {
/***
* 执行 脚本程序
* @param shell 执行脚本
* @return 执行执行脚本成功
*/
default boolean runShell(String shell, boolean isWinCommandUtil) {
System.out.println(String.format("设置出参数:%s,%s,但是未检测到实现应用调用此方法!", shell, isWinCommandUtil));
return false;
}
/***
* 执行 备份操作
* @param path 备份文件目录路径 【不带结尾符】
* @return 是否备份成功
*/
default boolean runBak(String path) {
System.out.println(String.format("设置出参数:%s,但是未检测到实现应用调用此方法!", path));
return false;
}
/***
* 执行 还原操作
* @param filePath 还原文件路径
* @return 是否备份成功
*/
default boolean runRestore(String filePath) {
System.out.println(String.format("设置出参数:%s,但是未检测到实现应用调用此方法!", filePath));
return false;
}
/***
* 执行 打开服务操作
* @return 是否备份成功
*/
default void openServer() {
}
}