public class KubernetesManager extends Object implements KubernetesManagerMXBean
Modifier and Type | Field and Description |
---|---|
static ObjectName |
OBJECT_NAME |
Constructor and Description |
---|
KubernetesManager() |
Modifier and Type | Method and Description |
---|---|
String |
apply(String json)
Takes the blob of Kubernetes JSON (pod, replication controller, service, config, template etc)
and applies it to the runtime environment so that any changes or new items take effect
|
protected Controller |
createController() |
void |
destroy() |
String |
getDockerRegistry() |
KubernetesClient |
getKubernetes() |
String |
getReplicationControllerIdForPod(String podId)
Returns the replication controller ID for the given pod id if one can be found or null if not
|
void |
init() |
void |
setKubernetes(KubernetesClient kubernetes) |
public static ObjectName OBJECT_NAME
public void init()
public void destroy()
public String apply(String json) throws IOException
KubernetesManagerMXBean
apply
in interface KubernetesManagerMXBean
IOException
public String getDockerRegistry()
getDockerRegistry
in interface KubernetesManagerMXBean
public String getReplicationControllerIdForPod(String podId)
KubernetesManagerMXBean
getReplicationControllerIdForPod
in interface KubernetesManagerMXBean
public KubernetesClient getKubernetes()
public void setKubernetes(KubernetesClient kubernetes)
protected Controller createController()
Copyright © 2011–2014 Red Hat. All rights reserved.