public abstract class AbstractOpenShiftBinaryCapability extends Object implements IBinaryCapability
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractOpenShiftBinaryCapability.CommandLineBuilder |
IBinaryCapability.OpenShiftBinaryOption, IBinaryCapability.SkipTlsVerifyOPENSHIFT_BINARY_LOCATION, SKIP_TLS_VERIFY| Modifier | Constructor and Description |
|---|---|
protected |
AbstractOpenShiftBinaryCapability() |
protected |
AbstractOpenShiftBinaryCapability(IClient client) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
buildArgs(List<IBinaryCapability.OpenShiftBinaryOption> options)
Callback for building args to be sent to the
oc command. |
protected abstract void |
cleanup()
Cleanup required when stopping the process
|
protected IClient |
getClient() |
protected String |
getOpenShiftBinaryLocation() |
protected Process |
getProcess() |
Process |
start(IBinaryCapability.OpenShiftBinaryOption... arguments)
Starts the
Process to run the oc command. |
protected Process |
startProcess(ProcessBuilder builder) |
void |
stop()
Stops the
Process running the oc command. |
protected abstract boolean |
validate()
Validate arguments before starting process
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, isSupportedprotected AbstractOpenShiftBinaryCapability(IClient client)
protected AbstractOpenShiftBinaryCapability()
protected abstract void cleanup()
protected abstract boolean validate()
protected abstract String buildArgs(List<IBinaryCapability.OpenShiftBinaryOption> options)
oc command.oc command.protected IClient getClient()
protected Process getProcess()
public final Process start(IBinaryCapability.OpenShiftBinaryOption... arguments)
Process to run the oc command.arguments - the command line optionsprotected Process startProcess(ProcessBuilder builder)
public final void stop()
Process running the oc command.protected String getOpenShiftBinaryLocation()
Copyright © 2019 Red Hat, Inc. All Rights Reserved.