public class OpenShiftBinaryPortForwarding extends AbstractOpenShiftBinaryCapability implements IPortForwardable
IPortForwardable.PortPair
OPENSHIFT_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, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
stop
protected void cleanup()
AbstractOpenShiftBinaryCapability
cleanup
in class AbstractOpenShiftBinaryCapability
protected boolean validate()
AbstractOpenShiftBinaryCapability
validate
in class AbstractOpenShiftBinaryCapability
public boolean isForwarding()
isForwarding
in interface IPortForwardable
public boolean isSupported()
ICapability
isSupported
in interface ICapability
public String getName()
ICapability
getName
in interface ICapability
public IPortForwardable.PortPair[] getPortPairs()
IPortForwardable
getPortPairs
in interface IPortForwardable
public void forwardPorts(IPortForwardable.PortPair... ports)
IPortForwardable
forwardPorts
in interface IPortForwardable
protected String[] buildArgs(String location)
AbstractOpenShiftBinaryCapability
buildArgs
in class AbstractOpenShiftBinaryCapability
Copyright © 2016 Red Hat, Inc. All rights reserved.