public class OpenShiftBinaryPodLogRetrieval extends AbstractOpenShiftBinaryCapability implements IPodLogRetrieval
OPENSHIFT_BINARY_LOCATION
Constructor and Description |
---|
OpenShiftBinaryPodLogRetrieval(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
|
InputStream |
getLogs(boolean follow)
Return the logs from the pod, optionally following them
|
String |
getName()
Well known name of the capability
|
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
public boolean isSupported()
ICapability
isSupported
in interface ICapability
public String getName()
ICapability
getName
in interface ICapability
public InputStream getLogs(boolean follow)
IPodLogRetrieval
getLogs
in interface IPodLogRetrieval
follow
- true; if following, Default: falseprotected void cleanup()
AbstractOpenShiftBinaryCapability
cleanup
in class AbstractOpenShiftBinaryCapability
protected boolean validate()
AbstractOpenShiftBinaryCapability
validate
in class AbstractOpenShiftBinaryCapability
protected String[] buildArgs(String location)
AbstractOpenShiftBinaryCapability
buildArgs
in class AbstractOpenShiftBinaryCapability
Copyright © 2016 Red Hat, Inc. All rights reserved.