Merge from ECOMP's repository
[vid.git] / vid-app-common / src / main / java / org / onap / vid / job / command / ResourceInProgressStatusCommand.java
1 package org.onap.vid.job.command;
2
3 import org.onap.vid.job.Job;
4 import org.onap.vid.job.NextCommand;
5 import org.onap.vid.job.impl.JobSharedData;
6 import org.springframework.beans.factory.config.ConfigurableBeanFactory;
7 import org.springframework.context.annotation.Scope;
8 import org.springframework.stereotype.Component;
9
10 @Component
11 @Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
12 public class ResourceInProgressStatusCommand extends BaseInProgressStatusCommand {
13
14     public ResourceInProgressStatusCommand() {
15     }
16
17     ResourceInProgressStatusCommand(JobSharedData sharedData, String requestId, String instanceId) {
18         init(sharedData, requestId, instanceId);
19     }
20
21     @Override
22     protected ExpiryChecker getExpiryChecker() {
23         return x->false;
24     }
25
26     @Override
27     protected NextCommand processJobStatus(Job.JobStatus jobStatus) {
28         return new NextCommand(jobStatus, this);
29     }
30
31
32 }