Package | Description |
---|---|
org.ovirt.vdsm.jsonrpc.client | |
org.ovirt.vdsm.jsonrpc.client.internal | |
org.ovirt.vdsm.jsonrpc.client.utils |
Modifier and Type | Method and Description |
---|---|
JsonRpcResponse |
ResponseBuilder.build()
Builds
JsonRpcResponse based on provided id, result and error. |
static JsonRpcResponse |
JsonRpcResponse.fromByteArray(byte[] message)
Validates and builds
JsonRpcResponse based on provided json node. |
static JsonRpcResponse |
JsonRpcResponse.fromJsonNode(org.codehaus.jackson.JsonNode node)
Validates and builds
JsonRpcResponse based on provided json node. |
Modifier and Type | Method and Description |
---|---|
Future<List<JsonRpcResponse>> |
JsonRpcClient.batchCall(List<JsonRpcRequest> requests)
Sends requests in batch and returns
Future representation of JsonRpcResponse . |
Future<JsonRpcResponse> |
JsonRpcClient.call(JsonRpcRequest req)
Sends single request and returns
Future representation of JsonRpcResponse . |
Modifier and Type | Method and Description |
---|---|
void |
JsonRpcClient.processResponse(JsonRpcResponse response) |
Modifier and Type | Method and Description |
---|---|
void |
JsonRpcClient.removeCall(Future<JsonRpcResponse> call) |
Constructor and Description |
---|
ResponseDecomposer(JsonRpcResponse response)
Creates decomposer for a response.
|
Modifier and Type | Method and Description |
---|---|
JsonRpcResponse |
Call.get() |
JsonRpcResponse |
Call.get(long timeout,
TimeUnit unit) |
Modifier and Type | Method and Description |
---|---|
List<JsonRpcResponse> |
BatchCall.get() |
List<JsonRpcResponse> |
BatchCall.get(long time,
TimeUnit unit) |
Modifier and Type | Method and Description |
---|---|
void |
JsonRpcCall.addResponse(JsonRpcResponse response) |
void |
Call.addResponse(JsonRpcResponse response) |
void |
BatchCall.addResponse(JsonRpcResponse response) |
void |
ResponseTracker.processIssue(JsonRpcResponse response) |
Modifier and Type | Method and Description |
---|---|
static <T> JsonRpcResponse |
JsonUtils.buildErrorResponse(org.codehaus.jackson.JsonNode id,
T code,
String message) |
static JsonRpcResponse |
JsonUtils.buildFailedResponse(JsonRpcRequest request) |
Copyright © 2016. All rights reserved.