public class ServiceOperationsImpl extends HasMetadataOperation<Service,ServiceList,DoneableService,ServiceResource<Service,DoneableService>> implements ServiceResource<Service,DoneableService>
| Modifier and Type | Class and Description |
|---|---|
class |
ServiceOperationsImpl.ServiceToUrlSortComparator |
apiVersion, doneableType, listType, reaper, typeapiGroupName, apiGroupVersion, client, config, context, JSON, JSON_MAPPER, JSON_PATCH, name, namespace, resourceT, YAML_MAPPER| Constructor and Description |
|---|
ServiceOperationsImpl(okhttp3.OkHttpClient client,
Config config) |
ServiceOperationsImpl(OperationContext context) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getURL(java.lang.String portName) |
ServiceOperationsImpl |
newInstance(OperationContext context) |
Service |
patch(Service item) |
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,
java.nio.channels.ReadableByteChannel in,
java.nio.channels.WritableByteChannel out)
Connects directly the remote port to the given input and output channels.
|
Service |
replace(Service item) |
Service |
waitUntilReady(long amount,
java.util.concurrent.TimeUnit timeUnit) |
edit, periodicWatchUntilReadycascading, create, createNew, createOrReplace, createOrReplaceWithNew, delete, delete, delete, forOperationType, fromServer, get, getApiVersion, getConfigType, getDoneableType, getFieldQueryParam, getFields, getFieldsNot, getGracePeriodSeconds, getItem, getKind, getLabelQueryParam, getLabels, getLabelsIn, getLabelsNot, getLabelsNotIn, getListType, getMandatory, getOperationType, getReloadingFromServer, getResourceT, getResourceVersion, getRootPaths, getType, handleCreate, handleGet, handlePatch, handleReplace, handleResponse, inAnyNamespace, inNamespace, isApiGroup, isCascading, isReady, isReaping, isReloadingFromServer, isResourceNamespaced, list, list, load, load, load, load, lockResourceVersion, require, setReaping, updateApiVersion, updateApiVersion, updateApiVersionResource, waitUntilCondition, waitUntilExists, watch, watch, withField, withFields, withGracePeriod, withItem, withLabel, withLabel, withLabelIn, withLabelNotIn, withLabels, withLabelSelector, withName, withoutField, withoutFields, withoutLabel, withoutLabel, withoutLabels, withResourceVersionassertResponseCode, checkName, checkNamespace, createStatus, createStatus, getAPIGroup, getAPIVersion, getConfig, getName, getNamespace, getNamespacedUrl, getNamespacedUrl, getNamespacedUrl, getResourceUrl, getResourceUrl, getRootUrl, handleCreate, handleDelete, handleDelete, handleGet, handleGet, handlePatch, handleReplace, handleReplace, handleResponse, handleResponse, handleResponse, handleResponse, requestException, requestFailure, unmarshal, unmarshal, unmarshalclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateOrReplace, createOrReplaceWithNewcreate, createNewfromServerwithGracePeriodlockResourceVersionwithResourceVersionwaitUntilConditionrequiregetName, getNamespacepublic ServiceOperationsImpl(okhttp3.OkHttpClient client,
Config config)
public ServiceOperationsImpl(OperationContext context)
public ServiceOperationsImpl newInstance(OperationContext context)
newInstance in class BaseOperation<Service,ServiceList,DoneableService,ServiceResource<Service,DoneableService>>public Service replace(Service item)
replace in interface Replaceable<Service,Service>replace in class HasMetadataOperation<Service,ServiceList,DoneableService,ServiceResource<Service,DoneableService>>public Service patch(Service item)
patch in interface Patchable<Service,Service>patch in class HasMetadataOperation<Service,ServiceList,DoneableService,ServiceResource<Service,DoneableService>>public Service waitUntilReady(long amount, java.util.concurrent.TimeUnit timeUnit) throws java.lang.InterruptedException
waitUntilReady in interface Waitable<Service,Service>waitUntilReady in class HasMetadataOperation<Service,ServiceList,DoneableService,ServiceResource<Service,DoneableService>>java.lang.InterruptedExceptionpublic java.lang.String getURL(java.lang.String portName)
getURL in interface ServiceResource<Service,DoneableService>public PortForward portForward(int port, java.nio.channels.ReadableByteChannel in, java.nio.channels.WritableByteChannel out)
PortForwardableportForward in interface PortForwardable<PortForward,LocalPortForward,java.nio.channels.ReadableByteChannel,java.nio.channels.WritableByteChannel>port - port as integerin - input channelout - output channelpublic LocalPortForward portForward(int port, int localPort)
PortForwardableportForward in interface PortForwardable<PortForward,LocalPortForward,java.nio.channels.ReadableByteChannel,java.nio.channels.WritableByteChannel>port - port in integerlocalPort - local port in integerpublic LocalPortForward portForward(int port)
PortForwardableportForward in interface PortForwardable<PortForward,LocalPortForward,java.nio.channels.ReadableByteChannel,java.nio.channels.WritableByteChannel>port - port as integerCopyright © 2015-2019 Red Hat. All Rights Reserved.