Class RouterAdminProtocolServerSideTranslatorPB
java.lang.Object
org.apache.hadoop.hdfs.protocolPB.RouterAdminProtocolServerSideTranslatorPB
- All Implemented Interfaces:
org.apache.hadoop.hdfs.protocol.proto.RouterProtocolProtos.RouterAdminProtocolService.BlockingInterface,RouterAdminProtocolPB
@Private
@Stable
public class RouterAdminProtocolServerSideTranslatorPB
extends Object
implements RouterAdminProtocolPB
This class is used on the server side. Calls come across the wire for the for
protocol
RouterAdminProtocolPB. This class translates the PB data
types to the native data types used inside the HDFS Router as specified in
the generic RouterAdminProtocol.-
Constructor Summary
ConstructorsConstructorDescriptionConstructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.AddMountTableEntriesResponseProtoaddMountTableEntries(org.apache.hadoop.thirdparty.protobuf.RpcController controller, org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.AddMountTableEntriesRequestProto request) org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.AddMountTableEntryResponseProtoaddMountTableEntry(org.apache.hadoop.thirdparty.protobuf.RpcController controller, org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.AddMountTableEntryRequestProto request) org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.DisableNameserviceResponseProtodisableNameservice(org.apache.hadoop.thirdparty.protobuf.RpcController controller, org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.DisableNameserviceRequestProto request) org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.EnableNameserviceResponseProtoenableNameservice(org.apache.hadoop.thirdparty.protobuf.RpcController controller, org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.EnableNameserviceRequestProto request) org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.EnterSafeModeResponseProtoenterSafeMode(org.apache.hadoop.thirdparty.protobuf.RpcController controller, org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.EnterSafeModeRequestProto request) org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.GetDestinationResponseProtogetDestination(org.apache.hadoop.thirdparty.protobuf.RpcController controller, org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.GetDestinationRequestProto request) org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.GetDisabledNameservicesResponseProtogetDisabledNameservices(org.apache.hadoop.thirdparty.protobuf.RpcController controller, org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.GetDisabledNameservicesRequestProto request) org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.GetMountTableEntriesResponseProtogetMountTableEntries(org.apache.hadoop.thirdparty.protobuf.RpcController controller, org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.GetMountTableEntriesRequestProto request) Get matching mount table entries.org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.GetSafeModeResponseProtogetSafeMode(org.apache.hadoop.thirdparty.protobuf.RpcController controller, org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.GetSafeModeRequestProto request) org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.LeaveSafeModeResponseProtoleaveSafeMode(org.apache.hadoop.thirdparty.protobuf.RpcController controller, org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.LeaveSafeModeRequestProto request) org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.RefreshMountTableEntriesResponseProtorefreshMountTableEntries(org.apache.hadoop.thirdparty.protobuf.RpcController controller, org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.RefreshMountTableEntriesRequestProto request) org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.RefreshSuperUserGroupsConfigurationResponseProtorefreshSuperUserGroupsConfiguration(org.apache.hadoop.thirdparty.protobuf.RpcController controller, org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.RefreshSuperUserGroupsConfigurationRequestProto request) Refresh superuser proxy groups mappings.org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.RemoveMountTableEntryResponseProtoremoveMountTableEntry(org.apache.hadoop.thirdparty.protobuf.RpcController controller, org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.RemoveMountTableEntryRequestProto request) Remove an entry from the mount table.org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.UpdateMountTableEntryResponseProtoupdateMountTableEntry(org.apache.hadoop.thirdparty.protobuf.RpcController controller, org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.UpdateMountTableEntryRequestProto request) Update a single mount table entry.
-
Constructor Details
-
RouterAdminProtocolServerSideTranslatorPB
Constructor.- Parameters:
server- The NN server.- Throws:
IOException- if it cannot create the translator.
-
-
Method Details
-
addMountTableEntry
public org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.AddMountTableEntryResponseProto addMountTableEntry(org.apache.hadoop.thirdparty.protobuf.RpcController controller, org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.AddMountTableEntryRequestProto request) throws org.apache.hadoop.thirdparty.protobuf.ServiceException - Specified by:
addMountTableEntryin interfaceorg.apache.hadoop.hdfs.protocol.proto.RouterProtocolProtos.RouterAdminProtocolService.BlockingInterface- Throws:
org.apache.hadoop.thirdparty.protobuf.ServiceException
-
removeMountTableEntry
public org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.RemoveMountTableEntryResponseProto removeMountTableEntry(org.apache.hadoop.thirdparty.protobuf.RpcController controller, org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.RemoveMountTableEntryRequestProto request) throws org.apache.hadoop.thirdparty.protobuf.ServiceException Remove an entry from the mount table.- Specified by:
removeMountTableEntryin interfaceorg.apache.hadoop.hdfs.protocol.proto.RouterProtocolProtos.RouterAdminProtocolService.BlockingInterface- Throws:
org.apache.hadoop.thirdparty.protobuf.ServiceException
-
addMountTableEntries
public org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.AddMountTableEntriesResponseProto addMountTableEntries(org.apache.hadoop.thirdparty.protobuf.RpcController controller, org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.AddMountTableEntriesRequestProto request) throws org.apache.hadoop.thirdparty.protobuf.ServiceException - Specified by:
addMountTableEntriesin interfaceorg.apache.hadoop.hdfs.protocol.proto.RouterProtocolProtos.RouterAdminProtocolService.BlockingInterface- Throws:
org.apache.hadoop.thirdparty.protobuf.ServiceException
-
getMountTableEntries
public org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.GetMountTableEntriesResponseProto getMountTableEntries(org.apache.hadoop.thirdparty.protobuf.RpcController controller, org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.GetMountTableEntriesRequestProto request) throws org.apache.hadoop.thirdparty.protobuf.ServiceException Get matching mount table entries.- Specified by:
getMountTableEntriesin interfaceorg.apache.hadoop.hdfs.protocol.proto.RouterProtocolProtos.RouterAdminProtocolService.BlockingInterface- Throws:
org.apache.hadoop.thirdparty.protobuf.ServiceException
-
updateMountTableEntry
public org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.UpdateMountTableEntryResponseProto updateMountTableEntry(org.apache.hadoop.thirdparty.protobuf.RpcController controller, org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.UpdateMountTableEntryRequestProto request) throws org.apache.hadoop.thirdparty.protobuf.ServiceException Update a single mount table entry.- Specified by:
updateMountTableEntryin interfaceorg.apache.hadoop.hdfs.protocol.proto.RouterProtocolProtos.RouterAdminProtocolService.BlockingInterface- Throws:
org.apache.hadoop.thirdparty.protobuf.ServiceException
-
refreshSuperUserGroupsConfiguration
public org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.RefreshSuperUserGroupsConfigurationResponseProto refreshSuperUserGroupsConfiguration(org.apache.hadoop.thirdparty.protobuf.RpcController controller, org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.RefreshSuperUserGroupsConfigurationRequestProto request) throws org.apache.hadoop.thirdparty.protobuf.ServiceException Refresh superuser proxy groups mappings.- Specified by:
refreshSuperUserGroupsConfigurationin interfaceorg.apache.hadoop.hdfs.protocol.proto.RouterProtocolProtos.RouterAdminProtocolService.BlockingInterface- Throws:
org.apache.hadoop.thirdparty.protobuf.ServiceException
-
enterSafeMode
public org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.EnterSafeModeResponseProto enterSafeMode(org.apache.hadoop.thirdparty.protobuf.RpcController controller, org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.EnterSafeModeRequestProto request) throws org.apache.hadoop.thirdparty.protobuf.ServiceException - Specified by:
enterSafeModein interfaceorg.apache.hadoop.hdfs.protocol.proto.RouterProtocolProtos.RouterAdminProtocolService.BlockingInterface- Throws:
org.apache.hadoop.thirdparty.protobuf.ServiceException
-
leaveSafeMode
public org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.LeaveSafeModeResponseProto leaveSafeMode(org.apache.hadoop.thirdparty.protobuf.RpcController controller, org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.LeaveSafeModeRequestProto request) throws org.apache.hadoop.thirdparty.protobuf.ServiceException - Specified by:
leaveSafeModein interfaceorg.apache.hadoop.hdfs.protocol.proto.RouterProtocolProtos.RouterAdminProtocolService.BlockingInterface- Throws:
org.apache.hadoop.thirdparty.protobuf.ServiceException
-
getSafeMode
public org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.GetSafeModeResponseProto getSafeMode(org.apache.hadoop.thirdparty.protobuf.RpcController controller, org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.GetSafeModeRequestProto request) throws org.apache.hadoop.thirdparty.protobuf.ServiceException - Specified by:
getSafeModein interfaceorg.apache.hadoop.hdfs.protocol.proto.RouterProtocolProtos.RouterAdminProtocolService.BlockingInterface- Throws:
org.apache.hadoop.thirdparty.protobuf.ServiceException
-
disableNameservice
public org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.DisableNameserviceResponseProto disableNameservice(org.apache.hadoop.thirdparty.protobuf.RpcController controller, org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.DisableNameserviceRequestProto request) throws org.apache.hadoop.thirdparty.protobuf.ServiceException - Specified by:
disableNameservicein interfaceorg.apache.hadoop.hdfs.protocol.proto.RouterProtocolProtos.RouterAdminProtocolService.BlockingInterface- Throws:
org.apache.hadoop.thirdparty.protobuf.ServiceException
-
enableNameservice
public org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.EnableNameserviceResponseProto enableNameservice(org.apache.hadoop.thirdparty.protobuf.RpcController controller, org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.EnableNameserviceRequestProto request) throws org.apache.hadoop.thirdparty.protobuf.ServiceException - Specified by:
enableNameservicein interfaceorg.apache.hadoop.hdfs.protocol.proto.RouterProtocolProtos.RouterAdminProtocolService.BlockingInterface- Throws:
org.apache.hadoop.thirdparty.protobuf.ServiceException
-
getDisabledNameservices
public org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.GetDisabledNameservicesResponseProto getDisabledNameservices(org.apache.hadoop.thirdparty.protobuf.RpcController controller, org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.GetDisabledNameservicesRequestProto request) throws org.apache.hadoop.thirdparty.protobuf.ServiceException - Specified by:
getDisabledNameservicesin interfaceorg.apache.hadoop.hdfs.protocol.proto.RouterProtocolProtos.RouterAdminProtocolService.BlockingInterface- Throws:
org.apache.hadoop.thirdparty.protobuf.ServiceException
-
refreshMountTableEntries
public org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.RefreshMountTableEntriesResponseProto refreshMountTableEntries(org.apache.hadoop.thirdparty.protobuf.RpcController controller, org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.RefreshMountTableEntriesRequestProto request) throws org.apache.hadoop.thirdparty.protobuf.ServiceException - Specified by:
refreshMountTableEntriesin interfaceorg.apache.hadoop.hdfs.protocol.proto.RouterProtocolProtos.RouterAdminProtocolService.BlockingInterface- Throws:
org.apache.hadoop.thirdparty.protobuf.ServiceException
-
getDestination
public org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.GetDestinationResponseProto getDestination(org.apache.hadoop.thirdparty.protobuf.RpcController controller, org.apache.hadoop.hdfs.federation.protocol.proto.HdfsServerFederationProtos.GetDestinationRequestProto request) throws org.apache.hadoop.thirdparty.protobuf.ServiceException - Specified by:
getDestinationin interfaceorg.apache.hadoop.hdfs.protocol.proto.RouterProtocolProtos.RouterAdminProtocolService.BlockingInterface- Throws:
org.apache.hadoop.thirdparty.protobuf.ServiceException
-