public class Pod extends KubernetesResource implements IPod
ANNOTATIONS, APIVERSION, CREATION_TIMESTAMP, FROM, KIND, LABELS, METADATA, METADATA_NAME, METADATA_NAMESPACE, METADATA_RESOURCE_VERSION, METADATA_UID, NAME, NAMESPACE, OBJECTS, PORTS, PROTOCOL, RESOURCE_VERSION, TYPE, VALUE| Constructor and Description |
|---|
Pod(org.jboss.dmr.ModelNode node,
IClient client,
Map<String,String[]> propertyKeys) |
| Modifier and Type | Method and Description |
|---|---|
IContainer |
addContainer(String name)
Adds a container with the given name.
|
Set<IPort> |
getContainerPorts()
Returns the ports that the containers of this pod are using.
|
Collection<IContainer> |
getContainers()
Returns all the containers for this pod.
|
String |
getHost()
Returns the hostname of the host on which the pod is running.
|
Collection<String> |
getImages()
Returns the names of the images that the containers of this pod are using.
|
String |
getIP()
Returns the IP of this pod.
|
String |
getStatus()
The logic of the method is a copied from 'podStatus' function of
[app/scripts/filters/resources.js] of [openshift/origin-web-console]
|
boolean |
isReady()
Returns
true if all containers of this pod are ready. |
accept, addLabel, asBoolean, asBoolean, asInt, asInt, asMap, asSet, asString, asString, equals, get, get, getAnnotation, getAnnotations, getApiVersion, getCapabilities, getCapability, getClient, getCreationTimeStamp, getEnvMap, getKind, getLabels, getMetadata, getModifiableCapabilities, getName, getNamespace, getNamespaceName, getNode, getPath, getProject, getPropertyKeys, getResourceVersion, has, hashCode, isAnnotatedWith, refresh, removeAnnotation, set, set, set, set, set, set, set, set, set, setAnnotation, setEnvMap, setName, setNamespace, setNode, supports, toJson, toJson, toPrettyString, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddLabel, getAnnotation, getAnnotations, getCapabilities, getCreationTimeStamp, getLabels, getMetadata, getName, getNamespace, getNamespaceName, getProject, getResourceVersion, isAnnotatedWith, removeAnnotation, setAnnotationaccept, getCapability, supportsgetApiVersiontoJson, toJsonpublic String getHost()
IPodpublic Collection<String> getImages()
IPodpublic String getStatus()
public Set<IPort> getContainerPorts()
IPodgetContainerPorts in interface IPodpublic IContainer addContainer(String name)
IPodaddContainer in interface IPodpublic Collection<IContainer> getContainers()
IPodgetContainers in interface IPodCopyright © 2019 Red Hat, Inc. All Rights Reserved.