public class Client extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
connectTimeout |
protected Map<String,String> |
headers |
protected String |
info |
protected org.jgroups.logging.Log |
log |
protected String |
masterUrl |
protected int |
operationAttempts |
protected long |
operationSleep |
protected int |
readTimeout |
protected StreamProvider |
streamProvider |
Constructor and Description |
---|
Client(String masterUrl,
Map<String,String> headers,
int connectTimeout,
int readTimeout,
int operationAttempts,
long operationSleep,
StreamProvider streamProvider,
org.jgroups.logging.Log log) |
Modifier and Type | Method and Description |
---|---|
protected String |
fetchFromKubernetes(String op,
String namespace,
String labels,
boolean dump_requests) |
List<Pod> |
getPods(String namespace,
String labels,
boolean dump_requests) |
String |
info() |
protected List<Pod> |
parseJsonResult(String input,
String namespace,
String labels) |
protected final String masterUrl
protected final int connectTimeout
protected final int readTimeout
protected final int operationAttempts
protected final long operationSleep
protected final StreamProvider streamProvider
protected final String info
protected final org.jgroups.logging.Log log
public Client(String masterUrl, Map<String,String> headers, int connectTimeout, int readTimeout, int operationAttempts, long operationSleep, StreamProvider streamProvider, org.jgroups.logging.Log log)
public String info()
protected String fetchFromKubernetes(String op, String namespace, String labels, boolean dump_requests) throws Exception
Exception
public List<Pod> getPods(String namespace, String labels, boolean dump_requests) throws Exception
Exception
Copyright © 2019 JBoss by Red Hat. All rights reserved.