Package ca.uhn.fhir.batch2.coordinator
Class DefaultJobPartitionProvider
java.lang.Object
ca.uhn.fhir.batch2.coordinator.DefaultJobPartitionProvider
- All Implemented Interfaces:
IJobPartitionProvider
Default implementation which provides the
PartitionedUrl list for a certain operation request.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ca.uhn.fhir.context.FhirContextprotected final IRequestPartitionHelperSvc -
Constructor Summary
ConstructorsConstructorDescriptionDefaultJobPartitionProvider(ca.uhn.fhir.context.FhirContext theFhirContext, IRequestPartitionHelperSvc theRequestPartitionHelperSvc, ca.uhn.fhir.jpa.searchparam.MatchUrlService theMatchUrlService) DefaultJobPartitionProvider(IRequestPartitionHelperSvc theRequestPartitionHelperSvc) -
Method Summary
Modifier and TypeMethodDescriptionList<ca.uhn.fhir.interceptor.model.RequestPartitionId>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.
-
Field Details
-
myRequestPartitionHelper
-
myFhirContext
-
-
Constructor Details
-
DefaultJobPartitionProvider
-
DefaultJobPartitionProvider
public DefaultJobPartitionProvider(ca.uhn.fhir.context.FhirContext theFhirContext, IRequestPartitionHelperSvc theRequestPartitionHelperSvc, ca.uhn.fhir.jpa.searchparam.MatchUrlService theMatchUrlService)
-
-
Method Details
-
getPartitions
public List<ca.uhn.fhir.interceptor.model.RequestPartitionId> getPartitions(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, String theOperation) Description copied from interface:IJobPartitionProviderProvides the list of partitions to run job steps against, based on the request that initiates the job.- Specified by:
getPartitionsin interfaceIJobPartitionProvider- Parameters:
theRequestDetails- the requestDetailstheOperation- the operation being run which corresponds to the job- Returns:
- the list of partitions
-
getPartitionedUrls
public List<PartitionedUrl> getPartitionedUrls(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, List<String> theUrls) Description copied from interface:IJobPartitionProviderProvides the list ofPartitionedUrlto run job steps against, based on the request that initiates the job and the urls that it's configured with.- Specified by:
getPartitionedUrlsin interfaceIJobPartitionProvider- Parameters:
theRequestDetails- the requestDetailstheUrls- the urls to run the job against- Returns:
- the list of
PartitionedUrl
-
getAllPartitions
-