public class JolokiaClients extends Object
Modifier and Type | Class and Description |
---|---|
static class |
JolokiaClients.AuthenticationMode |
Constructor and Description |
---|
JolokiaClients() |
JolokiaClients(io.fabric8.kubernetes.client.KubernetesClient kubernetes) |
Modifier and Type | Method and Description |
---|---|
org.jolokia.client.J4pClient |
assertClientForReplicationController(String replicationControllerName)
Returns a client for the first working pod for the given replication controller or throws an assertion error if one could not be found
|
org.jolokia.client.J4pClient |
assertClientForReplicationController(String replicationControllerName,
String namespace)
Returns a client for the first working pod for the given replication controller or throws an assertion error if one could not be found
|
org.jolokia.client.J4pClient |
assertClientForService(String serviceName)
Returns a client for the first working pod for the given service or throws an assertion error if one could not be found
|
org.jolokia.client.J4pClient |
assertClientForService(String serviceName,
String namespace)
Returns a client for the first working pod for the given service or throws an assertion error if one could not be found
|
org.jolokia.client.J4pClient |
clientForContainer(String host,
io.fabric8.kubernetes.api.model.Container container,
io.fabric8.kubernetes.api.model.Pod pod)
Returns the jolokia client for the given container
|
org.jolokia.client.J4pClient |
clientForPod(Iterable<io.fabric8.kubernetes.api.model.Pod> pods)
Returns a client for the first working pod in the collection
|
org.jolokia.client.J4pClient |
clientForPod(io.fabric8.kubernetes.api.model.Pod pod)
Returns the Jolokia client for the first container in the pod which exposes the jolokia port
|
org.jolokia.client.J4pClient |
clientForReplicationController(io.fabric8.kubernetes.api.model.ReplicationController replicationController)
Returns a client for the first working pod for the given replication controller
|
org.jolokia.client.J4pClient |
clientForReplicationController(String replicationControllerName)
Returns a client for the first working pod for the given replication controller
|
org.jolokia.client.J4pClient |
clientForReplicationController(String replicationControllerName,
String namespace)
Returns a client for the first working pod for the given replication controller
|
org.jolokia.client.J4pClient |
clientForService(io.fabric8.kubernetes.api.model.Service service)
Returns a client for the first working pod for the given service
|
org.jolokia.client.J4pClient |
clientForService(String serviceName)
Returns a client for the first working pod for the given service
|
org.jolokia.client.J4pClient |
clientForService(String serviceName,
String namespace)
Returns a client for the first working pod for the given service
|
List<org.jolokia.client.J4pClient> |
clientsForPod(Iterable<io.fabric8.kubernetes.api.model.Pod> pods)
Returns the clients for the running pods in the collection
|
List<org.jolokia.client.J4pClient> |
clientsForReplicationController(io.fabric8.kubernetes.api.model.ReplicationController replicationController)
Returns all the clients for the first working pod for the given replication controller
|
List<org.jolokia.client.J4pClient> |
clientsForReplicationController(String replicationControllerName,
String namespace)
Returns all the clients for the first working pod for the given replication controller
|
List<org.jolokia.client.J4pClient> |
clientsForService(io.fabric8.kubernetes.api.model.Service service)
Returns all the clients the first working pod for the given service
|
List<org.jolokia.client.J4pClient> |
clientsForService(String serviceName)
Returns all the clients for the first working pod for the given service
|
List<org.jolokia.client.J4pClient> |
clientsForService(String serviceName,
String namespace)
Returns all the clients for the first working pod for the given service
|
protected org.jolokia.client.J4pClient |
createJolokiaClient(io.fabric8.kubernetes.api.model.Container container,
String jolokiaUrl) |
protected org.jolokia.client.J4pClient |
createJolokiaClientFromHostAndPort(io.fabric8.kubernetes.api.model.Container container,
String host,
Integer hostPort) |
protected boolean |
filterPod(io.fabric8.kubernetes.api.model.Pod pod)
Strategy method to filter pods before creating clients for them.
|
JolokiaClients.AuthenticationMode |
getAuthenticationMode() |
io.fabric8.kubernetes.client.KubernetesClient |
getKubernetes() |
String |
getPassword() |
io.fabric8.utils.Filter<io.fabric8.kubernetes.api.model.Pod> |
getPodFilter() |
String |
getProtocol() |
String |
getUser() |
protected boolean |
hasDocker(io.fabric8.kubernetes.api.model.Pod pod)
Returns true if we detect we are running inside docker
|
boolean |
isUseKubeProxy() |
protected JolokiaClients.AuthenticationMode |
locateAuthenticationMode() |
protected String |
locateJolokiaProtocol()
Returns the jolokia protocol or detects it from the environment.
|
protected io.fabric8.kubernetes.api.model.ReplicationController |
requireReplicationController(String replicationControllerName,
String namespace) |
protected io.fabric8.kubernetes.api.model.Service |
requireService(String serviceName) |
protected io.fabric8.kubernetes.api.model.Service |
requireService(String serviceName,
String namespace) |
void |
setAuthenticationMode(JolokiaClients.AuthenticationMode authenticationMode) |
void |
setPassword(String password) |
void |
setPodFilter(io.fabric8.utils.Filter<io.fabric8.kubernetes.api.model.Pod> podFilter) |
void |
setProtocol(String protocol) |
void |
setUseKubeProxy(boolean useKubeProxy) |
void |
setUser(String user) |
public JolokiaClients()
public JolokiaClients(io.fabric8.kubernetes.client.KubernetesClient kubernetes)
public io.fabric8.kubernetes.client.KubernetesClient getKubernetes()
public org.jolokia.client.J4pClient assertClientForReplicationController(String replicationControllerName)
public org.jolokia.client.J4pClient assertClientForReplicationController(String replicationControllerName, String namespace)
public org.jolokia.client.J4pClient assertClientForService(String serviceName)
public org.jolokia.client.J4pClient assertClientForService(String serviceName, String namespace)
public org.jolokia.client.J4pClient clientForReplicationController(io.fabric8.kubernetes.api.model.ReplicationController replicationController)
public org.jolokia.client.J4pClient clientForReplicationController(String replicationControllerName, String namespace)
public org.jolokia.client.J4pClient clientForReplicationController(String replicationControllerName)
public List<org.jolokia.client.J4pClient> clientsForReplicationController(io.fabric8.kubernetes.api.model.ReplicationController replicationController)
public List<org.jolokia.client.J4pClient> clientsForReplicationController(String replicationControllerName, String namespace)
public org.jolokia.client.J4pClient clientForService(String serviceName, String namespace)
public org.jolokia.client.J4pClient clientForService(String serviceName)
public org.jolokia.client.J4pClient clientForService(io.fabric8.kubernetes.api.model.Service service)
public List<org.jolokia.client.J4pClient> clientsForService(String serviceName, String namespace)
public List<org.jolokia.client.J4pClient> clientsForService(String serviceName)
public List<org.jolokia.client.J4pClient> clientsForService(io.fabric8.kubernetes.api.model.Service service)
public org.jolokia.client.J4pClient clientForPod(Iterable<io.fabric8.kubernetes.api.model.Pod> pods)
public List<org.jolokia.client.J4pClient> clientsForPod(Iterable<io.fabric8.kubernetes.api.model.Pod> pods)
protected boolean filterPod(io.fabric8.kubernetes.api.model.Pod pod)
public org.jolokia.client.J4pClient clientForPod(io.fabric8.kubernetes.api.model.Pod pod)
public org.jolokia.client.J4pClient clientForContainer(String host, io.fabric8.kubernetes.api.model.Container container, io.fabric8.kubernetes.api.model.Pod pod)
protected org.jolokia.client.J4pClient createJolokiaClientFromHostAndPort(io.fabric8.kubernetes.api.model.Container container, String host, Integer hostPort)
protected boolean hasDocker(io.fabric8.kubernetes.api.model.Pod pod)
public String getUser()
public void setUser(String user)
public String getPassword()
public void setPassword(String password)
public boolean isUseKubeProxy()
public void setUseKubeProxy(boolean useKubeProxy)
public io.fabric8.utils.Filter<io.fabric8.kubernetes.api.model.Pod> getPodFilter()
public void setPodFilter(io.fabric8.utils.Filter<io.fabric8.kubernetes.api.model.Pod> podFilter)
public String getProtocol()
public void setProtocol(String protocol)
public JolokiaClients.AuthenticationMode getAuthenticationMode()
public void setAuthenticationMode(JolokiaClients.AuthenticationMode authenticationMode)
protected org.jolokia.client.J4pClient createJolokiaClient(io.fabric8.kubernetes.api.model.Container container, String jolokiaUrl)
protected String locateJolokiaProtocol()
protected JolokiaClients.AuthenticationMode locateAuthenticationMode()
protected io.fabric8.kubernetes.api.model.ReplicationController requireReplicationController(String replicationControllerName, String namespace)
protected io.fabric8.kubernetes.api.model.Service requireService(String serviceName)
Copyright © 2011–2018 Red Hat. All rights reserved.