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
KubernetesClientException
public BaseClient(Config config) throws KubernetesClientException
KubernetesClientException
public BaseClient(com.ning.http.client.AsyncHttpClient httpClient, Config config) throws KubernetesClientException
KubernetesClientException
public BaseClient(String masterUrl) throws KubernetesClientException
KubernetesClientException
public void close()
public <T> T unmarshal(InputStream is, Class<T> type) throws KubernetesClientException
unmarshal
in interface Client
KubernetesClientException
public com.ning.http.client.AsyncHttpClient getHttpClient()
getHttpClient
in interface Client
public URL getMasterUrl()
getMasterUrl
in interface Client
public String getApiVersion()
getApiVersion
in interface Client
public String getNamespace()
getNamespace
in interface Client
public Config getConfiguration()
getConfiguration
in interface ConfigAware
public <C extends Client> Boolean isAdaptable(Class<C> type)
Client
isAdaptable
in interface Client
C
- The target client type.type
- The target client class.ExtensionAdapter
is found.Copyright © 2015 Red Hat. All rights reserved.