-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
233 additions
and
184 deletions.
There are no files selected for viewing
66 changes: 66 additions & 0 deletions
66
...r-openapi/src/main/java/io/openjob/server/openapi/request/DelayInstanceStatusRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
package io.openjob.server.openapi.request; | ||
|
||
import io.openjob.common.constant.FailStatusEnum; | ||
import lombok.Data; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* @author stelin [email protected] | ||
* @since 1.0.8 | ||
*/ | ||
@Data | ||
public class DelayInstanceStatusRequest { | ||
|
||
private List<DelayInstanceTaskRequest> list; | ||
|
||
@Data | ||
public static class DelayInstanceTaskRequest { | ||
/** | ||
* Topic | ||
*/ | ||
private String topic; | ||
|
||
/** | ||
* Delay id. | ||
*/ | ||
private Long delayId; | ||
|
||
/** | ||
* Delay pid | ||
*/ | ||
private Long delayPid; | ||
|
||
/** | ||
* Task id. | ||
*/ | ||
private String taskId; | ||
|
||
/** | ||
* Task status. | ||
*/ | ||
private Integer status; | ||
|
||
/** | ||
* Fail status | ||
* | ||
* @see FailStatusEnum#getStatus() | ||
*/ | ||
private Integer failStatus; | ||
|
||
/** | ||
* Task result. | ||
*/ | ||
private String result; | ||
|
||
/** | ||
* Worker address | ||
*/ | ||
private String workerAddress; | ||
|
||
/** | ||
* Complete time | ||
*/ | ||
private Long completeTime; | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...ver-openapi/src/main/java/io/openjob/server/openapi/request/DelayPullInstanceRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package io.openjob.server.openapi.request; | ||
|
||
import lombok.Data; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* @author stelin [email protected] | ||
* @since 1.0.8 | ||
*/ | ||
@Data | ||
public class DelayPullInstanceRequest { | ||
private String workerAddress; | ||
private List<DelayPullTopicItemRequest> list; | ||
|
||
@Data | ||
public static class DelayPullTopicItemRequest { | ||
private String topic; | ||
private Integer size; | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...server-openapi/src/main/java/io/openjob/server/openapi/request/DelayPullTopicRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package io.openjob.server.openapi.request; | ||
|
||
import lombok.Data; | ||
|
||
/** | ||
* @author stelin [email protected] | ||
* @since 1.0.8 | ||
*/ | ||
@Data | ||
public class DelayPullTopicRequest { | ||
private String appName; | ||
} |
184 changes: 0 additions & 184 deletions
184
...rver/openjob-server-openapi/src/main/java/io/openjob/server/openapi/util/ClusterUtil.java
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
...njob-server-openapi/src/main/java/io/openjob/server/openapi/vo/DelayInstanceStatusVO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package io.openjob.server.openapi.vo; | ||
|
||
/** | ||
* @author stelin [email protected] | ||
* @since 1.0.8 | ||
*/ | ||
public class DelayInstanceStatusVO { | ||
} |
32 changes: 32 additions & 0 deletions
32
...penjob-server-openapi/src/main/java/io/openjob/server/openapi/vo/DelayPullInstanceVO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package io.openjob.server.openapi.vo; | ||
|
||
import lombok.Data; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* @author stelin [email protected] | ||
* @since 1.0.8 | ||
*/ | ||
@Data | ||
public class DelayPullInstanceVO { | ||
private List<DelayPullInstanceItemVO> list; | ||
|
||
@Data | ||
public static class DelayPullInstanceItemVO { | ||
private String topic; | ||
private String taskId; | ||
private Long delayId; | ||
private Long delayPid; | ||
private String delayParams; | ||
private String delayExtra; | ||
private String processorInfo; | ||
private Integer failRetryTimes; | ||
private Integer failRetryInterval; | ||
private Integer executeTimeout; | ||
private Integer blockingSize; | ||
private Integer concurrency; | ||
private Integer failTopicEnable; | ||
private Integer failTopicConcurrency; | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...r/openjob-server-openapi/src/main/java/io/openjob/server/openapi/vo/DelayPullTopicVO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package io.openjob.server.openapi.vo; | ||
|
||
import lombok.Data; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* @author stelin [email protected] | ||
* @since 1.0.8 | ||
*/ | ||
@Data | ||
public class DelayPullTopicVO { | ||
private List<DelayTopicVO> topicList; | ||
|
||
@Data | ||
public static class DelayTopicVO { | ||
private Long id; | ||
private Long pid; | ||
private String topic; | ||
private String processorInfo; | ||
private Integer failRetryTimes; | ||
private Integer failRetryInterval; | ||
private Integer executeTimeout; | ||
private Integer concurrency; | ||
private Integer failTopicEnable; | ||
private Integer failTopicConcurrency; | ||
} | ||
} |
Oops, something went wrong.