1313 * See the License for the specific language governing permissions and
1414 * limitations under the License.
1515 */
16- package io .flamingock .internal . common . cloud .planner .response ;
16+ package io .flamingock .cloud .api .response ;
1717
18- import io .flamingock .internal . common . cloud .vo .ActionResponse ;
18+ import io .flamingock .cloud .api . vo .ExecutionAction ;
1919
2020import java .util .Collections ;
2121import java .util .List ;
2222
2323public class ExecutionPlanResponse {
2424
2525
26- private ActionResponse action ;
26+ private ExecutionAction action ;
2727
2828 private String executionId ;
2929
30- private LockResponse lock ;
30+ private LockInfo lock ;
3131
3232 private List <StageResponse > stages ;
3333
3434
3535 public ExecutionPlanResponse () {
3636 }
3737
38- public ExecutionPlanResponse (ActionResponse action ,
38+ public ExecutionPlanResponse (ExecutionAction action ,
3939 String executionId ,
40- LockResponse lock ) {
40+ LockInfo lock ) {
4141 this (action , executionId , lock , Collections .emptyList ());
4242 }
4343
44- public ExecutionPlanResponse (ActionResponse action ,
44+ public ExecutionPlanResponse (ExecutionAction action ,
4545 String executionId ,
46- LockResponse lock ,
46+ LockInfo lock ,
4747 List <StageResponse > stages ) {
4848 this .action = action ;
4949 this .executionId = executionId ;
5050 this .lock = lock ;
5151 this .stages = stages ;
5252 }
5353
54- public void setAction (ActionResponse action ) {
54+ public void setAction (ExecutionAction action ) {
5555 this .action = action ;
5656 }
5757
@@ -63,11 +63,11 @@ public void setExecutionId(String executionId) {
6363 this .executionId = executionId ;
6464 }
6565
66- public LockResponse getLock () {
66+ public LockInfo getLock () {
6767 return lock ;
6868 }
6969
70- public void setLock (LockResponse lock ) {
70+ public void setLock (LockInfo lock ) {
7171 this .lock = lock ;
7272 }
7373
@@ -80,19 +80,19 @@ public void setStages(List<StageResponse> stages) {
8080 }
8181
8282 public boolean isContinue () {
83- return action == ActionResponse .CONTINUE ;
83+ return action == ExecutionAction .CONTINUE ;
8484 }
8585
86- public ActionResponse getAction () {
86+ public ExecutionAction getAction () {
8787 return action ;
8888 }
8989
9090 public boolean isExecute () {
91- return action == ActionResponse .EXECUTE ;
91+ return action == ExecutionAction .EXECUTE ;
9292 }
9393
9494 public boolean isAwait () {
95- return action == ActionResponse .AWAIT ;
95+ return action == ExecutionAction .AWAIT ;
9696 }
9797
9898 public void validate () {
0 commit comments