public class KubernetesService extends io.hawt.util.MBeanSupport implements KubernetesServiceMXBean
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_DOCKER_HOST |
| Constructor and Description |
|---|
KubernetesService() |
| Modifier and Type | Method and Description |
|---|---|
static Pattern |
createKubernetesIdPattern(String kubernetesId) |
void |
destroy() |
protected String |
doFindIconPath(File rootFolder,
String kubernetesId) |
static boolean |
fileTextMatchesPattern(File file,
Pattern pattern)
Returns true if the text of the given file matches the regex
|
protected File |
findAppFolder(File fileOrDirectory,
Pattern pattern) |
protected File |
findAppFolder(File fileOrDirectory,
String kubernetesId) |
protected String |
getDefaultObjectName() |
String |
getDockerIp()
Returns the Docker Host (or IP address).
|
io.hawt.git.GitFacade |
getGit() |
String |
getHostName() |
String |
getKubernetesAddress()
Returns the Kubernetes Master REST API URL.
|
String |
iconPath(String branch,
String kubernetesId)
Returns the icon path for the given kubernetes ID and git branch or null if one cannot be found
|
void |
init() |
static String |
resolveDockerHost() |
static String |
resolveHttpDockerHost() |
void |
setGit(io.hawt.git.GitFacade git) |
public static final String DEFAULT_DOCKER_HOST
public void init()
throws Exception
init in class io.hawt.util.MBeanSupportExceptionpublic void destroy()
throws Exception
destroy in class io.hawt.util.MBeanSupportExceptionpublic String getDockerIp()
KubernetesServiceMXBeangetDockerIp in interface KubernetesServiceMXBeanprotected String getDefaultObjectName()
getDefaultObjectName in class io.hawt.util.MBeanSupportpublic String getKubernetesAddress()
KubernetesServiceMXBeanhttp://localhost:8080getKubernetesAddress in interface KubernetesServiceMXBeanpublic String getHostName()
getHostName in interface KubernetesServiceMXBeanpublic io.hawt.git.GitFacade getGit()
public void setGit(io.hawt.git.GitFacade git)
public String iconPath(String branch, String kubernetesId) throws Exception
KubernetesServiceMXBeaniconPath in interface KubernetesServiceMXBeanExceptionpublic static boolean fileTextMatchesPattern(File file, Pattern pattern)
public static String resolveHttpDockerHost()
public static String resolveDockerHost()
Copyright © 2018 JBoss by Red Hat. All rights reserved.