@InterfaceAudience.Public @InterfaceStability.Unstable public class Container extends BaseResource
Constructor and Description |
---|
Container() |
Modifier and Type | Method and Description |
---|---|
Container |
artifact(Artifact artifact)
Artifact used for this container.
|
Container |
bareHost(String bareHost)
The bare node or host in which the container is running, e.g.
|
Container |
componentInstanceName(String componentInstanceName)
Name of the component instance that this container instance belongs to.
|
boolean |
equals(Object o) |
Artifact |
getArtifact() |
String |
getBareHost() |
String |
getComponentInstanceName() |
Map<String,List<Map<String,String>>> |
getExposedPorts() |
String |
getHostname() |
String |
getId() |
String |
getIp() |
Date |
getLaunchTime() |
List<LocalizationStatus> |
getLocalizationStatuses()
Localization statuses.
|
Boolean |
getPrivilegedContainer() |
Resource |
getResource() |
ContainerState |
getState() |
int |
hashCode() |
Container |
hostname(String hostname)
Fully qualified hostname of a running container, e.g.
|
Container |
id(String id)
Unique container id of a running service, e.g.
|
Container |
ip(String ip)
IP address of a running container, e.g.
|
Container |
launchTime(Date launchTime)
The time when the container was created, e.g.
|
Container |
localizationStatuses(List<LocalizationStatus> statuses)
Sets the localization statuses and returns the container.
|
Container |
privilegedContainer(Boolean privilegedContainer)
Container running in privileged mode or not.
|
Container |
resource(Resource resource)
Resource used for this container.
|
void |
setArtifact(Artifact artifact) |
void |
setBareHost(String bareHost) |
void |
setComponentInstanceName(String componentInstanceName) |
void |
setExposedPorts(Map<String,List<Map<String,String>>> ports) |
void |
setHostname(String hostname) |
void |
setId(String id) |
void |
setIp(String ip) |
void |
setLaunchTime(Date launchTime) |
void |
setLocalizationStatuses(List<LocalizationStatus> statuses)
Sets the localization statuses.
|
void |
setPrivilegedContainer(Boolean privilegedContainer) |
void |
setResource(Resource resource) |
void |
setState(ContainerState state) |
Container |
state(ContainerState state)
State of the container of an service.
|
String |
toString() |
getUri, setUri
public Container id(String id)
public String getId()
public void setId(String id)
public Container launchTime(Date launchTime)
public Date getLaunchTime()
public void setLaunchTime(Date launchTime)
public Container ip(String ip)
public String getIp()
public void setIp(String ip)
public Container hostname(String hostname)
public String getHostname()
public void setHostname(String hostname)
public Container bareHost(String bareHost)
public String getBareHost()
public void setBareHost(String bareHost)
public Container state(ContainerState state)
public ContainerState getState()
public void setState(ContainerState state)
public Container componentInstanceName(String componentInstanceName)
public String getComponentInstanceName()
public void setComponentInstanceName(String componentInstanceName)
public Resource getResource()
public void setResource(Resource resource)
public Artifact getArtifact()
public void setArtifact(Artifact artifact)
public Container privilegedContainer(Boolean privilegedContainer)
public Boolean getPrivilegedContainer()
public void setPrivilegedContainer(Boolean privilegedContainer)
public List<LocalizationStatus> getLocalizationStatuses()
public void setLocalizationStatuses(List<LocalizationStatus> statuses)
statuses
- localization statuses.public Container localizationStatuses(List<LocalizationStatus> statuses)
statuses
- public String toString()
toString
in class BaseResource
Copyright © 2024 Apache Software Foundation. All rights reserved.