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)
ResponsesetMetaData in interface ResponsemetaData - 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.ExternalizablereadExternal in interface Responsejava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in interface Responsejava.io.IOException