public class ExportService extends Object
| Constructor and Description |
|---|
ExportService(HiveConf hiveConf)
Create and configure the ExportService.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
await(long timeout,
TimeUnit unit)
Wait for termination of all submitted ExportJob to the ExportService.
|
long |
getTotalTaskEverExecuted()
Only for testing purpose.
|
boolean |
isExportServiceRunning()
Tells whether ExportService is started and configured.
|
void |
submit(ExportJob job)
Executes the submitted ExportJob
|
void |
waitForTasksToFinishAndShutdown()
Wait for all tasks submitted to ExecutorService threads to complete execution.
|
public ExportService(HiveConf hiveConf)
hiveConf - public boolean isExportServiceRunning()
public void submit(ExportJob job)
job - public boolean await(long timeout,
TimeUnit unit)
throws InterruptedException
timeout - indicates time to wait until all tasks complete executionunit - time unit for wait timeoutInterruptedExceptionpublic void waitForTasksToFinishAndShutdown()
throws HiveException
HiveExceptionpublic long getTotalTaskEverExecuted()
Copyright © 2024 The Apache Software Foundation. All rights reserved.