| Modifier and Type | Field and Description |
|---|---|
private com.openshift.restclient.IClient |
client |
private hudson.model.TaskListener |
listener |
private static int |
MAX_RETRY |
| Constructor and Description |
|---|
RetryIClient(com.openshift.restclient.IClient c,
hudson.model.TaskListener l) |
| Modifier and Type | Method and Description |
|---|---|
<T extends com.openshift.restclient.capability.ICapability,R> |
accept(com.openshift.restclient.capability.CapabilityVisitor<T,R> visitor,
R unsupportedCapabililityValue) |
com.openshift.restclient.IClient |
clone() |
Collection<com.openshift.restclient.model.IResource> |
create(com.openshift.restclient.model.IList list,
String namespace) |
<T extends com.openshift.restclient.model.IResource> |
create(String kind,
String namespace,
String name,
String subresource,
com.openshift.restclient.model.IResource payload) |
<T extends com.openshift.restclient.model.IResource> |
create(T resource) |
<T extends com.openshift.restclient.model.IResource> |
create(T resource,
String namespace) |
<T extends com.openshift.restclient.model.IResource> |
delete(T resource) |
<T> T |
execute(com.openshift.restclient.api.ITypeFactory factory,
String httpMethod,
String kind,
String namespace,
String name,
String subresource,
String subContext,
com.openshift.restclient.model.JSONSerializeable payload,
Map<String,String> params) |
<T extends com.openshift.restclient.model.IResource> |
execute(String httpMethod,
String kind,
String namespace,
String name,
String subresource,
com.openshift.restclient.model.IResource payload) |
<T extends com.openshift.restclient.model.IResource> |
execute(String httpMethod,
String kind,
String namespace,
String name,
String subresource,
com.openshift.restclient.model.IResource payload,
Map<String,String> params) |
<T extends com.openshift.restclient.model.IResource> |
execute(String httpMethod,
String kind,
String namespace,
String name,
String subresource,
com.openshift.restclient.model.IResource payload,
String subcontext) |
com.openshift.restclient.model.IList |
get(String kind,
String namespace) |
<T extends com.openshift.restclient.model.IResource> |
get(String kind,
String name,
String namespace) |
com.openshift.restclient.authorization.IAuthorizationContext |
getAuthorizationContext() |
URL |
getBaseURL() |
<T extends com.openshift.restclient.capability.ICapability> |
getCapability(Class<T> capability) |
com.openshift.internal.restclient.DefaultClient |
getDefaultClient() |
String |
getKubernetesMasterVersion() |
String |
getOpenShiftAPIVersion() |
String |
getOpenshiftMasterVersion() |
com.openshift.restclient.IResourceFactory |
getResourceFactory() |
String |
getResourceURI(com.openshift.restclient.model.IResource resource) |
String |
getServerReadyStatus() |
private com.openshift.restclient.OpenShiftException |
handleError(Throwable t,
Object call) |
<T extends com.openshift.restclient.model.IResource> |
list(String kind) |
<T extends com.openshift.restclient.model.IResource> |
list(String kind,
Map<String,String> labels) |
<T extends com.openshift.restclient.model.IResource> |
list(String kind,
String namespace) |
<T extends com.openshift.restclient.model.IResource> |
list(String kind,
String namespace,
Map<String,String> labels) |
<T extends com.openshift.restclient.model.IResource> |
list(String kind,
String namespace,
String labelQuery) |
private Object |
retry(Callable<Object> call) |
private void |
retry(Runnable call) |
boolean |
supports(Class<? extends com.openshift.restclient.capability.ICapability> capability) |
<T extends com.openshift.restclient.model.IResource> |
update(T resource) |
com.openshift.restclient.IWatcher |
watch(com.openshift.restclient.IOpenShiftWatchListener listener,
String... kinds) |
com.openshift.restclient.IWatcher |
watch(String namespace,
com.openshift.restclient.IOpenShiftWatchListener listener,
String... kinds) |
private static int MAX_RETRY
private final com.openshift.restclient.IClient client
private final hudson.model.TaskListener listener
public RetryIClient(com.openshift.restclient.IClient c,
hudson.model.TaskListener l)
private com.openshift.restclient.OpenShiftException handleError(Throwable t, Object call) throws com.openshift.restclient.OpenShiftException
com.openshift.restclient.OpenShiftExceptionprivate Object retry(Callable<Object> call) throws com.openshift.restclient.OpenShiftException
com.openshift.restclient.OpenShiftExceptionprivate void retry(Runnable call) throws com.openshift.restclient.OpenShiftException
com.openshift.restclient.OpenShiftExceptionpublic com.openshift.internal.restclient.DefaultClient getDefaultClient()
public <T extends com.openshift.restclient.capability.ICapability> T getCapability(Class<T> capability)
getCapability in interface com.openshift.restclient.capability.ICapablepublic boolean supports(Class<? extends com.openshift.restclient.capability.ICapability> capability)
supports in interface com.openshift.restclient.capability.ICapablepublic <T extends com.openshift.restclient.capability.ICapability,R> R accept(com.openshift.restclient.capability.CapabilityVisitor<T,R> visitor,
R unsupportedCapabililityValue)
accept in interface com.openshift.restclient.capability.ICapablepublic com.openshift.restclient.IWatcher watch(String namespace, com.openshift.restclient.IOpenShiftWatchListener listener, String... kinds)
watch in interface com.openshift.restclient.IClientpublic com.openshift.restclient.IWatcher watch(com.openshift.restclient.IOpenShiftWatchListener listener,
String... kinds)
watch in interface com.openshift.restclient.IClientpublic <T extends com.openshift.restclient.model.IResource> List<T> list(String kind)
list in interface com.openshift.restclient.IClientpublic <T extends com.openshift.restclient.model.IResource> List<T> list(String kind, Map<String,String> labels)
list in interface com.openshift.restclient.IClientpublic <T extends com.openshift.restclient.model.IResource> List<T> list(String kind, String namespace)
list in interface com.openshift.restclient.IClientpublic <T extends com.openshift.restclient.model.IResource> List<T> list(String kind, String namespace, Map<String,String> labels)
list in interface com.openshift.restclient.IClientpublic <T extends com.openshift.restclient.model.IResource> List<T> list(String kind, String namespace, String labelQuery)
list in interface com.openshift.restclient.IClientpublic <T extends com.openshift.restclient.model.IResource> T get(String kind, String name, String namespace)
get in interface com.openshift.restclient.IClientpublic com.openshift.restclient.model.IList get(String kind, String namespace)
get in interface com.openshift.restclient.IClientpublic <T extends com.openshift.restclient.model.IResource> T create(T resource)
create in interface com.openshift.restclient.IClientpublic <T extends com.openshift.restclient.model.IResource> T create(T resource,
String namespace)
create in interface com.openshift.restclient.IClientpublic <T extends com.openshift.restclient.model.IResource> T create(String kind, String namespace, String name, String subresource, com.openshift.restclient.model.IResource payload)
create in interface com.openshift.restclient.IClientpublic Collection<com.openshift.restclient.model.IResource> create(com.openshift.restclient.model.IList list, String namespace)
create in interface com.openshift.restclient.IClientpublic <T extends com.openshift.restclient.model.IResource> T update(T resource)
update in interface com.openshift.restclient.IClientpublic <T extends com.openshift.restclient.model.IResource> void delete(T resource)
delete in interface com.openshift.restclient.IClientpublic <T extends com.openshift.restclient.model.IResource> T execute(String httpMethod, String kind, String namespace, String name, String subresource, com.openshift.restclient.model.IResource payload)
execute in interface com.openshift.restclient.IClientpublic <T extends com.openshift.restclient.model.IResource> T execute(String httpMethod, String kind, String namespace, String name, String subresource, com.openshift.restclient.model.IResource payload, Map<String,String> params)
execute in interface com.openshift.restclient.IClientpublic <T extends com.openshift.restclient.model.IResource> T execute(String httpMethod, String kind, String namespace, String name, String subresource, com.openshift.restclient.model.IResource payload, String subcontext)
execute in interface com.openshift.restclient.IClientpublic <T> T execute(com.openshift.restclient.api.ITypeFactory factory,
String httpMethod,
String kind,
String namespace,
String name,
String subresource,
String subContext,
com.openshift.restclient.model.JSONSerializeable payload,
Map<String,String> params)
execute in interface com.openshift.restclient.IClientpublic URL getBaseURL()
getBaseURL in interface com.openshift.restclient.IClientpublic String getResourceURI(com.openshift.restclient.model.IResource resource)
getResourceURI in interface com.openshift.restclient.IClientpublic String getOpenShiftAPIVersion() throws com.openshift.restclient.UnsupportedVersionException
getOpenShiftAPIVersion in interface com.openshift.restclient.IClientcom.openshift.restclient.UnsupportedVersionExceptionpublic com.openshift.restclient.authorization.IAuthorizationContext getAuthorizationContext()
getAuthorizationContext in interface com.openshift.restclient.IClientpublic com.openshift.restclient.IResourceFactory getResourceFactory()
getResourceFactory in interface com.openshift.restclient.IClientpublic String getServerReadyStatus()
getServerReadyStatus in interface com.openshift.restclient.IClientpublic com.openshift.restclient.IClient clone()
public String getKubernetesMasterVersion()
getKubernetesMasterVersion in interface com.openshift.restclient.IClientpublic String getOpenshiftMasterVersion()
getOpenshiftMasterVersion in interface com.openshift.restclient.IClientCopyright © 2004-2020 Red Hat, Inc. All Rights Reserved.