public class OpenShiftBinaryPodLogRetrieval extends Object implements IPodLogRetrieval
| Modifier and Type | Class and Description |
|---|---|
protected class |
OpenShiftBinaryPodLogRetrieval.PodLogs |
| Constructor and Description |
|---|
OpenShiftBinaryPodLogRetrieval(IPod pod,
IClient client) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getLogs(boolean follow,
IBinaryCapability.OpenShiftBinaryOption... options)
Return the logs from the pod, optionally following them.
|
InputStream |
getLogs(boolean follow,
String container,
IBinaryCapability.OpenShiftBinaryOption... options)
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.
|
void |
stop()
Stop retrieving logs for all containers
|
void |
stop(String container)
Stop retrieving logs for a specific container
|
public boolean isSupported()
ICapabilityisSupported in interface ICapabilitypublic String getName()
ICapabilitygetName in interface ICapabilitypublic InputStream getLogs(boolean follow, IBinaryCapability.OpenShiftBinaryOption... options)
IPodLogRetrievalgetLogs in interface IPodLogRetrievalfollow - true if following. Default: falseoptions - the options to pass to the underlying oc commandpublic InputStream getLogs(boolean follow, String container, IBinaryCapability.OpenShiftBinaryOption... options)
IPodLogRetrievalgetLogs in interface IPodLogRetrievalfollow - true; if following, Default: falsecontainer - the name of the container in the pod to get logs uses the first
container if emptyoptions - the options to pass to the underlying oc commandpublic void stop()
IPodLogRetrievalstop in interface IPodLogRetrievalpublic void stop(String container)
IPodLogRetrievalstop in interface IPodLogRetrievalcontainer - the name of the containerCopyright © 2019 Red Hat, Inc. All Rights Reserved.