public class NodeMetricsHandler extends Object implements ResourceHandler<io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics,io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetricsBuilder>
ResourceHandler.Key
Constructor and Description |
---|
NodeMetricsHandler() |
Modifier and Type | Method and Description |
---|---|
io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics |
create(okhttp3.OkHttpClient client,
Config config,
String namespace,
io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics item)
Create the specified resource.
|
Boolean |
delete(okhttp3.OkHttpClient client,
Config config,
String namespace,
Boolean cascading,
io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics item)
Delete the specified resource (if exists).
|
io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetricsBuilder |
edit(io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics item)
Edit the specified resource.
|
String |
getApiVersion() |
String |
getKind() |
io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics |
reload(okhttp3.OkHttpClient client,
Config config,
String namespace,
io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics item)
Reload the specified resource (if exists).
|
io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics |
replace(okhttp3.OkHttpClient client,
Config config,
String namespace,
io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics item)
Replace the specified resource.
|
io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics |
waitUntilCondition(okhttp3.OkHttpClient client,
Config config,
String namespace,
io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics item,
Predicate<io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics> condition,
long amount,
TimeUnit timeUnit) |
io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics |
waitUntilReady(okhttp3.OkHttpClient client,
Config config,
String namespace,
io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics item,
long amount,
TimeUnit timeUnit)
Waits until the specified resource is Ready.
|
Watch |
watch(okhttp3.OkHttpClient client,
Config config,
String namespace,
io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics item,
String resourceVersion,
Watcher<io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics> watcher)
Watches the specified resource for changes.
|
Watch |
watch(okhttp3.OkHttpClient client,
Config config,
String namespace,
io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics item,
Watcher<io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics> watcher)
Watches the specified resource for changes.
|
public String getKind()
getKind
in interface ResourceHandler<io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics,io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetricsBuilder>
public String getApiVersion()
getApiVersion
in interface ResourceHandler<io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics,io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetricsBuilder>
public io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics create(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics item)
ResourceHandler
create
in interface ResourceHandler<io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics,io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetricsBuilder>
client
- An instance of the http client.config
- The client config.namespace
- The target namespace.item
- The resource to create.public io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics replace(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics item)
ResourceHandler
replace
in interface ResourceHandler<io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics,io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetricsBuilder>
client
- An instance of the http client.config
- The client config.namespace
- The target namespace.item
- The resource to replace.public io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics reload(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics item)
ResourceHandler
reload
in interface ResourceHandler<io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics,io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetricsBuilder>
client
- An instance of the http client.config
- The client config.namespace
- The target namespace.item
- The resource to reload.public io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetricsBuilder edit(io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics item)
ResourceHandler
edit
in interface ResourceHandler<io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics,io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetricsBuilder>
item
- The resource to edit.public Boolean delete(okhttp3.OkHttpClient client, Config config, String namespace, Boolean cascading, io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics item)
ResourceHandler
delete
in interface ResourceHandler<io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics,io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetricsBuilder>
client
- An instance of the http client.config
- The client config.namespace
- The target namespace.cascading
- Whether deletion needs to be cascading or notitem
- The resource to delete.public Watch watch(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics item, Watcher<io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics> watcher)
ResourceHandler
watch
in interface ResourceHandler<io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics,io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetricsBuilder>
client
- An instance of the http client.config
- The client config.namespace
- The target namespace.item
- The resource to delete.watcher
- The Watcher
to use.public Watch watch(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics item, String resourceVersion, Watcher<io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics> watcher)
ResourceHandler
watch
in interface ResourceHandler<io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics,io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetricsBuilder>
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
- The Watcher
to use.public io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics waitUntilReady(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics item, long amount, TimeUnit timeUnit) throws InterruptedException
ResourceHandler
waitUntilReady
in interface ResourceHandler<io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics,io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetricsBuilder>
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 wait TimeUnit
.InterruptedException
- Interrupted Exceptionpublic io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics waitUntilCondition(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics item, Predicate<io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics> condition, long amount, TimeUnit timeUnit) throws InterruptedException
waitUntilCondition
in interface ResourceHandler<io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetrics,io.fabric8.kubernetes.api.model.metrics.v1beta1.NodeMetricsBuilder>
InterruptedException
Copyright © 2015–2021 Red Hat. All rights reserved.