public class BaseClient extends Object implements Client
| Constructor and Description |
|---|
BaseClient() |
BaseClient(com.ning.http.client.AsyncHttpClient httpClient,
Config config) |
BaseClient(Config config) |
BaseClient(String masterUrl) |
| Modifier and Type | Method and Description |
|---|---|
<C extends Client> |
adapt(Class<C> type) |
void |
close() |
String |
getApiVersion() |
Config |
getConfiguration() |
com.ning.http.client.AsyncHttpClient |
getHttpClient() |
URL |
getMasterUrl() |
String |
getNamespace() |
<C extends Client> |
isAdaptable(Class<C> type)
Checks if the client can be adapted to an other client type.
|
io.fabric8.kubernetes.api.model.RootPaths |
rootPaths() |
<T> T |
unmarshal(InputStream is,
Class<T> type) |
public BaseClient()
throws KubernetesClientException
KubernetesClientExceptionpublic BaseClient(Config config) throws KubernetesClientException
KubernetesClientExceptionpublic BaseClient(com.ning.http.client.AsyncHttpClient httpClient,
Config config)
throws KubernetesClientException
KubernetesClientExceptionpublic BaseClient(String masterUrl) throws KubernetesClientException
KubernetesClientExceptionpublic void close()
public <T> T unmarshal(InputStream is, Class<T> type) throws KubernetesClientException
unmarshal in interface ClientKubernetesClientExceptionpublic com.ning.http.client.AsyncHttpClient getHttpClient()
getHttpClient in interface Clientpublic URL getMasterUrl()
getMasterUrl in interface Clientpublic String getApiVersion()
getApiVersion in interface Clientpublic String getNamespace()
getNamespace in interface Clientpublic Config getConfiguration()
getConfiguration in interface ConfigAwarepublic <C extends Client> Boolean isAdaptable(Class<C> type)
ClientisAdaptable in interface ClientC - The target client type.type - The target client class.ExtensionAdapter is found.Copyright © 2015 Red Hat. All rights reserved.