Reclaims resources used by this instance of PigServer. This method deletes all temporary files generated by the current thread while executing Pig commands.
()
| 1349 | * executing Pig commands. |
| 1350 | */ |
| 1351 | public void shutdown() { |
| 1352 | // clean-up activities |
| 1353 | // TODO: reclaim scope to free up resources. Currently |
| 1354 | // this is not implemented and throws an exception |
| 1355 | // hence, for now, we won't call it. |
| 1356 | // |
| 1357 | // pigContext.getExecutionEngine().reclaimScope(this.scope); |
| 1358 | |
| 1359 | FileLocalizer.deleteTempFiles(); |
| 1360 | } |
| 1361 | |
| 1362 | /** |
| 1363 | * Get the set of all current aliases. |