Class ReconfigurationProtocolTranslatorPB
java.lang.Object
org.apache.hadoop.hdfs.protocolPB.ReconfigurationProtocolTranslatorPB
- All Implemented Interfaces:
Closeable,AutoCloseable,ReconfigurationProtocol,org.apache.hadoop.ipc.ProtocolMetaInterface,org.apache.hadoop.ipc.ProtocolTranslator
@Private
@Stable
public class ReconfigurationProtocolTranslatorPB
extends Object
implements org.apache.hadoop.ipc.ProtocolMetaInterface, ReconfigurationProtocol, org.apache.hadoop.ipc.ProtocolTranslator, Closeable
This class is the client side translator to translate the requests made on
ReconfigurationProtocol interfaces to the RPC server implementing
ReconfigurationProtocolPB.-
Field Summary
FieldsFields inherited from interface org.apache.hadoop.hdfs.protocol.ReconfigurationProtocol
VERSIONID -
Constructor Summary
ConstructorsConstructorDescriptionReconfigurationProtocolTranslatorPB(InetSocketAddress addr, org.apache.hadoop.security.UserGroupInformation ticket, org.apache.hadoop.conf.Configuration conf, SocketFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()org.apache.hadoop.conf.ReconfigurationTaskStatusGet the status of the previously issued reconfig task.booleanisMethodSupported(String methodName) Get a list of allowed properties for reconfiguration.voidAsynchronously reload configuration on disk and apply changes.
-
Field Details
-
LOG
public static final org.slf4j.Logger LOG
-
-
Constructor Details
-
ReconfigurationProtocolTranslatorPB
public ReconfigurationProtocolTranslatorPB(InetSocketAddress addr, org.apache.hadoop.security.UserGroupInformation ticket, org.apache.hadoop.conf.Configuration conf, SocketFactory factory) throws IOException - Throws:
IOException
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getUnderlyingProxyObject
- Specified by:
getUnderlyingProxyObjectin interfaceorg.apache.hadoop.ipc.ProtocolTranslator
-
startReconfiguration
Description copied from interface:ReconfigurationProtocolAsynchronously reload configuration on disk and apply changes.- Specified by:
startReconfigurationin interfaceReconfigurationProtocol- Throws:
IOException
-
getReconfigurationStatus
public org.apache.hadoop.conf.ReconfigurationTaskStatus getReconfigurationStatus() throws IOExceptionDescription copied from interface:ReconfigurationProtocolGet the status of the previously issued reconfig task.- Specified by:
getReconfigurationStatusin interfaceReconfigurationProtocol- Throws:
IOException- See Also:
-
ReconfigurationTaskStatus
-
listReconfigurableProperties
Description copied from interface:ReconfigurationProtocolGet a list of allowed properties for reconfiguration.- Specified by:
listReconfigurablePropertiesin interfaceReconfigurationProtocol- Throws:
IOException
-
isMethodSupported
- Specified by:
isMethodSupportedin interfaceorg.apache.hadoop.ipc.ProtocolMetaInterface- Throws:
IOException
-