-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix encoding of shadowing activities (#600)
* Fix encoding of shadowing activities
- Loading branch information
Showing
15 changed files
with
465 additions
and
109 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
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
57 changes: 57 additions & 0 deletions
57
src/main/java/com/uber/cadence/internal/shadowing/ReplayWorkflowActivityParams.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,57 @@ | ||
/* | ||
* Modifications Copyright (c) 2017-2021 Uber Technologies Inc. | ||
* Copyright 2012-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"). You may not | ||
* use this file except in compliance with the License. A copy of the License is | ||
* located at | ||
* | ||
* http://aws.amazon.com/apache2.0 | ||
* | ||
* or in the "license" file accompanying this file. This file is distributed on | ||
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | ||
* express or implied. See the License for the specific language governing | ||
* permissions and limitations under the License. | ||
*/ | ||
package com.uber.cadence.internal.shadowing; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* This class is the JSON serializable class of {@link | ||
* com.uber.cadence.shadower.ReplayWorkflowActivityParams} Make sure this class is sync with auto | ||
* generated ReplayWorkflowActivityParams | ||
*/ | ||
public class ReplayWorkflowActivityParams { | ||
private String domain; | ||
private List<WorkflowExecution> executions; | ||
|
||
public ReplayWorkflowActivityParams() {} | ||
|
||
public String getDomain() { | ||
return domain; | ||
} | ||
|
||
public void setDomain(String domain) { | ||
this.domain = domain; | ||
} | ||
|
||
public List<WorkflowExecution> getExecutions() { | ||
return executions; | ||
} | ||
|
||
public void setExecutions(List<WorkflowExecution> executions) { | ||
this.executions = executions; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "ReplayWorkflowActivityParams{" | ||
+ "domain='" | ||
+ domain | ||
+ '\'' | ||
+ ", executions=" | ||
+ executions | ||
+ '}'; | ||
} | ||
} |
65 changes: 65 additions & 0 deletions
65
src/main/java/com/uber/cadence/internal/shadowing/ReplayWorkflowActivityResult.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,65 @@ | ||
/* | ||
* Modifications Copyright (c) 2017-2021 Uber Technologies Inc. | ||
* Copyright 2012-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"). You may not | ||
* use this file except in compliance with the License. A copy of the License is | ||
* located at | ||
* | ||
* http://aws.amazon.com/apache2.0 | ||
* | ||
* or in the "license" file accompanying this file. This file is distributed on | ||
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | ||
* express or implied. See the License for the specific language governing | ||
* permissions and limitations under the License. | ||
*/ | ||
package com.uber.cadence.internal.shadowing; | ||
|
||
/** | ||
* This class is the JSON serializable class of {@link | ||
* com.uber.cadence.shadower.ReplayWorkflowActivityResult} Make sure this class is sync with auto | ||
* generated ReplayWorkflowActivityResult | ||
*/ | ||
public class ReplayWorkflowActivityResult { | ||
private int succeeded; | ||
private int skipped; | ||
private int failed; | ||
|
||
public ReplayWorkflowActivityResult() {} | ||
|
||
public int getSucceeded() { | ||
return succeeded; | ||
} | ||
|
||
public void setSucceeded(int succeeded) { | ||
this.succeeded = succeeded; | ||
} | ||
|
||
public int getSkipped() { | ||
return skipped; | ||
} | ||
|
||
public void setSkipped(int skipped) { | ||
this.skipped = skipped; | ||
} | ||
|
||
public int getFailed() { | ||
return failed; | ||
} | ||
|
||
public void setFailed(int failed) { | ||
this.failed = failed; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "ReplayWorkflowActivityResult{" | ||
+ "succeeded=" | ||
+ succeeded | ||
+ ", skipped=" | ||
+ skipped | ||
+ ", failed=" | ||
+ failed | ||
+ '}'; | ||
} | ||
} |
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
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
91 changes: 91 additions & 0 deletions
91
src/main/java/com/uber/cadence/internal/shadowing/ScanWorkflowActivityParams.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,91 @@ | ||
/* | ||
* Modifications Copyright (c) 2017-2021 Uber Technologies Inc. | ||
* Copyright 2012-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"). You may not | ||
* use this file except in compliance with the License. A copy of the License is | ||
* located at | ||
* | ||
* http://aws.amazon.com/apache2.0 | ||
* | ||
* or in the "license" file accompanying this file. This file is distributed on | ||
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | ||
* express or implied. See the License for the specific language governing | ||
* permissions and limitations under the License. | ||
*/ | ||
package com.uber.cadence.internal.shadowing; | ||
|
||
import java.util.Arrays; | ||
|
||
/** | ||
* This class is the JSON serializable class of {@link | ||
* com.uber.cadence.shadower.ScanWorkflowActivityParams} Make sure this class is sync with auto | ||
* generated ScanWorkflowActivityParams | ||
*/ | ||
public class ScanWorkflowActivityParams { | ||
private String domain; | ||
private String workflowQuery; | ||
private double samplingRate; | ||
private int pageSize; | ||
private byte[] nextPageToken; | ||
|
||
public ScanWorkflowActivityParams() {} | ||
|
||
public String getDomain() { | ||
return domain; | ||
} | ||
|
||
public void setDomain(String domain) { | ||
this.domain = domain; | ||
} | ||
|
||
public String getWorkflowQuery() { | ||
return workflowQuery; | ||
} | ||
|
||
public void setWorkflowQuery(String workflowQuery) { | ||
this.workflowQuery = workflowQuery; | ||
} | ||
|
||
public double getSamplingRate() { | ||
return samplingRate; | ||
} | ||
|
||
public void setSamplingRate(double samplingRate) { | ||
this.samplingRate = samplingRate; | ||
} | ||
|
||
public int getPageSize() { | ||
return pageSize; | ||
} | ||
|
||
public void setPageSize(int pageSize) { | ||
this.pageSize = pageSize; | ||
} | ||
|
||
public byte[] getNextPageToken() { | ||
return nextPageToken; | ||
} | ||
|
||
public void setNextPageToken(byte[] nextPageToken) { | ||
this.nextPageToken = nextPageToken; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "ScanWorkflowActivityParams{" | ||
+ "domain='" | ||
+ domain | ||
+ '\'' | ||
+ ", workflowQuery='" | ||
+ workflowQuery | ||
+ '\'' | ||
+ ", samplingRate=" | ||
+ samplingRate | ||
+ ", pageSize=" | ||
+ pageSize | ||
+ ", nextPageToken=" | ||
+ Arrays.toString(nextPageToken) | ||
+ '}'; | ||
} | ||
} |
Oops, something went wrong.