public class ServiceOperationsImpl extends HasMetadataOperation<io.fabric8.kubernetes.api.model.Service,io.fabric8.kubernetes.api.model.ServiceList,ServiceResource<io.fabric8.kubernetes.api.model.Service>> implements ServiceResource<io.fabric8.kubernetes.api.model.Service>
Modifier and Type | Class and Description |
---|---|
class |
ServiceOperationsImpl.ServiceToUrlSortComparator |
Modifier and Type | Field and Description |
---|---|
static String |
EXTERNAL_NAME |
DEFAULT_GRACE_PERIOD_IN_SECONDS, DEFAULT_PROPAGATION_POLICY
apiVersion, listType
type
apiGroupName, apiGroupVersion, client, config, context, dryRun, JSON, JSON_MAPPER, JSON_MERGE_PATCH, JSON_PATCH, name, namespace, resourceT, STRATEGIC_MERGE_JSON_PATCH, YAML_MAPPER
DEFAULT_BACKOFF_MULTIPLIER, DEFAULT_INITIAL_BACKOFF_MILLIS
Constructor and Description |
---|
ServiceOperationsImpl(okhttp3.OkHttpClient client,
Config config) |
ServiceOperationsImpl(okhttp3.OkHttpClient client,
Config config,
String namespace) |
ServiceOperationsImpl(OperationContext context) |
Modifier and Type | Method and Description |
---|---|
String |
getURL(String portName) |
protected io.fabric8.kubernetes.api.model.Service |
modifyItemForReplaceOrPatch(Supplier<io.fabric8.kubernetes.api.model.Service> currentSupplier,
io.fabric8.kubernetes.api.model.Service item)
Modify the item prior to a replace or a JSON patch diff
|
ServiceOperationsImpl |
newInstance(OperationContext context) |
LocalPortForward |
portForward(int port)
Create a server socket on a random local port.
|
LocalPortForward |
portForward(int port,
int localPort)
Create a server socket on a specified local port.
|
PortForward |
portForward(int port,
ReadableByteChannel in,
WritableByteChannel out)
Connects directly the remote port to the given input and output channels.
|
io.fabric8.kubernetes.api.model.Service |
waitUntilReady(long amount,
TimeUnit timeUnit) |
accept, createVisitableBuilder, edit, edit, editStatus, patch, patch, patch, patchStatus, replace, replace, replaceStatus, requireFromServer, requireFromServer, validateOperation
cascading, createOrReplace, delete, delete, delete, dryRun, edit, fetchListUrl, forOperationType, fromServer, get, getConfigType, getFieldQueryParam, getGracePeriodSeconds, getGroup, getItem, getKind, getLabelQueryParam, getListType, getMandatory, getOperationType, getPlural, getPropagationPolicy, getReadiness, getResourceVersion, getRootPaths, getVersion, handleCreate, handleDeploymentRollback, handleGet, handlePatch, handlePatch, handleResponse, handleScale, handleUpdate, inAnyNamespace, inform, informOnCondition, inNamespace, isCascading, isReady, isReloadingFromServer, isResourceNamespaced, list, list, list, load, load, load, load, lockResourceVersion, require, runnableInformer, sendPatchedObject, setListType, setNamespace, setType, updateApiVersion, updateApiVersion, updateStatus, waitUntilCondition, watch, watch, watch, withField, withFields, withGracePeriod, withIndexers, withInvolvedObject, withItem, withLabel, withLabelIn, withLabelNotIn, withLabels, withLabelSelector, withName, withNewFilter, withoutField, withoutFields, withoutLabel, withoutLabels, withPropagationPolicy, withResourceVersion, withWaitRetryBackoff
create, create, getType
assertResponseCode, checkName, checkNamespace, createStatus, createStatus, getAPIGroupName, getAPIGroupVersion, getConfig, getName, getNamespace, getNamespacedUrl, getNamespacedUrl, getNamespacedUrl, getObjectValueAsMap, getResourceT, getResourceUrl, getResourceUrl, getResourceUrl, getResourceURLForPatchOperation, getResourceURLForWriteOperation, getRootUrl, handleCreate, handleDelete, handleDelete, handleDeploymentRollback, handleGet, handleGet, handleMetric, handlePatch, handlePatch, handlePatch, handleResponse, handleResponse, handleResponse, handleResponse, handleScale, handleUpdate, handleUpdate, requestException, requestException, requestFailure, requestFailure, retryWithExponentialBackoff, unmarshal, unmarshal, unmarshal
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createOrReplace
fromServer
patch, patch, patch, patch
updateStatus
editStatus
replaceStatus
patchStatus
replace
withGracePeriod
withPropagationPolicy
lockResourceVersion
waitUntilCondition, withWaitRetryBackoff
withResourceVersion
dryRun, dryRun
require
inform, inform, inform, informOnCondition, runnableInformer, withIndexers
create, create
getFullResourceName, getName, getNamespace
withLabel, withoutLabel
getNamespace
public static final String EXTERNAL_NAME
public ServiceOperationsImpl(okhttp3.OkHttpClient client, Config config)
public ServiceOperationsImpl(okhttp3.OkHttpClient client, Config config, String namespace)
public ServiceOperationsImpl(OperationContext context)
public ServiceOperationsImpl newInstance(OperationContext context)
newInstance
in class HasMetadataOperation<io.fabric8.kubernetes.api.model.Service,io.fabric8.kubernetes.api.model.ServiceList,ServiceResource<io.fabric8.kubernetes.api.model.Service>>
public io.fabric8.kubernetes.api.model.Service waitUntilReady(long amount, TimeUnit timeUnit)
waitUntilReady
in interface Waitable<io.fabric8.kubernetes.api.model.Service,io.fabric8.kubernetes.api.model.Service>
waitUntilReady
in class BaseOperation<io.fabric8.kubernetes.api.model.Service,io.fabric8.kubernetes.api.model.ServiceList,ServiceResource<io.fabric8.kubernetes.api.model.Service>>
public String getURL(String portName)
getURL
in interface ServiceResource<io.fabric8.kubernetes.api.model.Service>
public PortForward portForward(int port, ReadableByteChannel in, WritableByteChannel out)
PortForwardable
portForward
in interface PortForwardable<PortForward,LocalPortForward,ReadableByteChannel,WritableByteChannel>
port
- port as integerin
- input channelout
- output channelpublic LocalPortForward portForward(int port, int localPort)
PortForwardable
portForward
in interface PortForwardable<PortForward,LocalPortForward,ReadableByteChannel,WritableByteChannel>
port
- port in integerlocalPort
- local port in integerpublic LocalPortForward portForward(int port)
PortForwardable
portForward
in interface PortForwardable<PortForward,LocalPortForward,ReadableByteChannel,WritableByteChannel>
port
- port as integerprotected io.fabric8.kubernetes.api.model.Service modifyItemForReplaceOrPatch(Supplier<io.fabric8.kubernetes.api.model.Service> currentSupplier, io.fabric8.kubernetes.api.model.Service item)
HasMetadataOperation
modifyItemForReplaceOrPatch
in class HasMetadataOperation<io.fabric8.kubernetes.api.model.Service,io.fabric8.kubernetes.api.model.ServiceList,ServiceResource<io.fabric8.kubernetes.api.model.Service>>
currentSupplier
- item from the serveritem
- to be modifiedCopyright © 2015–2020 Red Hat. All rights reserved.