org.apache.hadoop.ipc.protocolPB
Class GenericRefreshProtocolClientSideTranslatorPB

java.lang.Object
  extended by org.apache.hadoop.ipc.protocolPB.GenericRefreshProtocolClientSideTranslatorPB
All Implemented Interfaces:
Closeable, org.apache.hadoop.ipc.GenericRefreshProtocol, org.apache.hadoop.ipc.ProtocolMetaInterface

public class GenericRefreshProtocolClientSideTranslatorPB
extends Object
implements org.apache.hadoop.ipc.ProtocolMetaInterface, org.apache.hadoop.ipc.GenericRefreshProtocol, Closeable


Field Summary
 
Fields inherited from interface org.apache.hadoop.ipc.GenericRefreshProtocol
versionID
 
Constructor Summary
GenericRefreshProtocolClientSideTranslatorPB(org.apache.hadoop.ipc.protocolPB.GenericRefreshProtocolPB rpcProxy)
           
 
Method Summary
 void close()
           
 boolean isMethodSupported(String methodName)
          Checks whether the given method name is supported by the server.
 Collection<RefreshResponse> refresh(String identifier, String[] args)
          Refresh the resource based on identity passed in.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericRefreshProtocolClientSideTranslatorPB

public GenericRefreshProtocolClientSideTranslatorPB(org.apache.hadoop.ipc.protocolPB.GenericRefreshProtocolPB rpcProxy)
Method Detail

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Throws:
IOException

refresh

public Collection<RefreshResponse> refresh(String identifier,
                                           String[] args)
                                    throws IOException
Description copied from interface: org.apache.hadoop.ipc.GenericRefreshProtocol
Refresh the resource based on identity passed in.

Specified by:
refresh in interface org.apache.hadoop.ipc.GenericRefreshProtocol
Throws:
IOException

isMethodSupported

public boolean isMethodSupported(String methodName)
                          throws IOException
Description copied from interface: org.apache.hadoop.ipc.ProtocolMetaInterface
Checks whether the given method name is supported by the server. It is assumed that all method names are unique for a protocol.

Specified by:
isMethodSupported in interface org.apache.hadoop.ipc.ProtocolMetaInterface
Parameters:
methodName - The name of the method
Returns:
true if method is supported, otherwise false.
Throws:
IOException


Copyright © 2014 Apache Software Foundation. All Rights Reserved.