RouterProtocol.proto 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /**
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. */
  18. syntax = "proto2";
  19. option java_package = "org.apache.hadoop.hdfs.protocol.proto";
  20. option java_outer_classname = "RouterProtocolProtos";
  21. option java_generic_services = true;
  22. option java_generate_equals_and_hash = true;
  23. package hadoop.hdfs.router;
  24. import "FederationProtocol.proto";
  25. service RouterAdminProtocolService {
  26. /**
  27. * Add a mount table entry.
  28. */
  29. rpc addMountTableEntry(AddMountTableEntryRequestProto) returns(AddMountTableEntryResponseProto);
  30. /**
  31. * Update an existing mount table entry without copying files.
  32. */
  33. rpc updateMountTableEntry(UpdateMountTableEntryRequestProto) returns(UpdateMountTableEntryResponseProto);
  34. /**
  35. * Remove a mount table entry.
  36. */
  37. rpc removeMountTableEntry(RemoveMountTableEntryRequestProto) returns(RemoveMountTableEntryResponseProto);
  38. /**
  39. * Get matching mount entries
  40. */
  41. rpc getMountTableEntries(GetMountTableEntriesRequestProto) returns(GetMountTableEntriesResponseProto);
  42. /**
  43. * Transform Router state to safe mode state.
  44. */
  45. rpc enterSafeMode(EnterSafeModeRequestProto) returns (EnterSafeModeResponseProto);
  46. /**
  47. * Transform Router state from safe mode to running state.
  48. */
  49. rpc leaveSafeMode(LeaveSafeModeRequestProto) returns (LeaveSafeModeResponseProto);
  50. /**
  51. * Verify if current Router state is safe mode state.
  52. */
  53. rpc getSafeMode(GetSafeModeRequestProto) returns (GetSafeModeResponseProto);
  54. /**
  55. * Disable a name service.
  56. */
  57. rpc disableNameservice(DisableNameserviceRequestProto) returns (DisableNameserviceResponseProto);
  58. /**
  59. * Enable a name service.
  60. */
  61. rpc enableNameservice(EnableNameserviceRequestProto) returns (EnableNameserviceResponseProto);
  62. /**
  63. * Get the list of disabled name services.
  64. */
  65. rpc getDisabledNameservices(GetDisabledNameservicesRequestProto) returns (GetDisabledNameservicesResponseProto);
  66. }