public class JolokiaClients extends Object
Constructor and Description |
---|
JolokiaClients() |
JolokiaClients(io.fabric8.kubernetes.client.KubernetesClient kubernetes) |
Modifier and Type | Method and Description |
---|---|
org.jolokia.client.J4pClient |
assertClientForReplicationController(String replicationControllerId,
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 serviceId,
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 replicationControllerId,
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 serviceId,
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 replicationControllerId,
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 serviceId,
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.
|
io.fabric8.kubernetes.client.KubernetesClient |
getKubernetes() |
String |
getPassword() |
io.fabric8.utils.Filter<io.fabric8.kubernetes.api.model.Pod> |
getPodFilter() |
String |
getUser() |
protected boolean |
hasDocker(io.fabric8.kubernetes.api.model.Pod pod)
Returns true if we detect we are running inside docker
|
void |
setPassword(String password) |
void |
setPodFilter(io.fabric8.utils.Filter<io.fabric8.kubernetes.api.model.Pod> podFilter) |
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 replicationControllerId, String namespace)
public org.jolokia.client.J4pClient assertClientForService(String serviceId, String namespace)
public org.jolokia.client.J4pClient clientForReplicationController(io.fabric8.kubernetes.api.model.ReplicationController replicationController)
public org.jolokia.client.J4pClient clientForReplicationController(String replicationControllerId, String namespace)
public List<org.jolokia.client.J4pClient> clientsForReplicationController(io.fabric8.kubernetes.api.model.ReplicationController replicationController)
public List<org.jolokia.client.J4pClient> clientsForReplicationController(String replicationControllerId, String namespace)
public org.jolokia.client.J4pClient clientForService(String serviceId, String namespace)
public org.jolokia.client.J4pClient clientForService(io.fabric8.kubernetes.api.model.Service service)
public List<org.jolokia.client.J4pClient> clientsForService(String serviceId, String namespace)
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 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)
protected org.jolokia.client.J4pClient createJolokiaClient(io.fabric8.kubernetes.api.model.Container container, String jolokiaUrl)
Copyright © 2011–2017 Red Hat. All rights reserved.