public class ClusterResponse extends Object implements Response
| Modifier and Type | Class and Description |
|---|---|
static class |
ClusterResponse.Code |
| Constructor and Description |
|---|
ClusterResponse() |
ClusterResponse(ClusterResponse.Code responseCode) |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getFailure() |
ClusterResponse.Code |
getResponseCode() |
ClusterMetaData |
getUpdatedMetaData() |
void |
readExternal(ObjectInput in) |
void |
setCurrent() |
void |
setFailure(Throwable failure) |
void |
setMetaData(ProtocolMetaData metaData)
Set the protocol metadata that can be used for version checking
|
void |
setUpdatedMetaData(ClusterMetaData updatedMetaData) |
void |
writeExternal(ObjectOutput out) |
public ClusterResponse(ClusterResponse.Code responseCode)
public ClusterResponse()
public void setMetaData(ProtocolMetaData metaData)
ResponsesetMetaData in interface ResponsemetaData - ProtocolMetaDatapublic ClusterResponse.Code getResponseCode()
public void setCurrent()
public void setUpdatedMetaData(ClusterMetaData updatedMetaData)
public ClusterMetaData getUpdatedMetaData()
public Throwable getFailure()
public void setFailure(Throwable failure)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in interface ResponseIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in interface ResponseIOExceptionCopyright © 1999-2014 The Apache Software Foundation. All Rights Reserved.