public class Pod extends KubernetesResource implements IPod
ANNOTATIONS, APIVERSION, CREATION_TIMESTAMP, FROM, KIND, LABELS, METADATA, METADATA_NAME, METADATA_NAMESPACE, METADATA_RESOURCE_VERSION, 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)
Add a container with the given name.
|
Set<IPort> |
getContainerPorts()
Retrieve the set of ports that the
containers are using
|
Collection<IContainer> |
getContainers()
Retrieve all the containers spec'd
for the pod
|
String |
getHost()
Gets the name of the host on which
the pod is running
|
Collection<String> |
getImages()
Gets the collection of image names
for the pod containers
|
String |
getIP()
Gets the IP of the 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]
|
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, 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, 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 © 2017 Red Hat, Inc. All Rights Reserved.