Interface ProtocolManagerHandle


public interface ProtocolManagerHandle
SPI handle for protocol management.

This interface defines the core protocol management contract that Agent uses. The concrete implementation (ProtocolManager) lives in tnsai-coordination and is discovered via SpiLoader.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Factory for creating ProtocolManagerHandle instances.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the agent managed by this protocol manager.
    Gets all configured paradigm names.
    boolean
    hasParadigm(String paradigm)
    Checks if a paradigm is configured.
    boolean
    Checks if the protocol manager is started.
    void
    Starts all configured protocol handlers.
    void
    Stops all protocol handlers.
  • Method Details

    • start

      void start() throws TnsAIException
      Starts all configured protocol handlers.
      Throws:
      TnsAIException - if a handler fails to start
    • stop

      void stop()
      Stops all protocol handlers.
    • isStarted

      boolean isStarted()
      Checks if the protocol manager is started.
      Returns:
      true if started
    • hasParadigm

      boolean hasParadigm(String paradigm)
      Checks if a paradigm is configured.
      Parameters:
      paradigm - paradigm name (DIRECT, BROADCAST, PUBSUB, REQUEST_REPLY, DEBATE)
      Returns:
      true if configured
    • getParadigms

      Set<String> getParadigms()
      Gets all configured paradigm names.
      Returns:
      set of paradigm names
    • getAgent

      Agent getAgent()
      Gets the agent managed by this protocol manager.
      Returns:
      agent instance