Class JobService
- java.lang.Object
-
- com.synopsys.integration.polaris.common.service.JobService
-
public class JobService extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static long
DEFAULT_TIMEOUT
static int
DEFAULT_WAIT_INTERVAL
-
Constructor Summary
Constructors Constructor Description JobService(com.synopsys.integration.log.IntLogger logger, PolarisService polarisService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolarisResource<JobAttributes>
getJobByUrl(com.synopsys.integration.rest.HttpUrl jobApiUrl)
void
waitForJobStateIsCompletedOrDieByUrl(com.synopsys.integration.rest.HttpUrl jobApiUrl, long timeoutInSeconds, int waitIntervalInSeconds)
-
-
-
Field Detail
-
DEFAULT_TIMEOUT
public static final long DEFAULT_TIMEOUT
- See Also:
- Constant Field Values
-
DEFAULT_WAIT_INTERVAL
public static final int DEFAULT_WAIT_INTERVAL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JobService
public JobService(com.synopsys.integration.log.IntLogger logger, PolarisService polarisService)
-
-
Method Detail
-
getJobByUrl
public PolarisResource<JobAttributes> getJobByUrl(com.synopsys.integration.rest.HttpUrl jobApiUrl) throws com.synopsys.integration.exception.IntegrationException
- Throws:
com.synopsys.integration.exception.IntegrationException
-
waitForJobStateIsCompletedOrDieByUrl
public void waitForJobStateIsCompletedOrDieByUrl(com.synopsys.integration.rest.HttpUrl jobApiUrl, long timeoutInSeconds, int waitIntervalInSeconds) throws com.synopsys.integration.exception.IntegrationException, java.lang.InterruptedException
- Throws:
com.synopsys.integration.exception.IntegrationException
java.lang.InterruptedException
-
-