Package com.ganteater.ae
package com.ganteater.ae
Core runtime API for Anteater Environment (AE).
This package contains the public entry points for configuring an AE workspace, discovering
.recipe definitions, and executing them.
Key concepts
-
Workspace –
AEWorkspacerepresents a configured runtime context. It loads configuration (typically fromae-config.xml), initializes runtime state, executes setup/teardown nodes, and provides methods to run recipes. -
Recipe discovery –
RecipesScannerscans configured sources (directories, files, URLs, and archives) and registers discovered recipes. -
Execution –
RecipeRunnerdrives a single recipe run, executing the recipe through aProcessorand collecting status and output. -
Asynchronous runs –
TaskThreadcan execute aRecipeRunneron a background thread. -
External control –
CommandServerexposes a local socket interface for launching recipes and querying status from another process.
Typical usage
AEWorkspace workspace = new AEWorkspace();
workspace.loadConfiguration(true);
workspace.runSetupNodes();
RecipeRunner runner = workspace.runTask("MyRecipe", false);
if (runner.getStatus() == RecipeRunner.STATUS_FAILED) {
// Handle failure
}
workspace.close();
-
ClassDescriptionA simple test class loader capable of loading from multiple sources, such as local files or a URL.