@Service public class DockerInfoService extends BaseWorkspaceService<DockerInfoModel> implements IAsyncLoad, cn.hutool.cron.task.Task
Modifier and Type | Field and Description |
---|---|
static String |
DOCKER_CHECK_PLUGIN_NAME |
static String |
DOCKER_PLUGIN_NAME |
key, tableName, tClass
Constructor and Description |
---|
DockerInfoService(DockerSwarmInfoService dockerSwarmInfoService) |
Modifier and Type | Method and Description |
---|---|
void |
bindDockerSwarm(DockerInfoModel joinSwarmDocker,
String tag,
com.alibaba.fastjson.JSONObject swarm,
String swarmId)
docker 绑定集群
|
int |
countByTag(String workspaceId,
String tag)
根据 tag 查询 容器
|
void |
execute() |
protected void |
fillSelectResult(DockerInfoModel data)
查询结果 填充
|
Map<String,Object> |
getBySwarmPluginMap(String id)
获取集群 docker 信息
|
Map<String,Object> |
getBySwarmPluginMap(String id,
javax.servlet.http.HttpServletRequest request)
获取集群 docker 信息
|
List<DockerInfoModel> |
queryByTag(String workspaceId,
Integer status,
String tag)
根据 tag 查询 容器
|
void |
startLoad()
开始加载
|
void |
unbind(String id)
解绑集群信息
|
void |
updateDockerSwarmTag(String swarmId,
String tag,
String delTag)
更新集群 标签
|
boolean |
updateMonitor(DockerInfoModel dockerInfoModel)
监控 容器
|
checkUserWorkspace, checkUserWorkspace, defaultOrders, delByKey, delByWorkspace, fillInsert, getByKey, getByKey, getCheckUserWorkspace, getWorkspaceId, listById, listByWorkspace, listPage, sortMoveDown, sortMoveUp, sortToTop, updateById
autoClear, autoLoopClear, clearTimeColumns, count, count, covetTableName, executeClearImpl, getData, getLastTimeValue, insert, insert, insertNotFill, list, listById, listById, listPage, listPage, parsePage, update, updateById, updateById, upsert
count, count, dataBeanToEntity, del, delByKey, delByKey, entityToBean, entityToBean, entityToBeanList, execute, exists, exists, findByCondition, getByKey, getByKey, getByKey, getKey, getTableName, insert, listByBean, listByEntity, listPageOnlyResult, query, query, queryByBean, queryList, queryList, queryList, update, warpException
public static final String DOCKER_CHECK_PLUGIN_NAME
public static final String DOCKER_PLUGIN_NAME
public DockerInfoService(DockerSwarmInfoService dockerSwarmInfoService)
protected void fillSelectResult(DockerInfoModel data)
BaseDbCommonService
fillSelectResult
in class BaseDbCommonService<DockerInfoModel>
data
- 数据public void startLoad()
IAsyncLoad
startLoad
in interface IAsyncLoad
public void execute()
execute
in interface cn.hutool.cron.task.Task
public boolean updateMonitor(DockerInfoModel dockerInfoModel)
dockerInfoModel
- dockerpublic List<DockerInfoModel> queryByTag(String workspaceId, Integer status, String tag)
workspaceId
- 工作空间tag
- tagstatus
- 状态public int countByTag(String workspaceId, String tag)
workspaceId
- 工作空间tag
- tagpublic void bindDockerSwarm(DockerInfoModel joinSwarmDocker, String tag, com.alibaba.fastjson.JSONObject swarm, String swarmId)
joinSwarmDocker
- dockertag
- 标签swarm
- 集群信息swarmId
- 集群IDpublic void updateDockerSwarmTag(String swarmId, String tag, String delTag)
swarmId
- 集群IDtag
- 新增标签delTag
- 删除标签public void unbind(String id)
id
- docker idpublic Map<String,Object> getBySwarmPluginMap(String id, javax.servlet.http.HttpServletRequest request)
id
- 集群IDrequest
- 请求对象Copyright © 2017–2022. All rights reserved.