@Override // ClientProtocol public long renewDelegationToken(Token<DelegationTokenIdentifier> token) throws InvalidToken, IOException { checkNNStartup(); return namesystem.renewDelegationToken(token); }
@Override public void setStoragePolicy(String src, String policyName) throws IOException { checkNNStartup(); namesystem.setStoragePolicy(src, policyName); }
@Override // ClientProtocol public void setPermission(String src, FsPermission permissions) throws IOException { checkNNStartup(); namesystem.setPermission(src, permissions); }
@Override // ClientProtocol public void setOwner(String src, String username, String groupname) throws IOException { checkNNStartup(); namesystem.setOwner(src, username, groupname); }
@Override // ClientProtocol public void refreshNodes() throws IOException { checkNNStartup(); namesystem.refreshNodes(); }
@Override // ClientProtocol public BatchedEntries<OpenFileEntry> listOpenFiles(long prevId, EnumSet<OpenFilesType> openFilesTypes, String path) throws IOException { checkNNStartup(); return namesystem.listOpenFiles(prevId, openFilesTypes, path); }
@Override // ClientProtocol public ContentSummary getContentSummary(String path) throws IOException { checkNNStartup(); return namesystem.getContentSummary(path); }
@Override // DatanodeProtocol, NamenodeProtocol public NamespaceInfo versionRequest() throws IOException { checkNNStartup(); return namesystem.getNamespaceInfo(); }
@Override // ClientProtocol public void removeAcl(String src) throws IOException { checkNNStartup(); namesystem.removeAcl(src); }
@Override // ClientProtocol public AclStatus getAclStatus(String src) throws IOException { checkNNStartup(); return namesystem.getAclStatus(src); }
@Override // ClientProtocol public EncryptionZone getEZForPath(String src) throws IOException { checkNNStartup(); return namesystem.getEZForPath(src); }
@Override // ClientProtocol public List<XAttr> listXAttrs(String src) throws IOException { checkNNStartup(); return namesystem.listXAttrs(src); }
@Override public DatanodeCommand cacheReport(DatanodeRegistration nodeReg, String poolId, List<Long> blockIds) throws IOException { checkNNStartup(); verifyRequest(nodeReg); if (blockStateChangeLog.isDebugEnabled()) { blockStateChangeLog.debug("*BLOCK* NameNode.cacheReport: " + "from " + nodeReg + " " + blockIds.size() + " blocks"); } namesystem.getCacheManager().processCacheReport(nodeReg, blockIds); return null; }
@Override // ClientProtocol public HdfsFileStatus getFileInfo(String src) throws IOException { checkNNStartup(); metrics.incrFileInfoOps(); return namesystem.getFileInfo(src, true, false, false); }
@Override // ClientProtocol public long[] getStats() throws IOException { checkNNStartup(); namesystem.checkOperation(OperationCategory.READ); return namesystem.getStats(); }
@Override // DatanodeLifelineProtocol public void sendLifeline(DatanodeRegistration nodeReg, StorageReport[] report, long dnCacheCapacity, long dnCacheUsed, int xmitsInProgress, int xceiverCount, int failedVolumes, VolumeFailureSummary volumeFailureSummary) throws IOException { checkNNStartup(); verifyRequest(nodeReg); namesystem.handleLifeline(nodeReg, report, dnCacheCapacity, dnCacheUsed, xceiverCount, xmitsInProgress, failedVolumes, volumeFailureSummary); }
@Override // ClientProtocol public BatchedEntries<CacheDirectiveEntry> listCacheDirectives(long prevId, CacheDirectiveInfo filter) throws IOException { checkNNStartup(); if (filter == null) { filter = new CacheDirectiveInfo.Builder().build(); } return namesystem.listCacheDirectives(prevId, filter); }
@Override // RefreshAuthorizationPolicyProtocol public void refreshServiceAcl() throws IOException { checkNNStartup(); if (!serviceAuthEnabled) { throw new AuthorizationException("Service Level Authorization not enabled!"); } this.clientRpcServer.refreshServiceAcl(new Configuration(), new HDFSPolicyProvider()); if (this.serviceRpcServer != null) { this.serviceRpcServer.refreshServiceAcl(new Configuration(), new HDFSPolicyProvider()); } namesystem.logAuditEvent(true, "refreshServiceAcl", null); }
@Override // NamenodeProtocol public long getTransactionID() throws IOException { checkNNStartup(); namesystem.checkOperation(OperationCategory.UNCHECKED); namesystem.checkSuperuserPrivilege(); return namesystem.getFSImage().getCorrectLastAppliedOrWrittenTxId(); }
@Override // NamenodeProtocol public RemoteEditLogManifest getEditLogManifest(long sinceTxId) throws IOException { checkNNStartup(); namesystem.checkOperation(OperationCategory.READ); namesystem.checkSuperuserPrivilege(); return namesystem.getEditLog().getEditLogManifest(sinceTxId); }