
Package ca.uhn.fhir.jpa.partition
Interface IPartitionLookupSvc
- All Known Implementing Classes:
PartitionLookupSvcImpl
public interface IPartitionLookupSvc
-
Method Summary
Modifier and TypeMethodDescriptioncreatePartition(PartitionEntity thePartition, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) voiddeletePartition(Integer thePartitionId) intWill generate a random unused partition ID.getPartitionById(Integer theId) getPartitionByName(String theName) voidvoidstart()This is mostly here for unit test purposes.updatePartition(PartitionEntity thePartition)
-
Method Details
-
start
void start()This is mostly here for unit test purposes. Regular code is not expected to call this method directly. -
getPartitionByName
@Nullable PartitionEntity getPartitionByName(String theName) throws ca.uhn.fhir.rest.server.exceptions.ResourceNotFoundException - Throws:
ca.uhn.fhir.rest.server.exceptions.ResourceNotFoundException- If the name is not known
-
getPartitionById
PartitionEntity getPartitionById(Integer theId) throws ca.uhn.fhir.rest.server.exceptions.ResourceNotFoundException - Throws:
ca.uhn.fhir.rest.server.exceptions.ResourceNotFoundException- If the ID is not known
-
invalidateCaches
void invalidateCaches() -
generateRandomUnusedPartitionId
Will generate a random unused partition ID. Validates that no partition with that ID exists before returning.- Returns:
- an integer, representing a random unused partition ID.
-
createPartition
PartitionEntity createPartition(PartitionEntity thePartition, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) -
updatePartition
-
deletePartition
-
listPartitions
-