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
|
int |
getPort()
Port exposed by the service
|
String |
getProtocol()
IP protocol (TCP, UDP)
|
int |
getTargetPort()
The target port on the pod it services
|
int |
hashCode() |
void |
setName(String name) |
void |
setPort(int port) |
void |
setProtocol(String proto) |
void |
setTargetPort(int port) |
String |
toString() |
getNode, getPropertyKeys, toJson, toJsonpublic ServicePort(org.jboss.dmr.ModelNode node)
public ServicePort(org.jboss.dmr.ModelNode node,
IServicePort port)
the - node to copyspec - public String getName()
IServicePortgetName in interface IServicePortpublic void setName(String name)
setName in interface IServicePortpublic int getTargetPort()
IServicePortgetTargetPort in interface IServicePortpublic void setTargetPort(int port)
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 IServicePortCopyright © 2016 Red Hat, Inc. All rights reserved.