Package i5.las2peer.security
Interface AgentStorage
- All Known Implementing Classes:
AgentContext
,BasicAgentStorage
,EthereumNode
,LocalNode
,Node
,PastryNodeImpl
public interface AgentStorage
Interface for agent storages.
-
Method Summary
-
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 storageAgentException
- If any other issue with the agent occurs, e. g. XML not readable
-
hasAgent
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
-