@InterfaceAudience.Public @InterfaceStability.Unstable public class Service extends BaseResource
Constructor and Description |
---|
Service() |
Modifier and Type | Method and Description |
---|---|
void |
addComponent(Component component) |
Service |
artifact(Artifact artifact)
Artifact of single-component services.
|
Service |
components(List<Component> components)
Components of an service.
|
Service |
configuration(Configuration configuration)
Config properties of an service.
|
Service |
description(String description)
Description of the service.
|
Service |
dockerClientConfig(String dockerClientConfig) |
boolean |
equals(Object o) |
Artifact |
getArtifact() |
Component |
getComponent(String name) |
List<Component> |
getComponents() |
Configuration |
getConfiguration() |
List<String> |
getDependencies() |
String |
getDescription() |
String |
getDockerClientConfig()
The Docker client config for the service.
|
String |
getId() |
KerberosPrincipal |
getKerberosPrincipal()
The Kerberos Principal of the service.
|
Date |
getLaunchTime() |
Long |
getLifetime() |
String |
getName() |
Long |
getNumberOfRunningContainers() |
String |
getQueue() |
Map<String,String> |
getQuicklinks() |
Resource |
getResource() |
ServiceState |
getState() |
String |
getVersion() |
int |
hashCode() |
Service |
id(String id)
A unique service id.
|
Service |
kerberosPrincipal(KerberosPrincipal kerberosPrincipal) |
Service |
launchTime(Date launchTime)
The time when the service was created, e.g.
|
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 |
name(String name)
A unique service name.
|
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 |
queue(String queue)
The YARN queue that this service should be submitted to.
|
Service |
quicklinks(Map<String,String> quicklinks)
A blob of key-value pairs of quicklinks to be exported for an service.
|
Service |
resource(Resource resource)
Resource of single-component services or the global default for
multi-component services.
|
void |
setArtifact(Artifact artifact) |
void |
setComponents(List<Component> components) |
void |
setConfiguration(Configuration configuration) |
void |
setDependencies(List<String> dependencies) |
void |
setDescription(String description) |
void |
setDockerClientConfig(String dockerClientConfig) |
void |
setId(String id) |
void |
setKerberosPrincipal(KerberosPrincipal kerberosPrincipal) |
void |
setLaunchTime(Date launchTime) |
void |
setLifetime(Long lifetime) |
void |
setName(String name) |
void |
setNumberOfRunningContainers(Long numberOfRunningContainers) |
void |
setQueue(String queue) |
void |
setQuicklinks(Map<String,String> quicklinks) |
void |
setResource(Resource resource) |
void |
setState(ServiceState state) |
void |
setVersion(String version) |
Service |
state(ServiceState state)
State of the service.
|
String |
toString() |
Service |
version(String version)
Version of the service.
|
getUri, setUri
public String getName()
public void setName(String name)
public String getId()
public void setId(String id)
public String getVersion()
public void setVersion(String version)
public String getDescription()
public void setDescription(String description)
public Service artifact(Artifact artifact)
public Artifact getArtifact()
public void setArtifact(Artifact artifact)
public Service resource(Resource resource)
public Resource getResource()
public void setResource(Resource resource)
public Service launchTime(Date launchTime)
public Date getLaunchTime()
public void setLaunchTime(Date launchTime)
public Service numberOfRunningContainers(Long numberOfRunningContainers)
public Long getNumberOfRunningContainers()
public void setNumberOfRunningContainers(Long numberOfRunningContainers)
public Service lifetime(Long lifetime)
public Long getLifetime()
public void setLifetime(Long lifetime)
public void addComponent(Component component)
public Service configuration(Configuration configuration)
public Configuration getConfiguration()
public void setConfiguration(Configuration configuration)
public Service state(ServiceState state)
public ServiceState getState()
public void setState(ServiceState state)
public Service quicklinks(Map<String,String> quicklinks)
public String getQueue()
public void setQueue(String queue)
public Service kerberosPrincipal(KerberosPrincipal kerberosPrincipal)
public KerberosPrincipal getKerberosPrincipal()
public void setKerberosPrincipal(KerberosPrincipal kerberosPrincipal)
public String getDockerClientConfig()
public void setDockerClientConfig(String dockerClientConfig)
public String toString()
toString
in class BaseResource
Copyright © 2023 Apache Software Foundation. All rights reserved.