public class PartitionResponse extends Object
| Constructor and Description |
|---|
PartitionResponse() |
| Modifier and Type | Method and Description |
|---|---|
void |
addData(EntityResponse entResponse) |
void |
addStatus(String host,
Status status) |
List<EntityResponse> |
getData() |
Endpoint |
getEndpoint() |
Integer |
getSize() |
Map<String,Status> |
getStatus()
Extracts a key-value list containing exceptions accrued during the LDAP query
The key value is the actual endpoint's IP and the value is the Actual Exception object
Exception or null in case nu Exception was raised |
Status |
getStatus(String host)
Iterates over the Exception list and returns the one with the matching endpoint's IP
|
boolean |
hasError()
Iterates over the Exception list and returns true if primary and/or secondary have failures
|
boolean |
isAllError()
Iterates over the Exception list and returns true if both primary and secondary have failures
|
void |
setData(List<EntityResponse> data) |
void |
setEndpoint(Endpoint endpoint) |
void |
setStatus(Map<String,Status> status) |
public Integer getSize()
public List<EntityResponse> getData()
EntityResponse objects, which contains a kye-value representation of the query resultpublic void setData(List<EntityResponse> data)
data - A list of EntityResponse objects, which contains a kye-value representation of the query resultpublic void addData(EntityResponse entResponse)
public Endpoint getEndpoint()
Endpointpublic void setEndpoint(Endpoint endpoint)
public Map<String,Status> getStatus()
Exception or null in case nu Exception was raisedpublic Status getStatus(String host)
host - The IP of the requested endpointException object or null in case no Exception was raisedpublic boolean hasError()
public boolean isAllError()
Copyright © 2020. All rights reserved.