public class DeploymentUtil extends Object
/vhosts/local-svc.leanix.net/deploy_current or
/vhosts/local-eam.leanix.net/deploy_current. In oder to use this class you have to specify:
* ETCD_SERVER : the etcd server, e.g. '192.168.59.103:4001' * CONTAINER_COLOR: 'green', 'blue' or 'white' * VIRTUAL_HOST : the virtual host name e.g. 'local-eam.leanix.net' (default: local-svc.leanix.net)
| Modifier and Type | Field and Description |
|---|---|
static String |
CONTAINER_COLOR |
static String |
ETCD_SERVER |
static String |
VIRTUAL_HOST |
| Constructor and Description |
|---|
DeploymentUtil() |
| Modifier and Type | Method and Description |
|---|---|
DeploymentColor |
getContainerColor()
Returns current container color if set.
|
DeploymentColor |
getContainerColorOrDefault(DeploymentColor defaultColor)
Returns current color or defaultColor if not set.
|
boolean |
isInstanceCurrentlyActive() |
public static final String VIRTUAL_HOST
public static final String CONTAINER_COLOR
public static final String ETCD_SERVER
public DeploymentColor getContainerColor()
public DeploymentColor getContainerColorOrDefault(DeploymentColor defaultColor)
defaultColor - public boolean isInstanceCurrentlyActive()
Copyright © 2017 LeanIX GmbH. All rights reserved.