Class EndpointsHandler
java.lang.Object
io.fabric8.kubernetes.client.handlers.core.v1.EndpointsHandler
- All Implemented Interfaces:
ResourceHandler<io.fabric8.kubernetes.api.model.Endpoints,io.fabric8.kubernetes.api.model.EndpointsBuilder>
public class EndpointsHandler extends Object implements ResourceHandler<io.fabric8.kubernetes.api.model.Endpoints,io.fabric8.kubernetes.api.model.EndpointsBuilder>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.fabric8.kubernetes.client.ResourceHandler
ResourceHandler.Key -
Constructor Summary
Constructors Constructor Description EndpointsHandler() -
Method Summary
Modifier and Type Method Description io.fabric8.kubernetes.api.model.Endpointscreate(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.Endpoints item)Create the specified resource.Booleandelete(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.DeletionPropagation propagationPolicy, io.fabric8.kubernetes.api.model.Endpoints item)Delete the specified resource (if exists).io.fabric8.kubernetes.api.model.EndpointsBuilderedit(io.fabric8.kubernetes.api.model.Endpoints item)Edit the specified resource.StringgetApiVersion()StringgetKind()io.fabric8.kubernetes.api.model.Endpointsreload(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.Endpoints item)Reload the specified resource (if exists).io.fabric8.kubernetes.api.model.Endpointsreplace(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.Endpoints item)Replace the specified resource.io.fabric8.kubernetes.api.model.EndpointswaitUntilCondition(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.Endpoints item, Predicate<io.fabric8.kubernetes.api.model.Endpoints> condition, long amount, TimeUnit timeUnit)io.fabric8.kubernetes.api.model.EndpointswaitUntilReady(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.Endpoints item, long amount, TimeUnit timeUnit)Waits until the specified resource is Ready.Watchwatch(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.Endpoints item, io.fabric8.kubernetes.api.model.ListOptions options, Watcher<io.fabric8.kubernetes.api.model.Endpoints> watcher)Watches the specified resource for changesWatchwatch(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.Endpoints item, Watcher<io.fabric8.kubernetes.api.model.Endpoints> watcher)Watches the specified resource for changes.Watchwatch(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.Endpoints item, String resourceVersion, Watcher<io.fabric8.kubernetes.api.model.Endpoints> watcher)Watches the specified resource for changes.
-
Constructor Details
-
EndpointsHandler
public EndpointsHandler()
-
-
Method Details
-
getKind
- Specified by:
getKindin interfaceResourceHandler<io.fabric8.kubernetes.api.model.Endpoints,io.fabric8.kubernetes.api.model.EndpointsBuilder>
-
getApiVersion
- Specified by:
getApiVersionin interfaceResourceHandler<io.fabric8.kubernetes.api.model.Endpoints,io.fabric8.kubernetes.api.model.EndpointsBuilder>
-
create
public io.fabric8.kubernetes.api.model.Endpoints create(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.Endpoints item)Description copied from interface:ResourceHandlerCreate the specified resource.- Specified by:
createin interfaceResourceHandler<io.fabric8.kubernetes.api.model.Endpoints,io.fabric8.kubernetes.api.model.EndpointsBuilder>- Parameters:
client- An instance of the http client.config- The client config.namespace- The target namespace.item- The resource to create.- Returns:
- The created resource.
-
replace
public io.fabric8.kubernetes.api.model.Endpoints replace(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.Endpoints item)Description copied from interface:ResourceHandlerReplace the specified resource.- Specified by:
replacein interfaceResourceHandler<io.fabric8.kubernetes.api.model.Endpoints,io.fabric8.kubernetes.api.model.EndpointsBuilder>- Parameters:
client- An instance of the http client.config- The client config.namespace- The target namespace.item- The resource to replace.- Returns:
- The created resource.
-
reload
public io.fabric8.kubernetes.api.model.Endpoints reload(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.Endpoints item)Description copied from interface:ResourceHandlerReload the specified resource (if exists).- Specified by:
reloadin interfaceResourceHandler<io.fabric8.kubernetes.api.model.Endpoints,io.fabric8.kubernetes.api.model.EndpointsBuilder>- Parameters:
client- An instance of the http client.config- The client config.namespace- The target namespace.item- The resource to reload.- Returns:
- The reloaded resource.
-
edit
public io.fabric8.kubernetes.api.model.EndpointsBuilder edit(io.fabric8.kubernetes.api.model.Endpoints item)Description copied from interface:ResourceHandlerEdit the specified resource.- Specified by:
editin interfaceResourceHandler<io.fabric8.kubernetes.api.model.Endpoints,io.fabric8.kubernetes.api.model.EndpointsBuilder>- Parameters:
item- The resource to edit.- Returns:
- The resource editor.
-
delete
public Boolean delete(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.DeletionPropagation propagationPolicy, io.fabric8.kubernetes.api.model.Endpoints item)Description copied from interface:ResourceHandlerDelete the specified resource (if exists).- Specified by:
deletein interfaceResourceHandler<io.fabric8.kubernetes.api.model.Endpoints,io.fabric8.kubernetes.api.model.EndpointsBuilder>- Parameters:
client- An instance of the http client.config- The client config.namespace- The target namespace.propagationPolicy- Whether and how garbage collection will be performed.item- The resource to delete.- Returns:
- The true if the resource was successfully deleted.
-
watch
public Watch watch(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.Endpoints item, Watcher<io.fabric8.kubernetes.api.model.Endpoints> watcher)Description copied from interface:ResourceHandlerWatches the specified resource for changes.- Specified by:
watchin interfaceResourceHandler<io.fabric8.kubernetes.api.model.Endpoints,io.fabric8.kubernetes.api.model.EndpointsBuilder>- Parameters:
client- An instance of the http client.config- The client config.namespace- The target namespace.item- The resource to delete.watcher- TheWatcherto use.- Returns:
- The
Watch
-
watch
public Watch watch(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.Endpoints item, String resourceVersion, Watcher<io.fabric8.kubernetes.api.model.Endpoints> watcher)Description copied from interface:ResourceHandlerWatches the specified resource for changes.- Specified by:
watchin interfaceResourceHandler<io.fabric8.kubernetes.api.model.Endpoints,io.fabric8.kubernetes.api.model.EndpointsBuilder>- Parameters:
client- An instance of the http client.config- The client config.namespace- The target namespace.item- The resource to delete.resourceVersion- The resourceVersion of objectwatcher- TheWatcherto use.- Returns:
- The
Watch
-
watch
public Watch watch(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.Endpoints item, io.fabric8.kubernetes.api.model.ListOptions options, Watcher<io.fabric8.kubernetes.api.model.Endpoints> watcher)Description copied from interface:ResourceHandlerWatches the specified resource for changes- Specified by:
watchin interfaceResourceHandler<io.fabric8.kubernetes.api.model.Endpoints,io.fabric8.kubernetes.api.model.EndpointsBuilder>- Parameters:
client- An instance of http client.config- The client config.namespace- The target namespace.item- The resource to delete.options- TheListOptionsfor available optionswatcher- TheWatcherto use.- Returns:
- The
Watch
-
waitUntilReady
public io.fabric8.kubernetes.api.model.Endpoints waitUntilReady(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.Endpoints item, long amount, TimeUnit timeUnit) throws InterruptedExceptionDescription copied from interface:ResourceHandlerWaits until the specified resource is Ready. For resources that 'readiness' is not applicable the method is equivalent to get.- Specified by:
waitUntilReadyin interfaceResourceHandler<io.fabric8.kubernetes.api.model.Endpoints,io.fabric8.kubernetes.api.model.EndpointsBuilder>- Parameters:
client- An instance of the http client.config- The client config.namespace- The target namespace.item- The resource to wait.amount- The amount of time to waittimeUnit- The waitTimeUnit.- Returns:
- The true if the resource was successfully deleted.
- Throws:
InterruptedException- Interrupted Exception
-
waitUntilCondition
public io.fabric8.kubernetes.api.model.Endpoints waitUntilCondition(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.Endpoints item, Predicate<io.fabric8.kubernetes.api.model.Endpoints> condition, long amount, TimeUnit timeUnit) throws InterruptedException- Specified by:
waitUntilConditionin interfaceResourceHandler<io.fabric8.kubernetes.api.model.Endpoints,io.fabric8.kubernetes.api.model.EndpointsBuilder>- Throws:
InterruptedException
-