public class ServicePort extends ModelNodeAdapter implements IServicePort
| Constructor and Description |
|---|
ServicePort(org.jboss.dmr.ModelNode node) |
ServicePort(org.jboss.dmr.ModelNode node,
IServicePort port)
copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getName()
The name of the port
|
String |
getNodePort()
External service port
|
int |
getPort()
Port exposed by the service
|
String |
getProtocol()
IP protocol (TCP, UDP)
|
String |
getTargetPort()
The target port on the pod it services.
|
int |
hashCode() |
void |
setName(String name) |
void |
setNodePort(String nodePort) |
void |
setPort(int port) |
void |
setProtocol(String proto) |
void |
setTargetPort(int port) |
void |
setTargetPort(String name) |
String |
toString() |
getNode, getPropertyKeys, toJson, toJsonpublic ServicePort(org.jboss.dmr.ModelNode node)
public ServicePort(org.jboss.dmr.ModelNode node,
IServicePort port)
node - the node to copyport - the service ortpublic String getName()
IServicePortgetName in interface IServicePortpublic void setName(String name)
setName in interface IServicePortpublic String getTargetPort()
IServicePortgetTargetPort in interface IServicePortpublic void setTargetPort(int port)
setTargetPort in interface IServicePortpublic void setTargetPort(String name)
setTargetPort in interface IServicePortpublic void setPort(int port)
setPort in interface IServicePortpublic int getPort()
IServicePortgetPort in interface IServicePortpublic String getProtocol()
IServicePortgetProtocol in interface IServicePortpublic void setProtocol(String proto)
setProtocol in interface IServicePortpublic String getNodePort()
IServicePortgetNodePort in interface IServicePortpublic void setNodePort(String nodePort)
setNodePort in interface IServicePortpublic String toString()
toString in class ModelNodeAdapterCopyright © 2020 Red Hat, Inc. All Rights Reserved.