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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected QualifiedAgent
agent
The agent that wants to execute an activity on a specific runtime manager.protected URI[]
runtimeManagerURIs
The URIs of the runtime manager a specific agent wants to execute an activity on.
-
Constructor Summary
Constructors Constructor Description AgentUnknownException(QualifiedAgent agent, URI[] runtimeManagerURIs)
Creates a newAgentUnknownException
to indicate that the designated agent is not logged on to the designated runtime manager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.URI[]
getRuntimeManagerURIs()
Gets the URIs of the runtime manager a specific agent wants to execute an activity on but the agent is unknown.String
toString()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Field Detail
-
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 Detail
-
AgentUnknownException
public AgentUnknownException(QualifiedAgent agent, URI[] runtimeManagerURIs)
Creates a newAgentUnknownException
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 Detail
-
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.
-
-