Package org.apache.hadoop.ipc
Interface ProtocolMetaInterface
- All Known Implementing Classes:
GenericRefreshProtocolClientSideTranslatorPB,GetUserMappingsProtocolClientSideTranslatorPB,RefreshAuthorizationPolicyProtocolClientSideTranslatorPB,RefreshCallQueueProtocolClientSideTranslatorPB,RefreshUserMappingsProtocolClientSideTranslatorPB
@Private
@Stable
public interface ProtocolMetaInterface
This interface is implemented by the client side translators and can be used
to obtain information about underlying protocol e.g. to check if a method is
supported on the server side.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisMethodSupported(String methodName) Checks whether the given method name is supported by the server.
-
Method Details
-
isMethodSupported
Checks whether the given method name is supported by the server. It is assumed that all method names are unique for a protocol.- Parameters:
methodName- The name of the method- Returns:
- true if method is supported, otherwise false.
- Throws:
IOException- raised on errors performing I/O.
-