Interface AgentStorage

All Known Implementing Classes:
AgentContext, BasicAgentStorage, EthereumNode, LocalNode, Node, PastryNodeImpl

public interface AgentStorage
Interface for agent storages.
  • Method Summary

    Modifier and Type
    Method
    Description
    get an agent from this storage
    boolean
    does this storage know the requested agent? Does not refer to the backup storage if applicable
  • Method Details

    • getAgent

      get an agent from this storage
      Parameters:
      id - the agent id
      Returns:
      a new locked Agent instance
      Throws:
      AgentNotFoundException - If the agent is not found in this storage
      AgentException - If any other issue with the agent occurs, e. g. XML not readable
    • hasAgent

      boolean hasAgent(String id) throws AgentException
      does this storage know the requested agent? Does not refer to the backup storage if applicable
      Parameters:
      id -
      Returns:
      true, if this storage knows an agent of the given id
      Throws:
      AgentException - AgentException If any issue with the agent occurs, e. g. XML not readable