public class ServiceInstance extends Object
Service,
ServiceContext| Modifier and Type | Class and Description |
|---|---|
static class |
ServiceInstance.Status |
| Constructor and Description |
|---|
ServiceInstance() |
| Modifier and Type | Method and Description |
|---|---|
String |
getContainerId() |
String |
getContainerIp() |
String |
getContainerName() |
int |
getContainerPort() |
String |
getGatewayAddress()
Provides the ip or host name of the gateway to reach this svc instance.
|
int |
getGatewayPort()
Provides the gateway level port this instance is listening on.
|
String |
getIp()
Deprecated.
use the
getGatewayAddress() method instead. |
int |
getPort()
Deprecated.
use the
getGatewayPort() method instead. |
ServiceInstance.Status |
getStatus() |
String |
getStatusDetails() |
boolean |
hasStatus(ServiceInstance.Status status)
Checks whether the instance is in the specified status.
|
public String getContainerName()
public String getGatewayAddress()
mvn test -Ddocker.bridge.ip=172.17.0.1
public String getIp()
getGatewayAddress() method instead.public int getGatewayPort()
public int getPort()
getGatewayPort() method instead.public String getContainerId()
public String getContainerIp()
public int getContainerPort()
public ServiceInstance.Status getStatus()
public String getStatusDetails()
public boolean hasStatus(ServiceInstance.Status status)
status - the specified statusCopyright © 2021. All rights reserved.