public class ClusterRequest extends Object implements Request
| Constructor and Description |
|---|
ClusterRequest() |
ClusterRequest(ClusterMetaData clusterMetaData) |
| Modifier and Type | Method and Description |
|---|---|
long |
getClusterMetaDataVersion() |
RequestType |
getRequestType() |
void |
readExternal(ObjectInput in)
Changes to this method must observe the optional
metaData version |
void |
setMetaData(ProtocolMetaData metaData)
Set the protocol metadata that can be used for versioned requests
|
void |
writeExternal(ObjectOutput out)
Changes to this method must observe the optional
metaData version |
public ClusterRequest()
public ClusterRequest(ClusterMetaData clusterMetaData)
public void setMetaData(ProtocolMetaData metaData)
RequestsetMetaData in interface RequestmetaData - ProtocolMetaDatapublic RequestType getRequestType()
getRequestType in interface Requestpublic long getClusterMetaDataVersion()
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
metaData versionreadExternal in interface ExternalizablereadExternal in interface RequestIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
metaData versionwriteExternal in interface ExternalizablewriteExternal in interface RequestIOExceptionCopyright © 1999-2014 The Apache Software Foundation. All Rights Reserved.