Package ca.uhn.fhir.batch2.api
Interface IJobPartitionProvider
- All Known Implementing Classes:
DefaultJobPartitionProvider
public interface IJobPartitionProvider
Provides the list of
PartitionedUrl that a job should run against.-
Method Summary
Modifier and TypeMethodDescriptiondefault List<PartitionedUrl>getPartitionedUrls(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, List<String> theUrls) Provides the list ofPartitionedUrlto run job steps against, based on the request that initiates the job and the urls that it's configured with.List<ca.uhn.fhir.interceptor.model.RequestPartitionId>getPartitions(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, String theOperation) Provides the list of partitions to run job steps against, based on the request that initiates the job.
-
Method Details
-
getPartitions
List<ca.uhn.fhir.interceptor.model.RequestPartitionId> getPartitions(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, String theOperation) Provides the list of partitions to run job steps against, based on the request that initiates the job.- Parameters:
theRequestDetails- the requestDetailstheOperation- the operation being run which corresponds to the job- Returns:
- the list of partitions
-
getPartitionedUrls
default List<PartitionedUrl> getPartitionedUrls(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, List<String> theUrls) Provides the list ofPartitionedUrlto run job steps against, based on the request that initiates the job and the urls that it's configured with.- Parameters:
theRequestDetails- the requestDetailstheUrls- the urls to run the job against- Returns:
- the list of
PartitionedUrl
-