| Package | Description | 
|---|---|
| org.apache.hadoop.yarn.service.api.records | |
| org.apache.hadoop.yarn.service.client | Package org.apache.hadoop.yarn.service.client contains classes
 for YARN Services Client API. | 
| Modifier and Type | Method and Description | 
|---|---|
| Service | Service. artifact(Artifact artifact)Artifact of single-component services. | 
| Service | Service. components(List<Component> components)Components of an service. | 
| Service | Service. configuration(Configuration configuration)Config properties of an service. | 
| Service | Service. description(String description)Description of the service. | 
| Service | Service. dockerClientConfig(String dockerClientConfig) | 
| Service | Service. id(String id)A unique service id. | 
| Service | Service. kerberosPrincipal(KerberosPrincipal kerberosPrincipal) | 
| Service | Service. launchTime(Date launchTime)The time when the service was created, e.g. | 
| Service | Service. lifetime(Long lifetime)Life time (in seconds) of the service from the time it reaches the
 RUNNING_BUT_UNREADY state (after which it is automatically destroyed by YARN). | 
| Service | Service. name(String name)A unique service name. | 
| Service | Service. numberOfRunningContainers(Long numberOfRunningContainers)In get response this provides the total number of running containers for
 this service (across all components) at the time of request. | 
| Service | Service. queue(String queue)The YARN queue that this service should be submitted to. | 
| Service | Service. quicklinks(Map<String,String> quicklinks)A blob of key-value pairs of quicklinks to be exported for an service. | 
| Service | Service. resource(Resource resource)Resource of single-component services or the global default for
 multi-component services. | 
| Service | Service. state(ServiceState state)State of the service. | 
| Service | Service. version(String version)Version of the service. | 
| Modifier and Type | Method and Description | 
|---|---|
| Service | ServiceClient. getStatus(String serviceName) | 
| Service | ServiceClient. loadAppJsonFromLocalFS(String fileName,
                      String serviceName,
                      Long lifetime,
                      String queue) | 
| Modifier and Type | Method and Description | 
|---|---|
| int | ServiceClient. actionBuild(Service service) | 
| ApplicationId | ServiceClient. actionCreate(Service service) | 
| int | ServiceClient. actionUpgrade(Service service,
             List<Container> compInstances) | 
| int | ServiceClient. actionUpgradeExpress(Service service) | 
| int | ServiceClient. initiateUpgrade(Service service) | 
Copyright © 2023 Apache Software Foundation. All rights reserved.