bocloud.sms/bocloud.sms.service/src/main/java/com/bocloud/sms/interfaces/UpgradeService.java

69 lines
1.8 KiB
Java
Raw Normal View History

2024-08-20 09:57:30 +00:00
package com.bocloud.sms.interfaces;
import com.bocloud.sms.entity.UpgradeHistory;
import com.bocloud.sms.entity.UpgradeTask;
import com.megatron.common.model.GeneralResult;
import com.megatron.common.model.GridBean;
import com.megatron.common.model.Pager;
import com.megatron.common.model.RequestContext;
/**
*
*
* @author luyanchao
* @date 2021-06-15
*/
public interface UpgradeService {
/**
*
*
* @param url url
* @param user
* @param pass
* @return /
*/
GeneralResult<Boolean> newMigration(String url, String user, String pass, RequestContext requestContext);
/**
*
*
* @param id id
* @return /
*/
GeneralResult<Boolean> retryMigration(Long id, RequestContext requestContext);
/**
*
*
* @param pager
* @return
*/
GeneralResult<GridBean<UpgradeHistory>> listUpgradeHistory(Pager pager);
/**
*
*
* @param id id
* @return
*/
GeneralResult<UpgradeHistory> getUpgradeHistory(Long id);
/**
*
*
* @param upgradeHistoryId id
* @param pager
* @return
*/
GeneralResult<GridBean<UpgradeTask>> listUpgradeTask(Long upgradeHistoryId, Pager pager);
/**
*
*
* @param taskId id
* @return /
*/
GeneralResult<Boolean> retryUpgradeTask(Long taskId, RequestContext context);
}