| | |
| | | import com.vci.ubcs.deploy.entity.DeployApps; |
| | | import com.vci.ubcs.deploy.vo.DeployAppsVO; |
| | | import org.apache.http.auth.AuthenticationException; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.ServletRequest; |
| | | import java.util.List; |
| | |
| | | */ |
| | | public interface IDeployAppsService extends IService<DeployApps> { |
| | | |
| | | /** |
| | | * 获取正在运行的服务相关信息 |
| | | * @param servletRequest |
| | | * @return |
| | | * @throws ServiceException |
| | | */ |
| | | List<DeployAppsVO> getApplications(ServletRequest servletRequest) throws ServiceException; |
| | | |
| | | /** |
| | | * 根据服务名称获取或服务配置信息 |
| | | * @param deployAppsVO |
| | | * @return |
| | | * @throws ServiceException |
| | | */ |
| | | DeployApps saveOrGetServiceConfInfo(DeployAppsVO deployAppsVO) throws ServiceException; |
| | | |
| | | /** |
| | | * 修改或保存 |
| | | * @param deployAppsVO |
| | | * @return |
| | | * @throws ServiceException |
| | | */ |
| | | boolean saveOrUpdateServiceInfo(DeployAppsVO deployAppsVO) throws ServiceException; |
| | | |
| | | /** |
| | | * 新增服务信息 |
| | | * @param deployApps |
| | | * @return |
| | | * @throws ServiceException |
| | | */ |
| | | boolean addSave(DeployApps deployApps) throws ServiceException; |
| | | |
| | | /** |
| | | * 更新文件上传 |
| | | * @param files |
| | | * @param serverName |
| | | * @return |
| | | */ |
| | | R importClassify(MultipartFile[] files, String serverName) throws ServiceException; |
| | | |
| | | /** |
| | | * 执行命令 |
| | | * @param deployAppsVO |
| | | * @return |
| | | */ |
| | | R cmdExecute(DeployAppsVO deployAppsVO)throws ServiceException; |
| | | |
| | | } |