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

  • WorkspaceAEWorkspace represents a configured runtime context. It loads configuration (typically from ae-config.xml), initializes runtime state, executes setup/teardown nodes, and provides methods to run recipes.
  • Recipe discoveryRecipesScanner scans configured sources (directories, files, URLs, and archives) and registers discovered recipes.
  • ExecutionRecipeRunner drives a single recipe run, executing the recipe through a Processor and collecting status and output.
  • Asynchronous runsTaskThread can execute a RecipeRunner on a background thread.
  • External controlCommandServer exposes 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();