public class OutGivingRun extends Object implements Callable<OutGivingNodeProject.Status>
Modifier and Type | Method and Description |
---|---|
OutGivingNodeProject.Status |
call() |
static cn.jiangzeyin.common.JsonMessage |
fileUpload(File file,
String projectId,
boolean unzip,
boolean restart,
NodeModel nodeModel,
UserModel userModel,
boolean clearOld)
上传项目文件
|
static void |
startRun(String id,
File file,
UserModel userModel,
boolean unzip)
开始异步执行分发任务
|
public static void startRun(String id, File file, UserModel userModel, boolean unzip) throws IOException
id
- 分发idfile
- 文件userModel
- 操作的用户IOException
public OutGivingNodeProject.Status call()
call
in interface Callable<OutGivingNodeProject.Status>
public static cn.jiangzeyin.common.JsonMessage fileUpload(File file, String projectId, boolean unzip, boolean restart, NodeModel nodeModel, UserModel userModel, boolean clearOld)
file
- 需要上传的文件projectId
- 项目idunzip
- 是否需要解压restart
- 是否需要重启nodeModel
- 节点userModel
- 操作用户Copyright © 2017–2019. All rights reserved.