Class AgentUnknownException

java.lang.Object
java.lang.Throwable
java.lang.Exception
de.aristaflow.adept2.model.execution.AgentUnknownException
All Implemented Interfaces:
Serializable

public class AgentUnknownException extends Exception
This exception indicates that the an agent is not known to a specific runtime manager and therefore can not execute activities on this runtime manager. Each agent must be logged on to execute activities. This is done by providing the corresponding client session factory which is used for signalling the states of an activity to the execution manager.
Author:
Ulrich Kreher
See Also:
  • Field Details

    • agent

      protected final QualifiedAgent agent
      The agent that wants to execute an activity on a specific runtime manager.
    • runtimeManagerURIs

      protected final URI[] runtimeManagerURIs
      The URIs of the runtime manager a specific agent wants to execute an activity on.
  • Constructor Details

    • AgentUnknownException

      public AgentUnknownException(QualifiedAgent agent, URI[] runtimeManagerURIs)
      Creates a new AgentUnknownException to indicate that the designated agent is not logged on to the designated runtime manager.
      Parameters:
      agent - The agent that wants to execute an activity on a specific runtime manager.
      runtimeManagerURIs - The URIs of the runtime manager a specific agent wants to execute an activity on.
  • Method Details

    • getAgent

      public QualifiedAgent getAgent()
      Gets the agent that wants to execute an activity on a specific runtime manager but the runtime manager does not know the agent.
      Returns:
      The agent that wants to execute an activity on a specific runtime manager.
    • getRuntimeManagerURIs

      public URI[] getRuntimeManagerURIs()
      Gets the URIs of the runtime manager a specific agent wants to execute an activity on but the agent is unknown.
      Returns:
      The URIs of the runtime manager a specific agent wants to execute an activity on.
    • toString

      public String toString()
      Overrides:
      toString in class Throwable