public class OpenShiftBinaryPortForwarding extends AbstractOpenShiftBinaryCapability implements IPortForwardable
IPortForwardable.PortPairOPENSHIFT_BINARY_LOCATION| Constructor and Description |
|---|
OpenShiftBinaryPortForwarding(IPod pod,
IClient client) |
| Modifier and Type | Method and Description |
|---|---|
protected String[] |
buildArgs(String location)
Callback for building args to be sent to the oc command
|
protected void |
cleanup()
Cleanup required when stopping the process
|
void |
forwardPorts(IPortForwardable.PortPair... ports)
Forward the ports to a pod.
|
String |
getName()
Well known name of the capability
|
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
|
addToken, getClient, getProcess, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitstopprotected 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 IPortForwardable.PortPair[] getPortPairs()
IPortForwardablegetPortPairs in interface IPortForwardablepublic void forwardPorts(IPortForwardable.PortPair... ports)
IPortForwardableforwardPorts in interface IPortForwardableprotected String[] buildArgs(String location)
AbstractOpenShiftBinaryCapabilitybuildArgs in class AbstractOpenShiftBinaryCapabilityCopyright © 2016 Red Hat, Inc. All rights reserved.