Skip to content

Commit

Permalink
optimize code override toString method
Browse files Browse the repository at this point in the history
  • Loading branch information
peacewong committed Nov 29, 2023
1 parent 87b29fe commit 8172e09
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,15 @@ public ServiceInstance getManagerInstance() {
public void setManagerInstance(ServiceInstance managerInstance) {
this.managerInstance = managerInstance;
}

@Override
public String toString() {
return "EngineAskAsyncResponse{"
+ "id='"
+ id
+ '\''
+ ", managerInstance="
+ managerInstance
+ '}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,23 @@ public NodeStatus getNodeStatus() {
public void setNodeStatus(NodeStatus nodeStatus) {
this.nodeStatus = nodeStatus;
}

@Override
public String toString() {
return "EngineConnReleaseRequest{"
+ "serviceInstance="
+ serviceInstance
+ ", user='"
+ user
+ '\''
+ ", msg='"
+ msg
+ '\''
+ ", nodeStatus="
+ nodeStatus
+ ", ticketId='"
+ ticketId
+ '\''
+ '}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,17 @@ public NodeStatus getStatus() {
public String getInitErrorMsg() {
return initErrorMsg;
}

@Override
public String toString() {
return "EngineConnStatusCallback{"
+ "serviceInstance="
+ serviceInstance
+ ", ticketId='"
+ ticketId
+ '\''
+ ", status="
+ status
+ '}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,9 @@ public Boolean getRetry() {
public void setRetry(Boolean retry) {
this.retry = retry;
}

@Override
public String toString() {
return "EngineCreateError{" + "id='" + id + '\'' + ", retry=" + retry + '}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,9 @@ public EngineNode getEngineNode() {
public void setEngineNode(EngineNode engineNode) {
this.engineNode = engineNode;
}

@Override
public String toString() {
return "EngineCreateSuccess{" + "id='" + id + '\'' + ", engineNode=" + engineNode + '}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,9 @@ public void setUser(String user) {
public String getUser() {
return user;
}

@Override
public String toString() {
return "EngineInfoClearRequest{" + "engineNode=" + engineNode + ", user='" + user + '\'' + '}';
}
}

0 comments on commit 8172e09

Please sign in to comment.