public class FederationRegistryClient extends Object
| Constructor and Description | 
|---|
| FederationRegistryClient(org.apache.hadoop.conf.Configuration conf,
                        org.apache.hadoop.registry.client.api.RegistryOperations registry,
                        org.apache.hadoop.security.UserGroupInformation user) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | cleanAllApplications()For testing, delete all application records in registry. | 
| List<String> | getAllApplications()Get the list of known applications in the registry. | 
| Map<String,org.apache.hadoop.security.token.Token<org.apache.hadoop.yarn.security.AMRMTokenIdentifier>> | loadStateFromRegistry(org.apache.hadoop.yarn.api.records.ApplicationId appId)Load the information of one application from registry. | 
| void | removeAppFromRegistry(org.apache.hadoop.yarn.api.records.ApplicationId appId)Remove an application from registry. | 
| boolean | writeAMRMTokenForUAM(org.apache.hadoop.yarn.api.records.ApplicationId appId,
                    String subClusterId,
                    org.apache.hadoop.security.token.Token<org.apache.hadoop.yarn.security.AMRMTokenIdentifier> token)Write/update the UAM token for an application and a sub-cluster. | 
public FederationRegistryClient(org.apache.hadoop.conf.Configuration conf,
                                org.apache.hadoop.registry.client.api.RegistryOperations registry,
                                org.apache.hadoop.security.UserGroupInformation user)
public List<String> getAllApplications()
public void cleanAllApplications()
public boolean writeAMRMTokenForUAM(org.apache.hadoop.yarn.api.records.ApplicationId appId,
                                    String subClusterId,
                                    org.apache.hadoop.security.token.Token<org.apache.hadoop.yarn.security.AMRMTokenIdentifier> token)
subClusterId - sub-cluster id of the tokentoken - the UAM of the applicationpublic Map<String,org.apache.hadoop.security.token.Token<org.apache.hadoop.yarn.security.AMRMTokenIdentifier>> loadStateFromRegistry(org.apache.hadoop.yarn.api.records.ApplicationId appId)
appId - application idpublic void removeAppFromRegistry(org.apache.hadoop.yarn.api.records.ApplicationId appId)
appId - application idCopyright © 2008–2023 Apache Software Foundation. All rights reserved.