org.apache.hadoop.hbase.ipc
Class Invocation

java.lang.Object
  extended by org.apache.hadoop.io.VersionedWritable
      extended by 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.


Field Summary
protected  org.apache.hadoop.conf.Configuration conf
           
protected  String methodName
           
protected  Class[] parameterClasses
           
protected  Object[] parameters
           
 
Constructor Summary
Invocation()
           
Invocation(Method method, Class<? extends VersionedProtocol> declaringClass, Object[] parameters)
           
 
Method Summary
protected  int getClientMethodsHash()
           
 org.apache.hadoop.conf.Configuration getConf()
           
 String getMethodName()
           
 Class[] getParameterClasses()
           
 Object[] getParameters()
           
 long getRpcVersion()
          Returns the rpc version used by the client.
 byte getVersion()
           
 void readFields(DataInput in)
           
 void setConf(org.apache.hadoop.conf.Configuration conf)
           
 String toString()
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

methodName

protected String methodName

parameterClasses

protected Class[] parameterClasses

parameters

protected Object[] parameters

conf

protected org.apache.hadoop.conf.Configuration conf
Constructor Detail

Invocation

public Invocation()

Invocation

public Invocation(Method method,
                  Class<? extends VersionedProtocol> declaringClass,
                  Object[] parameters)
Method Detail

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 © 2014 The Apache Software Foundation. All Rights Reserved.