aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/main/java/org/onap/vid/job/NextCommand.java
blob: 55f375bb730de6b29c755bcf6438764b5a29d5c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package org.onap.vid.job;

public class NextCommand {
    private final Job.JobStatus status;
    private final JobCommand command;

    public NextCommand(Job.JobStatus nextStatus, JobCommand nextCommand) {
        this.status = nextStatus;
        this.command = nextCommand;
    }

    public NextCommand(Job.JobStatus nextStatus) {
        this.status = nextStatus;
        this.command = null;
    }

    public Job.JobStatus getStatus() {
        return status;
    }

    public JobCommand getCommand() {
        return command;
    }

}