Class ScanResult

java.lang.Object
com.aispect.core.engine.bootstrap.scanner.ScanResult
All Implemented Interfaces:
AiScanResult

public class ScanResult extends Object implements AiScanResult
AiComponentScanner Scan result carrier.

accomplish AiScanResult contract. Carrying two types of information at the same time:

  • successful result:invocationCache — unified Agent cache registry, Store all scanned Unit Agent Handler and Graph Agent Orchestrator(core content).
  • error message:All configuration errors collected during the scan (reflection failures, phase conflicts, etc.).

  • Constructor Details

    • ScanResult

      public ScanResult()
  • Method Details

    • getInvocationCache

      public AgentInvocationCache<AiAgentFilter> getInvocationCache()
      Description copied from interface: AiScanResult
      get unified Agent Cache the registry.

      This is aispect-core One of the core assets submitted to the outside world after scanning. Hosts all scanned methods and corresponding proxy handlers (e.g. Unit / Graph)mapping relationship.

      Specified by:
      getInvocationCache in interface AiScanResult
      Returns:
      Global scheduling cache of agent and node resources
    • hasErrors

      public boolean hasErrors()
      Description copied from interface: AiScanResult
      Determine whether any configuration or parsing errors were found during the scan.
      Specified by:
      hasErrors in interface AiScanResult
      Returns:
      Returns if there is at least one error true
    • getErrors

      public List<String> getErrors()
      Description copied from interface: AiScanResult
      Get the complete error list information collected during the scan.
      Specified by:
      getErrors in interface AiScanResult
      Returns:
      Error message list