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.OpenShiftException
private Object retry(Callable<Object> call) throws com.openshift.restclient.OpenShiftException
com.openshift.restclient.OpenShiftException
private void retry(Runnable call) throws com.openshift.restclient.OpenShiftException
com.openshift.restclient.OpenShiftException
public 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.ICapable
public boolean supports(Class<? extends com.openshift.restclient.capability.ICapability> capability)
supports
in interface com.openshift.restclient.capability.ICapable
public <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.ICapable
public com.openshift.restclient.IWatcher watch(String namespace, com.openshift.restclient.IOpenShiftWatchListener listener, String... kinds)
watch
in interface com.openshift.restclient.IClient
public com.openshift.restclient.IWatcher watch(com.openshift.restclient.IOpenShiftWatchListener listener, String... kinds)
watch
in interface com.openshift.restclient.IClient
public <T extends com.openshift.restclient.model.IResource> List<T> list(String kind)
list
in interface com.openshift.restclient.IClient
public <T extends com.openshift.restclient.model.IResource> List<T> list(String kind, Map<String,String> labels)
list
in interface com.openshift.restclient.IClient
public <T extends com.openshift.restclient.model.IResource> List<T> list(String kind, String namespace)
list
in interface com.openshift.restclient.IClient
public <T extends com.openshift.restclient.model.IResource> List<T> list(String kind, String namespace, Map<String,String> labels)
list
in interface com.openshift.restclient.IClient
public <T extends com.openshift.restclient.model.IResource> List<T> list(String kind, String namespace, String labelQuery)
list
in interface com.openshift.restclient.IClient
public <T extends com.openshift.restclient.model.IResource> T get(String kind, String name, String namespace)
get
in interface com.openshift.restclient.IClient
public com.openshift.restclient.model.IList get(String kind, String namespace)
get
in interface com.openshift.restclient.IClient
public <T extends com.openshift.restclient.model.IResource> T create(T resource)
create
in interface com.openshift.restclient.IClient
public <T extends com.openshift.restclient.model.IResource> T create(T resource, String namespace)
create
in interface com.openshift.restclient.IClient
public <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.IClient
public Collection<com.openshift.restclient.model.IResource> create(com.openshift.restclient.model.IList list, String namespace)
create
in interface com.openshift.restclient.IClient
public <T extends com.openshift.restclient.model.IResource> T update(T resource)
update
in interface com.openshift.restclient.IClient
public <T extends com.openshift.restclient.model.IResource> void delete(T resource)
delete
in interface com.openshift.restclient.IClient
public <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.IClient
public <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.IClient
public <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.IClient
public <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.IClient
public URL getBaseURL()
getBaseURL
in interface com.openshift.restclient.IClient
public String getResourceURI(com.openshift.restclient.model.IResource resource)
getResourceURI
in interface com.openshift.restclient.IClient
public String getOpenShiftAPIVersion() throws com.openshift.restclient.UnsupportedVersionException
getOpenShiftAPIVersion
in interface com.openshift.restclient.IClient
com.openshift.restclient.UnsupportedVersionException
public com.openshift.restclient.authorization.IAuthorizationContext getAuthorizationContext()
getAuthorizationContext
in interface com.openshift.restclient.IClient
public com.openshift.restclient.IResourceFactory getResourceFactory()
getResourceFactory
in interface com.openshift.restclient.IClient
public String getServerReadyStatus()
getServerReadyStatus
in interface com.openshift.restclient.IClient
public com.openshift.restclient.IClient clone()
public String getKubernetesMasterVersion()
getKubernetesMasterVersion
in interface com.openshift.restclient.IClient
public String getOpenshiftMasterVersion()
getOpenshiftMasterVersion
in interface com.openshift.restclient.IClient
Copyright © 2004-2020 Red Hat, Inc. All Rights Reserved.