Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
turboFei committed Nov 7, 2024
1 parent 4e3bc70 commit 4ce8c73
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ public AppDiskUsageSnapshotsResponse getApplicationsDiskUsageSnapshots(Map<Strin

/**
*
* Revise lost shuffles or delete shuffles of an application.
* Revise lost shuffles or deleted shuffles of an application.
* @param reviseLostShufflesRequest (optional)
* @return HandleResponse
* @throws ApiException if fails to make API call
Expand All @@ -335,7 +335,7 @@ public HandleResponse reviseLostShuffles(ReviseLostShufflesRequest reviseLostShu

/**
*
* Revise lost shuffles or delete shuffles of an application.
* Revise lost shuffles or deleted shuffles of an application.
* @param reviseLostShufflesRequest (optional)
* @param additionalHeaders additionalHeaders for this call
* @return HandleResponse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@
ThreadStack.JSON_PROPERTY_LOCK_NAME,
ThreadStack.JSON_PROPERTY_LOCK_OWNER_NAME,
ThreadStack.JSON_PROPERTY_SUSPENDED,
ThreadStack.JSON_PROPERTY_IN_NATIVE
ThreadStack.JSON_PROPERTY_IN_NATIVE,
ThreadStack.JSON_PROPERTY_IS_DAEMON,
ThreadStack.JSON_PROPERTY_PRIORITY
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0")
public class ThreadStack {
Expand Down Expand Up @@ -90,6 +92,12 @@ public class ThreadStack {
public static final String JSON_PROPERTY_IN_NATIVE = "inNative";
private Boolean inNative;

public static final String JSON_PROPERTY_IS_DAEMON = "isDaemon";
private Boolean isDaemon;

public static final String JSON_PROPERTY_PRIORITY = "priority";
private Integer priority;

public ThreadStack() {
}

Expand Down Expand Up @@ -450,6 +458,56 @@ public void setInNative(Boolean inNative) {
this.inNative = inNative;
}

public ThreadStack isDaemon(Boolean isDaemon) {

this.isDaemon = isDaemon;
return this;
}

/**
* Whether the thread is a daemon thread.
* @return isDaemon
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_IS_DAEMON)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public Boolean getIsDaemon() {
return isDaemon;
}


@JsonProperty(JSON_PROPERTY_IS_DAEMON)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIsDaemon(Boolean isDaemon) {
this.isDaemon = isDaemon;
}

public ThreadStack priority(Integer priority) {

this.priority = priority;
return this;
}

/**
* The priority of the thread.
* @return priority
*/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_PRIORITY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public Integer getPriority() {
return priority;
}


@JsonProperty(JSON_PROPERTY_PRIORITY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPriority(Integer priority) {
this.priority = priority;
}

@Override
public boolean equals(Object o) {
if (this == o) {
Expand All @@ -471,12 +529,14 @@ public boolean equals(Object o) {
Objects.equals(this.lockName, threadStack.lockName) &&
Objects.equals(this.lockOwnerName, threadStack.lockOwnerName) &&
Objects.equals(this.suspended, threadStack.suspended) &&
Objects.equals(this.inNative, threadStack.inNative);
Objects.equals(this.inNative, threadStack.inNative) &&
Objects.equals(this.isDaemon, threadStack.isDaemon) &&
Objects.equals(this.priority, threadStack.priority);
}

@Override
public int hashCode() {
return Objects.hash(threadId, threadName, threadState, stackTrace, blockedByThreadId, blockedByLock, holdingLocks, synchronizers, monitors, lockName, lockOwnerName, suspended, inNative);
return Objects.hash(threadId, threadName, threadState, stackTrace, blockedByThreadId, blockedByLock, holdingLocks, synchronizers, monitors, lockName, lockOwnerName, suspended, inNative, isDaemon, priority);
}

@Override
Expand All @@ -496,6 +556,8 @@ public String toString() {
sb.append(" lockOwnerName: ").append(toIndentedString(lockOwnerName)).append("\n");
sb.append(" suspended: ").append(toIndentedString(suspended)).append("\n");
sb.append(" inNative: ").append(toIndentedString(inNative)).append("\n");
sb.append(" isDaemon: ").append(toIndentedString(isDaemon)).append("\n");
sb.append(" priority: ").append(toIndentedString(priority)).append("\n");
sb.append("}");
return sb.toString();
}
Expand Down
8 changes: 8 additions & 0 deletions openapi/openapi-client/src/main/openapi3/master_rest_v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ paths:
schema:
$ref: '#/components/schemas/HandleResponse'


/api/v1/ratis/election/transfer:
post:
tags:
Expand Down Expand Up @@ -573,6 +574,13 @@ components:
inNative:
type: boolean
description: Whether the thread is executing native code.
isDaemon:
type: boolean
description: Whether the thread is a daemon thread.
priority:
type: integer
format: int32
description: The priority of the thread.
required:
- threadId
- threadName
Expand Down
7 changes: 7 additions & 0 deletions openapi/openapi-client/src/main/openapi3/worker_rest_v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,13 @@ components:
inNative:
type: boolean
description: Whether the thread is executing native code.
isDaemon:
type: boolean
description: Whether the thread is a daemon thread.
priority:
type: integer
format: int32
description: The priority of the thread.
required:
- threadId
- threadName
Expand Down

0 comments on commit 4ce8c73

Please sign in to comment.