public abstract class AbstractProxy<P> extends Object implements Proxy
| Modifier and Type | Field and Description |
|---|---|
protected CubeOpenShiftConfiguration |
configuration |
| Constructor and Description |
|---|
AbstractProxy(CubeOpenShiftConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
ManagementHandle |
createManagementHandle(Map<String,String> labels) |
String |
findPod(Map<String,String> labels,
int index) |
protected abstract okhttp3.OkHttpClient |
getHttpClient() |
protected abstract String |
getName(P pod) |
protected abstract List<P> |
getPods(Map<String,String> labels) |
Set<String> |
getReadyPods(Map<String,String> labels) |
protected abstract boolean |
isReady(P pod) |
InputStream |
post(Map<String,String> labels,
int index,
int port,
String path) |
<T> T |
post(String url,
Class<T> returnType,
Object requestObject) |
InputStream |
post(String podName,
int port,
String path) |
InputStream |
post(String url,
String encoding,
byte[] bytes) |
void |
setDefaultSSLContext() |
int |
status(String url) |
String |
url(Map<String,String> labels,
int index,
int port,
String path,
String parameters) |
String |
url(String podName,
int port,
String path,
String parameters) |
String |
url(String podName,
String protocol,
int port,
String path,
String parameters) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSSLContextprotected final CubeOpenShiftConfiguration configuration
public AbstractProxy(CubeOpenShiftConfiguration configuration)
public ManagementHandle createManagementHandle(Map<String,String> labels)
createManagementHandle in interface Proxypublic void setDefaultSSLContext()
setDefaultSSLContext in interface Proxyprotected abstract boolean isReady(P pod)
public String url(Map<String,String> labels, int index, int port, String path, String parameters)
public Set<String> getReadyPods(Map<String,String> labels)
getReadyPods in interface Proxyprotected abstract okhttp3.OkHttpClient getHttpClient()
public InputStream post(String url, String encoding, byte[] bytes) throws IOException
post in interface ProxyIOExceptionpublic InputStream post(String podName, int port, String path) throws Exception
public InputStream post(Map<String,String> labels, int index, int port, String path) throws Exception
Copyright © 2018 JBoss by Red Hat. All rights reserved.