@Path(value="/hot_upgrade") public interface IInternalHotUpgrade extends IHotUpgrade
Modifier and Type | Method and Description |
---|---|
void |
create(HotUpgradeTask task)
Create an
HotUpgradeTask
HotUpgradeTask status, createdAt and updatedAt properties are optional. |
TaskRef |
start(boolean onlyReady,
HotUpgradeTaskExecutionMode mode) |
TaskRef |
startLimited(long maxDuration,
HotUpgradeTaskExecutionMode mode) |
void |
update(HotUpgradeTask task)
Update
HotUpgradeTask status, failure and updatedAt properties |
list, progress, running
void create(HotUpgradeTask task)
HotUpgradeTask
HotUpgradeTask status, createdAt and updatedAt properties are optional. If
status is null, it is set to HotUpgradeTaskStatus.PLANNED
If
createdAt and updatedAt are null, they are set to the current timestamp.task
- void update(HotUpgradeTask task)
HotUpgradeTask
status, failure and updatedAt propertiestask
- @POST @Path(value="start") TaskRef start(@QueryParam(value="onlyReady") boolean onlyReady, HotUpgradeTaskExecutionMode mode)
@POST @Path(value="limitedStart") TaskRef startLimited(@QueryParam(value="maxDuration") long maxDuration, HotUpgradeTaskExecutionMode mode)
Copyright © 2023. All Rights Reserved.