public class BaseResource<T extends io.fabric8.kubernetes.api.model.HasMetadata,B extends io.fabric8.kubernetes.api.builder.Builder<T>,D extends io.fabric8.kubernetes.api.model.Doneable<T>> extends Object
Modifier and Type | Field and Description |
---|---|
protected static com.fasterxml.jackson.databind.ObjectMapper |
mapper |
Modifier | Constructor and Description |
---|---|
protected |
BaseResource(com.ning.http.client.AsyncHttpClient httpClient,
URL rootUrl,
String resourceT,
Class<T> clazz,
Class<B> builderClazz,
Class<D> updateableClazz) |
Modifier and Type | Method and Description |
---|---|
protected Class<B> |
getBuilderClazz() |
protected Class<T> |
getClazz() |
Class<D> |
getDoneableClazz() |
protected com.ning.http.client.AsyncHttpClient |
getHttpClient() |
protected String |
getNamespace() |
protected URL |
getNamespacedUrl() |
protected String |
getResourceT() |
protected URL |
getRootUrl() |
protected T |
handleCreate(T resource) |
protected void |
handleDelete(URL requestUrl) |
protected T |
handleGet(URL resourceUrl) |
protected T |
handleUpdate(URL resourceUrl,
T updated) |
protected void |
setNamespace(String namespace) |
protected String getResourceT()
protected String getNamespace()
protected void setNamespace(String namespace)
protected com.ning.http.client.AsyncHttpClient getHttpClient()
protected URL getRootUrl()
protected URL getNamespacedUrl() throws MalformedURLException
MalformedURLException
protected void handleDelete(URL requestUrl) throws ExecutionException, InterruptedException, KubernetesClientException, IOException
protected T handleCreate(T resource) throws ExecutionException, InterruptedException, KubernetesClientException, IOException
protected T handleUpdate(URL resourceUrl, T updated) throws ExecutionException, InterruptedException, KubernetesClientException, IOException
protected T handleGet(URL resourceUrl) throws ExecutionException, InterruptedException, KubernetesClientException, IOException
Copyright © 2015 Red Hat. All rights reserved.