public abstract class AbstractOpenShiftBinaryCapability extends Object implements IBinaryCapability
IBinaryCapability.OpenShiftBinaryOptionOPENSHIFT_BINARY_LOCATION| 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() |
protected String |
getServerFlag() |
protected String |
getSkipTlsVerifyFlag() |
protected String |
getTokenFlag()
Adds the authentication token
|
protected String |
getUserFlag() |
void |
start(IBinaryCapability.OpenShiftBinaryOption... options)
Starts the
Process to run the oc command. |
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()
protected String getUserFlag()
protected String getServerFlag()
protected String getTokenFlag()
protected String getSkipTlsVerifyFlag()
public final void start(IBinaryCapability.OpenShiftBinaryOption... options)
Process to run the oc command.options - the command line optionspublic final void stop()
Process running the oc command.protected String getOpenShiftBinaryLocation()
Copyright © 2018 Red Hat, Inc. All Rights Reserved.