Search in sources :

Example 1 with JobDataCache

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;
}
Also used : JobDataCache(org.dataportabilityproject.cloud.interfaces.JobDataCache) Importer(org.dataportabilityproject.dataModels.Importer)

Example 2 with JobDataCache

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;
}
Also used : Exporter(org.dataportabilityproject.dataModels.Exporter) JobDataCache(org.dataportabilityproject.cloud.interfaces.JobDataCache)

Aggregations

JobDataCache (org.dataportabilityproject.cloud.interfaces.JobDataCache)2 Exporter (org.dataportabilityproject.dataModels.Exporter)1 Importer (org.dataportabilityproject.dataModels.Importer)1