Class TeeOutputStreamBuildListener
- java.lang.Object
-
- io.jenkins.plugins.opentelemetry.job.log.util.TeeOutputStreamBuildListener
-
- All Implemented Interfaces:
BuildListener
,TaskListener
,Serializable
,AutoCloseable
,org.jenkinsci.plugins.workflow.log.OutputStreamTaskListener
,org.jenkinsci.remoting.SerializableOnlyOverRemoting
public class TeeOutputStreamBuildListener extends Object implements BuildListener, org.jenkinsci.plugins.workflow.log.OutputStreamTaskListener, AutoCloseable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface hudson.model.TaskListener
NULL
-
-
Constructor Summary
Constructors Constructor Description TeeOutputStreamBuildListener(BuildListener primary, BuildListener secondary)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
PrintStream
getLogger()
OutputStream
getOutputStream()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hudson.model.BuildListener
finished, started
-
Methods inherited from interface org.jenkinsci.remoting.SerializableOnlyOverRemoting
getChannelForSerialization
-
Methods inherited from interface hudson.model.TaskListener
annotate, error, error, fatalError, fatalError, getCharset, hyperlink
-
-
-
-
Constructor Detail
-
TeeOutputStreamBuildListener
public TeeOutputStreamBuildListener(BuildListener primary, BuildListener secondary)
-
-
Method Detail
-
getOutputStream
@NonNull public OutputStream getOutputStream()
- Specified by:
getOutputStream
in interfaceorg.jenkinsci.plugins.workflow.log.OutputStreamTaskListener
-
getLogger
@NonNull public PrintStream getLogger()
- Specified by:
getLogger
in interfaceTaskListener
-
close
public void close() throws Exception
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
-