@@ -115,7 +115,7 @@ public void run() {
115
115
}
116
116
checkJobStatus (jobId );
117
117
118
- downloadIndexedAssetFilesFromJob (jobInfo );
118
+ downloadProcessedAssetFilesFromJob (jobInfo );
119
119
} catch (Exception e ) {
120
120
System .err .println ("Exception occured while running media processing job: "
121
121
+ e .getMessage ());
@@ -170,12 +170,12 @@ private synchronized void checkJobStatus(String jobId)
170
170
}
171
171
}
172
172
173
- private synchronized void downloadIndexedAssetFilesFromJob (JobInfo jobInfo )
173
+ private synchronized void downloadProcessedAssetFilesFromJob (JobInfo jobInfo )
174
174
throws ServiceException , URISyntaxException , FileNotFoundException , StorageException , IOException {
175
175
176
176
final ListResult <AssetInfo > outputAssets ;
177
177
outputAssets = service .list (Asset .list (jobInfo .getOutputAssetsLink ()));
178
- AssetInfo indexedAsset = outputAssets .get (0 );
178
+ AssetInfo processedAsset = outputAssets .get (0 );
179
179
final AccessPolicyInfo downloadAccessPolicy ;
180
180
final LocatorInfo downloadLocator ;
181
181
@@ -189,17 +189,17 @@ private synchronized void downloadIndexedAssetFilesFromJob(JobInfo jobInfo)
189
189
downloadLocator = service .create (
190
190
Locator .create (
191
191
downloadAccessPolicy .getId (),
192
- indexedAsset .getId (),
192
+ processedAsset .getId (),
193
193
LocatorType .SAS
194
194
)
195
195
);
196
196
197
- for (AssetFileInfo assetFile : service .list (AssetFile .list (indexedAsset .getAssetFilesLink ()))) {
197
+ for (AssetFileInfo assetFile : service .list (AssetFile .list (processedAsset .getAssetFilesLink ()))) {
198
198
String fileName = assetFile .getName ();
199
199
String outFileName =fileName ;
200
200
// Rename JobResult file not to overwrite it in the directory where all job output files are to be stored
201
201
if (fileName .equals ("JobResult.txt" )) {
202
- outFileName = "JobResult_" + indexedAsset .getName ();
202
+ outFileName = "JobResult_" + processedAsset .getName ();
203
203
}
204
204
String locatorPath = downloadLocator .getPath ();
205
205
int startOfSas = locatorPath .indexOf ("?" );
0 commit comments