public class ClusterResponse extends java.lang.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 |
---|---|
java.lang.Throwable |
getFailure() |
ClusterResponse.Code |
getResponseCode() |
ClusterMetaData |
getUpdatedMetaData() |
void |
readExternal(java.io.ObjectInput in) |
void |
setCurrent() |
void |
setFailure(java.lang.Throwable failure) |
void |
setMetaData(ProtocolMetaData metaData)
Set the protocol metadata that can be used for version checking
|
void |
setUpdatedMetaData(ClusterMetaData updatedMetaData) |
void |
writeExternal(java.io.ObjectOutput out) |
public ClusterResponse(ClusterResponse.Code responseCode)
public ClusterResponse()
public void setMetaData(ProtocolMetaData metaData)
Response
setMetaData
in interface Response
metaData
- ProtocolMetaDatapublic ClusterResponse.Code getResponseCode()
public void setCurrent()
public void setUpdatedMetaData(ClusterMetaData updatedMetaData)
public ClusterMetaData getUpdatedMetaData()
public java.lang.Throwable getFailure()
public void setFailure(java.lang.Throwable failure)
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
readExternal
in interface Response
java.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in interface Response
java.io.IOException