Class TextDumpProvider
- java.lang.Object
-
- org.apache.karaf.diagnostic.core.common.TextDumpProvider
-
- All Implemented Interfaces:
DumpProvider
- Direct Known Subclasses:
BundleDumpProvider,EnvironmentDumpProvider,MemoryDumpProvider,ThreadDumpProvider
public abstract class TextDumpProvider extends Object implements DumpProvider
Base class for dump providers which writes text to destination.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTextDumpProvider(String name)Creates new dump provider.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcreateDump(DumpDestination destination)Create dump in given entry.protected abstract voidwriteDump(OutputStreamWriter outputStreamWriter)This method should create output.
-
-
-
Constructor Detail
-
TextDumpProvider
protected TextDumpProvider(String name)
Creates new dump provider.- Parameters:
name- Name of the file.
-
-
Method Detail
-
createDump
public final void createDump(DumpDestination destination) throws Exception
Create dump in given entry.- Specified by:
createDumpin interfaceDumpProvider- Parameters:
destination- The destination where to create the dump.- Throws:
Exception- If the dump creation fails.
-
writeDump
protected abstract void writeDump(OutputStreamWriter outputStreamWriter) throws Exception
This method should create output.- Parameters:
outputStreamWriter- Stream which points to file specified in constructor.- Throws:
Exception- If any problem occur.
-
-