@Service public class CommandService extends BaseWorkspaceService<CommandModel> implements ICron<CommandModel>, ITriggerToken
key, tableName, tClass| Constructor and Description |
|---|
CommandService(SshService sshService,
CommandExecLogService commandExecLogService,
WorkspaceEnvVarService workspaceEnvVarService) |
| Modifier and Type | Method and Description |
|---|---|
List<cn.hutool.db.Entity> |
allEntityTokens()
当前数据所有 的 token
|
boolean |
checkCron(CommandModel buildInfoModel)
检查定时任务 状态
|
int |
delByKey(String keyValue,
javax.servlet.http.HttpServletRequest request)
删除
|
String |
executeBatch(CommandModel commandModel,
String params,
String nodes,
int triggerExecType)
批量执行命令
|
String |
executeBatch(String id,
String params,
String nodes)
批量执行命令
|
void |
insert(CommandModel commandModel)
插入数据
|
List<CommandModel> |
queryStartingList()
开启定时构建任务
|
void |
syncToWorkspace(String ids,
String nowWorkspaceId,
String workspaceId)
将ssh 脚本信息同步到其他工作空间
|
String |
typeName()
类型 名称
|
int |
updateById(CommandModel info,
javax.servlet.http.HttpServletRequest request)
更新数据,根据ID+工作空间ID
|
checkUserWorkspace, checkUserWorkspace, defaultOrders, delByWorkspace, fillInsert, getByKey, getByKey, getCheckUserWorkspace, getWorkspaceId, listById, listByWorkspace, listPage, sortMoveDown, sortMoveUp, sortToTopautoClear, autoLoopClear, clearTimeColumns, count, count, covetTableName, executeClearImpl, getData, getLastTimeValue, insert, insertNotFill, list, listById, listById, listPage, listPage, parsePage, update, updateById, updateById, upsertcount, count, dataBeanToEntity, del, delByKey, delByKey, entityToBean, entityToBean, entityToBeanList, execute, exists, exists, fillSelectResult, findByCondition, getByKey, getByKey, getByKey, getKey, getTableName, insert, listByBean, listByEntity, listPageOnlyResult, query, query, queryByBean, queryList, queryList, queryList, update, warpExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitallTokenspublic CommandService(SshService sshService, CommandExecLogService commandExecLogService, WorkspaceEnvVarService workspaceEnvVarService)
public void insert(CommandModel commandModel)
BaseDbCommonServiceinsert in class BaseDbService<CommandModel>commandModel - 数据public int updateById(CommandModel info, javax.servlet.http.HttpServletRequest request)
BaseWorkspaceServiceupdateById in class BaseWorkspaceService<CommandModel>info - 更新的数据request - 请求public int delByKey(String keyValue, javax.servlet.http.HttpServletRequest request)
BaseWorkspaceServicedelByKey in class BaseWorkspaceService<CommandModel>keyValue - 主键request - 请求信息public boolean checkCron(CommandModel buildInfoModel)
checkCron in interface ICron<CommandModel>buildInfoModel - 构建信息public List<CommandModel> queryStartingList()
queryStartingList in interface ICron<CommandModel>public String typeName()
ITriggerTokentypeName in interface ITriggerTokenpublic List<cn.hutool.db.Entity> allEntityTokens()
ITriggerTokenallEntityTokens in interface ITriggerTokenpublic String executeBatch(String id, String params, String nodes)
id - 命令 idnodes - ssh节点params - 参数public String executeBatch(CommandModel commandModel, String params, String nodes, int triggerExecType)
commandModel - 命令模版nodes - ssh节点params - 参数Copyright © 2017–2022. All rights reserved.