26 lines
610 B
Markdown
26 lines
610 B
Markdown
|
|
|||
|
## NameNode客户端协议详解
|
|||
|
|
|||
|
协议的定义主要在类NamenodeProtocols中。如下:
|
|||
|
|
|||
|
```java
|
|||
|
public interface NamenodeProtocols
|
|||
|
extends ClientProtocol,
|
|||
|
DatanodeProtocol,
|
|||
|
DatanodeLifelineProtocol,
|
|||
|
NamenodeProtocol,
|
|||
|
RefreshAuthorizationPolicyProtocol,
|
|||
|
ReconfigurationProtocol,
|
|||
|
RefreshUserMappingsProtocol,
|
|||
|
RefreshCallQueueProtocol,
|
|||
|
GenericRefreshProtocol,
|
|||
|
GetUserMappingsProtocol,
|
|||
|
HAServiceProtocol {
|
|||
|
}
|
|||
|
```
|
|||
|
其中NameNode相关的大多数在NamenodeProtocol当中。
|
|||
|
|
|||
|
### NamenodeProtocol 详解
|
|||
|
|
|||
|
|