public class ClientQcloudObjectStorageProtocolTranslatorPB extends Object implements ClientQcloudObjectStorageProtocol, org.apache.hadoop.ipc.ProtocolMetaInterface, Closeable, org.apache.hadoop.ipc.ProtocolTranslator
| Constructor and Description |
|---|
ClientQcloudObjectStorageProtocolTranslatorPB(ClientQcloudObjectStorageProtocolPB rpcProxy) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelDelegationToken(org.apache.hadoop.security.token.Token<DelegationTokenIdentifier> token)
Cancel an existing delegation token.
|
org.apache.hadoop.fs.cosn.ranger.security.authorization.PermissionResponse |
checkPermission(org.apache.hadoop.fs.cosn.ranger.security.authorization.PermissionRequest request)
Check Permission.
|
void |
close() |
org.apache.hadoop.fs.cosn.ranger.security.node.CosRangerNodeResponse |
getAvailableService()
Get Cos Ranger Leader Address And All Cos Ranger Address
|
org.apache.hadoop.security.token.Token<DelegationTokenIdentifier> |
getDelegationToken(org.apache.hadoop.io.Text renewer)
Get a valid Delegation Token.
|
org.apache.hadoop.fs.cosn.ranger.security.authorization.RangerAuthPolicyResponse |
getRangerAuthPolicy()
Get Ranger Auth And Policy URL
|
org.apache.hadoop.fs.cosn.ranger.security.sts.GetSTSResponse |
getSTS(org.apache.hadoop.fs.cosn.ranger.security.sts.GetSTSRequest request)
Check Permission.
|
Object |
getUnderlyingProxyObject() |
boolean |
isMethodSupported(String methodName) |
long |
renewDelegationToken(org.apache.hadoop.security.token.Token<DelegationTokenIdentifier> token)
Renew an existing delegation token.
|
public ClientQcloudObjectStorageProtocolTranslatorPB(ClientQcloudObjectStorageProtocolPB rpcProxy)
public org.apache.hadoop.security.token.Token<DelegationTokenIdentifier> getDelegationToken(org.apache.hadoop.io.Text renewer) throws IOException
ClientQcloudObjectStorageProtocolgetDelegationToken in interface ClientQcloudObjectStorageProtocolrenewer - the designated renewer for the tokenIOExceptionpublic long renewDelegationToken(org.apache.hadoop.security.token.Token<DelegationTokenIdentifier> token) throws IOException
ClientQcloudObjectStorageProtocolrenewDelegationToken in interface ClientQcloudObjectStorageProtocoltoken - delegation token obtained earlierIOExceptionpublic void cancelDelegationToken(org.apache.hadoop.security.token.Token<DelegationTokenIdentifier> token) throws IOException
ClientQcloudObjectStorageProtocolcancelDelegationToken in interface ClientQcloudObjectStorageProtocoltoken - delegation tokenIOExceptionpublic org.apache.hadoop.fs.cosn.ranger.security.authorization.PermissionResponse checkPermission(org.apache.hadoop.fs.cosn.ranger.security.authorization.PermissionRequest request)
throws IOException
ClientQcloudObjectStorageProtocolcheckPermission in interface ClientQcloudObjectStorageProtocolrequest - permission requestIOExceptionpublic org.apache.hadoop.fs.cosn.ranger.security.sts.GetSTSResponse getSTS(org.apache.hadoop.fs.cosn.ranger.security.sts.GetSTSRequest request)
throws IOException
ClientQcloudObjectStorageProtocolgetSTS in interface ClientQcloudObjectStorageProtocolrequest - get sts requestIOExceptionpublic org.apache.hadoop.fs.cosn.ranger.security.authorization.RangerAuthPolicyResponse getRangerAuthPolicy()
throws IOException
ClientQcloudObjectStorageProtocolgetRangerAuthPolicy in interface ClientQcloudObjectStorageProtocolIOExceptionpublic org.apache.hadoop.fs.cosn.ranger.security.node.CosRangerNodeResponse getAvailableService()
throws IOException
ClientQcloudObjectStorageProtocolgetAvailableService in interface ClientQcloudObjectStorageProtocolIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic boolean isMethodSupported(String methodName) throws IOException
isMethodSupported in interface org.apache.hadoop.ipc.ProtocolMetaInterfaceIOExceptionpublic Object getUnderlyingProxyObject()
getUnderlyingProxyObject in interface org.apache.hadoop.ipc.ProtocolTranslatorCopyright © 2022. All rights reserved.