public static class AsyncAgentController.AsyncAgentInfo
extends java.lang.Object
In-memory class for agent info
Modifier and Type | Field and Description |
---|---|
java.lang.String |
agentName |
java.lang.String |
agentResponse |
java.util.List<java.lang.String> |
audit |
java.lang.String |
dbPath |
java.lang.String |
logDocUnid |
io.vertx.core.json.JsonObject |
payload |
java.lang.Boolean |
runAsServer |
java.time.Instant |
startMoment |
AsyncAgentController.AgentState |
state |
KeepUser |
user |
java.lang.String |
uuid |
Constructor and Description |
---|
AsyncAgentInfo(java.lang.String uuid,
java.time.Instant startMoment,
java.lang.String logDocUnid,
java.lang.String dbPath,
java.lang.String agentName,
KeepUser user,
java.lang.Boolean runAsServer,
io.vertx.core.json.JsonObject payload)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addAgentResponse(java.lang.String response)
Adds a response from the agent
|
AsyncAgentController.AsyncAgentInfo |
appendToAudit(java.lang.String newAudit)
Used for an audit trail of what’s happening
|
AsyncAgentController.AsyncAgentInfo |
changeState(AsyncAgentController.AgentState incomingState)
Modify the current state of the in-memory object
|
io.vertx.core.json.JsonObject |
toJson()
Outputs the object as JSON.
|
java.lang.String |
toString() |
public final java.lang.String uuid
public final java.time.Instant startMoment
public final java.lang.String logDocUnid
public final KeepUser user
public final java.lang.Boolean runAsServer
public final java.lang.String dbPath
public final java.lang.String agentName
public final io.vertx.core.json.JsonObject payload
public java.lang.String agentResponse
public AsyncAgentController.AgentState state
public final java.util.List<java.lang.String> audit
public AsyncAgentInfo(java.lang.String uuid, java.time.Instant startMoment, java.lang.String logDocUnid, java.lang.String dbPath, java.lang.String agentName, KeepUser user, java.lang.Boolean runAsServer, io.vertx.core.json.JsonObject payload)
Constructor
uuid
- passed in the messagesstartMoment
- Instant the object was constructedlogDocUnid
- for NotesDocument in AgentScheduler databasedbPath
- for the agent to runagentName
- to runuser
- the call was initiated byrunAsServer
- to override running as the user who initiated the callpublic void addAgentResponse(java.lang.String response)
Adds a response from the agent
response
- to addpublic AsyncAgentController.AsyncAgentInfo appendToAudit(java.lang.String newAudit)
Used for an audit trail of what’s happening
newAudit
- to addpublic AsyncAgentController.AsyncAgentInfo changeState(AsyncAgentController.AgentState incomingState)
Modify the current state of the in-memory object
incomingState
- new statepublic io.vertx.core.json.JsonObject toJson()
Outputs the object as JSON. This and toString use the same format: - uuid - logDocUnid - state - username - runAsServer - dbPath - agentName - incoming - creation time
public java.lang.String toString()
toString
in class java.lang.Object