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.MBeanSupport
Exception
public void destroy() throws Exception
destroy
in class io.hawt.util.MBeanSupport
Exception
public String getDockerIp()
KubernetesServiceMXBean
getDockerIp
in interface KubernetesServiceMXBean
protected String getDefaultObjectName()
getDefaultObjectName
in class io.hawt.util.MBeanSupport
public String getKubernetesAddress()
KubernetesServiceMXBean
http://localhost:8080
getKubernetesAddress
in interface KubernetesServiceMXBean
public String getHostName()
getHostName
in interface KubernetesServiceMXBean
public io.hawt.git.GitFacade getGit()
public void setGit(io.hawt.git.GitFacade git)
public String iconPath(String branch, String kubernetesId) throws Exception
KubernetesServiceMXBean
iconPath
in interface KubernetesServiceMXBean
Exception
public static boolean fileTextMatchesPattern(File file, Pattern pattern)
public static String resolveHttpDockerHost()
public static String resolveDockerHost()
Copyright © 2020 JBoss by Red Hat. All rights reserved.