mirror of https://github.com/apache/lucene.git
tabs begone
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@897662 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2df8e5d5f5
commit
d4b18fa9c5
|
@ -20,63 +20,63 @@ import org.apache.solr.client.solrj.SolrResponse;
|
|||
import org.apache.solr.common.SolrException;
|
||||
|
||||
public final class ShardResponse {
|
||||
private ShardRequest req;
|
||||
private String shard;
|
||||
private String shardAddress; // the specific shard that this response was received from
|
||||
private int rspCode;
|
||||
private Throwable exception;
|
||||
private SolrResponse rsp;
|
||||
private ShardRequest req;
|
||||
private String shard;
|
||||
private String shardAddress; // the specific shard that this response was received from
|
||||
private int rspCode;
|
||||
private Throwable exception;
|
||||
private SolrResponse rsp;
|
||||
|
||||
public String toString() {
|
||||
return "ShardResponse:{shard="+shard+",shardAddress="+shardAddress
|
||||
+"\n\trequest=" + req
|
||||
+"\n\tresponse=" + rsp
|
||||
+ (exception==null ? "" : "\n\texception="+ SolrException.toStr(exception))
|
||||
+"\n}";
|
||||
}
|
||||
public String toString() {
|
||||
return "ShardResponse:{shard="+shard+",shardAddress="+shardAddress
|
||||
+"\n\trequest=" + req
|
||||
+"\n\tresponse=" + rsp
|
||||
+ (exception==null ? "" : "\n\texception="+ SolrException.toStr(exception))
|
||||
+"\n}";
|
||||
}
|
||||
|
||||
public Throwable getException()
|
||||
{
|
||||
return exception;
|
||||
}
|
||||
public Throwable getException()
|
||||
{
|
||||
return exception;
|
||||
}
|
||||
|
||||
public ShardRequest getShardRequest()
|
||||
{
|
||||
return req;
|
||||
}
|
||||
public ShardRequest getShardRequest()
|
||||
{
|
||||
return req;
|
||||
}
|
||||
|
||||
public SolrResponse getSolrResponse()
|
||||
{
|
||||
return rsp;
|
||||
}
|
||||
public SolrResponse getSolrResponse()
|
||||
{
|
||||
return rsp;
|
||||
}
|
||||
|
||||
public String getShard()
|
||||
{
|
||||
return shard;
|
||||
}
|
||||
public String getShard()
|
||||
{
|
||||
return shard;
|
||||
}
|
||||
|
||||
void setShardRequest(ShardRequest rsp)
|
||||
{
|
||||
this.req = rsp;
|
||||
}
|
||||
void setShardRequest(ShardRequest rsp)
|
||||
{
|
||||
this.req = rsp;
|
||||
}
|
||||
|
||||
void setSolrResponse(SolrResponse rsp)
|
||||
{
|
||||
this.rsp = rsp;
|
||||
}
|
||||
void setSolrResponse(SolrResponse rsp)
|
||||
{
|
||||
this.rsp = rsp;
|
||||
}
|
||||
|
||||
void setShard(String shard)
|
||||
{
|
||||
this.shard = shard;
|
||||
}
|
||||
void setShard(String shard)
|
||||
{
|
||||
this.shard = shard;
|
||||
}
|
||||
|
||||
void setException(Throwable exception)
|
||||
{
|
||||
this.exception = exception;
|
||||
}
|
||||
void setException(Throwable exception)
|
||||
{
|
||||
this.exception = exception;
|
||||
}
|
||||
|
||||
void setResponseCode(int rspCode)
|
||||
{
|
||||
this.rspCode = rspCode;
|
||||
}
|
||||
void setResponseCode(int rspCode)
|
||||
{
|
||||
this.rspCode = rspCode;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue