public class CollectorJobResult
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CollectorJobResult.Error
The class
CollectorJobResult.Error can be used to store all error related information which occur during
the processing of the CollectorJob implementation. |
Constructor and Description |
---|
CollectorJobResult(io.vertx.core.json.JsonObject o)
Is used by the generated DataCollectorService proxy.
|
CollectorJobResult(java.lang.String requestId,
java.lang.String source,
java.lang.String quality,
java.lang.String created,
io.vertx.core.json.JsonObject result,
CollectorJobResult.Error error)
This class stores the information which will be collected in the
CollectorJob implementation. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCreated() |
java.util.Optional<CollectorJobResult.Error> |
getError() |
java.lang.String |
getQuality() |
java.lang.String |
getRequestId() |
io.vertx.core.json.JsonObject |
getResult() |
java.lang.String |
getSource() |
int |
hashCode() |
io.vertx.core.json.JsonObject |
toJson() |
java.lang.String |
toString() |
public CollectorJobResult(io.vertx.core.json.JsonObject o)
o
- A JsonObject which contains all fields to create a CollectorJobResult
.public CollectorJobResult(java.lang.String requestId, java.lang.String source, java.lang.String quality, java.lang.String created, io.vertx.core.json.JsonObject result, CollectorJobResult.Error error)
CollectorJob
implementation.requestId
- The requestId from the CollectorJobRequest.source
- The source of the collected information.quality
- A String that express the quality of the collected data (e.g. complete, partial, ..).created
- A String which indicates when the result was created (e.g. in ISO 8601 format).result
- A JsonObject which contains the result of the CollectorJob
.error
- An Error object that stores all relevant information if an error occurs.public java.lang.String getRequestId()
public java.lang.String getSource()
public java.lang.String getQuality()
public java.lang.String getCreated()
public io.vertx.core.json.JsonObject getResult()
public java.util.Optional<CollectorJobResult.Error> getError()
public io.vertx.core.json.JsonObject toJson()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object