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, toJson
public ServicePort(org.jboss.dmr.ModelNode node)
public ServicePort(org.jboss.dmr.ModelNode node, IServicePort port)
the
- node to copyspec
- public String getName()
IServicePort
getName
in interface IServicePort
public void setName(String name)
setName
in interface IServicePort
public int getTargetPort()
IServicePort
getTargetPort
in interface IServicePort
public void setTargetPort(int port)
setTargetPort
in interface IServicePort
public void setPort(int port)
setPort
in interface IServicePort
public int getPort()
IServicePort
getPort
in interface IServicePort
public String getProtocol()
IServicePort
getProtocol
in interface IServicePort
public void setProtocol(String proto)
setProtocol
in interface IServicePort
Copyright © 2016 Red Hat, Inc. All rights reserved.