public class OpenShiftBinaryPortForwarding extends AbstractOpenShiftBinaryCapability implements IPortForwardable
AbstractOpenShiftBinaryCapability.CommandLineBuilderIPortForwardable.PortPairIBinaryCapability.OpenShiftBinaryOption, IBinaryCapability.SkipTlsVerify| Modifier and Type | Field and Description |
|---|---|
static String |
PORT_FORWARD_COMMAND |
OPENSHIFT_BINARY_LOCATION, SKIP_TLS_VERIFY| Constructor and Description |
|---|
OpenShiftBinaryPortForwarding(IPod pod,
IClient client) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildArgs(List<IBinaryCapability.OpenShiftBinaryOption> options)
Callback for building args to be sent to the
oc command. |
protected void |
cleanup()
Cleanup required when stopping the process
|
void |
forwardPorts(Collection<IPortForwardable.PortPair> ports,
IBinaryCapability.OpenShiftBinaryOption... options)
Forward the ports to a pod.
|
String |
getName()
Well known name of the capability
|
Collection<IPortForwardable.PortPair> |
getPortPairs()
The port pairs.
|
boolean |
isForwarding() |
boolean |
isSupported()
Allow the implementation of the capability to determine if it is supported on
the OpenShift server.
|
protected boolean |
validate()
Validate arguments before starting process
|
getClient, getOpenShiftBinaryLocation, getProcess, start, startProcess, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitstoppublic static final String PORT_FORWARD_COMMAND
protected void cleanup()
AbstractOpenShiftBinaryCapabilitycleanup in class AbstractOpenShiftBinaryCapabilityprotected boolean validate()
AbstractOpenShiftBinaryCapabilityvalidate in class AbstractOpenShiftBinaryCapabilitypublic boolean isForwarding()
isForwarding in interface IPortForwardablepublic boolean isSupported()
ICapabilityisSupported in interface ICapabilitypublic String getName()
ICapabilitygetName in interface ICapabilitypublic Collection<IPortForwardable.PortPair> getPortPairs()
IPortForwardablegetPortPairs in interface IPortForwardablepublic void forwardPorts(Collection<IPortForwardable.PortPair> ports, IBinaryCapability.OpenShiftBinaryOption... options)
IPortForwardableforwardPorts in interface IPortForwardableports - the pairs of local/remote ports to link togetheroptions - the options to pass to the underlying oc commandprotected String buildArgs(List<IBinaryCapability.OpenShiftBinaryOption> options)
AbstractOpenShiftBinaryCapabilityoc command.buildArgs in class AbstractOpenShiftBinaryCapabilityoc command.Copyright © 2019 Red Hat, Inc. All Rights Reserved.