org.apache.hadoop.hbase.ipc
Class Invocation
java.lang.Object
org.apache.hadoop.io.VersionedWritable
org.apache.hadoop.hbase.ipc.Invocation
- All Implemented Interfaces:
- org.apache.hadoop.conf.Configurable, org.apache.hadoop.io.Writable
- Direct Known Subclasses:
- Exec
public class Invocation
- extends org.apache.hadoop.io.VersionedWritable
- implements org.apache.hadoop.conf.Configurable
A method invocation, including the method name and its parameters.
methodName
protected String methodName
parameterClasses
protected Class[] parameterClasses
parameters
protected Object[] parameters
conf
protected org.apache.hadoop.conf.Configuration conf
Invocation
public Invocation()
Invocation
public Invocation(Method method,
Class<? extends VersionedProtocol> declaringClass,
Object[] parameters)
getMethodName
public String getMethodName()
- Returns:
- The name of the method invoked.
getParameterClasses
public Class[] getParameterClasses()
- Returns:
- The parameter classes.
getParameters
public Object[] getParameters()
- Returns:
- The parameter instances.
getClientMethodsHash
protected int getClientMethodsHash()
getRpcVersion
public long getRpcVersion()
- Returns the rpc version used by the client.
- Returns:
- rpcVersion
readFields
public void readFields(DataInput in)
throws IOException
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Overrides:
readFields
in class org.apache.hadoop.io.VersionedWritable
- Throws:
IOException
write
public void write(DataOutput out)
throws IOException
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Overrides:
write
in class org.apache.hadoop.io.VersionedWritable
- Throws:
IOException
toString
public String toString()
- Overrides:
toString
in class Object
setConf
public void setConf(org.apache.hadoop.conf.Configuration conf)
- Specified by:
setConf
in interface org.apache.hadoop.conf.Configurable
getConf
public org.apache.hadoop.conf.Configuration getConf()
- Specified by:
getConf
in interface org.apache.hadoop.conf.Configurable
getVersion
public byte getVersion()
- Specified by:
getVersion
in class org.apache.hadoop.io.VersionedWritable
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.