use of org.dataportabilityproject.cloud.interfaces.JobDataCache in project data-transfer-project by google.
the class ServiceProviderRegistry method getImporter.
@SuppressWarnings("unchecked")
public <T extends DataModel> Importer<T> getImporter(String serviceProvider, PortableDataType portableDataType, UUID jobId, AuthData authData) throws IOException {
JobDataCache jobDataCache = cloudFactory.getJobDataCache(jobId, serviceProvider);
Importer<? extends DataModel> importer = serviceProviders.get(serviceProvider).getImporter(portableDataType, authData, jobDataCache);
return (Importer<T>) importer;
}
use of org.dataportabilityproject.cloud.interfaces.JobDataCache in project data-transfer-project by google.
the class ServiceProviderRegistry method getExporter.
@SuppressWarnings("unchecked")
public <T extends DataModel> Exporter<T> getExporter(String serviceProvider, PortableDataType portableDataType, UUID jobId, AuthData authData) throws IOException {
JobDataCache jobDataCache = cloudFactory.getJobDataCache(jobId, serviceProvider);
Exporter<? extends DataModel> exporter = serviceProviders.get(serviceProvider).getExporter(portableDataType, authData, jobDataCache);
return (Exporter<T>) exporter;
}
Aggregations