-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[controller] [refactor] [JobRoutes] refactor JobRoutes https request …
…to JobStatusRequest
- Loading branch information
Whitney Deng
committed
Oct 17, 2024
1 parent
b106edb
commit c82b043
Showing
3 changed files
with
113 additions
and
27 deletions.
There are no files selected for viewing
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
74 changes: 74 additions & 0 deletions
74
...oller/src/main/java/com/linkedin/venice/controller/server/endpoints/JobStatusRequest.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,74 @@ | ||
package com.linkedin.venice.controller.server.endpoints; | ||
|
||
import static com.linkedin.venice.controllerapi.ControllerApiConstants.*; | ||
|
||
import com.linkedin.venice.utils.Utils; | ||
|
||
|
||
public class JobStatusRequest { | ||
private String cluster; | ||
private String store; | ||
private int versionNumber; | ||
private String incrementalPushVersion; | ||
private String targetedRegions; | ||
private String region; | ||
|
||
public JobStatusRequest() { | ||
} | ||
|
||
public void setCluster(String cluster) { | ||
this.cluster = cluster; | ||
} | ||
|
||
public String getCluster() { | ||
return cluster; | ||
} | ||
|
||
public void setStore(String store) { | ||
this.store = store; | ||
} | ||
|
||
public String getStore() { | ||
return store; | ||
} | ||
|
||
public void setVersionNumber(String versionNumber) { | ||
this.versionNumber = parseVersionNumber(versionNumber); | ||
} | ||
|
||
public void setVersionNumber(int versionNumber) { | ||
this.versionNumber = versionNumber; | ||
} | ||
|
||
private int parseVersionNumber(String versionNumber) { | ||
return Utils.parseIntFromString(versionNumber, VERSION); | ||
} | ||
|
||
public int getVersionNumber() { | ||
return versionNumber; | ||
} | ||
|
||
public void setIncrementalPushVersion(String incrementalPushVersion) { | ||
this.incrementalPushVersion = incrementalPushVersion; | ||
} | ||
|
||
public String getIncrementalPushVersion() { | ||
return incrementalPushVersion; | ||
} | ||
|
||
public void setTargetedRegions(String targetedRegions) { | ||
this.targetedRegions = targetedRegions; | ||
} | ||
|
||
public String getTargetedRegions() { | ||
return targetedRegions; | ||
} | ||
|
||
public void setRegion(String region) { | ||
this.region = region; | ||
} | ||
|
||
public String getRegion() { | ||
return region; | ||
} | ||
} |
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