Package org.apache.karaf.diagnostic.core
Interface DumpDestination
-
- All Known Implementing Classes:
DirectoryDumpDestination,ZipDumpDestination
public interface DumpDestinationDestination for created dumps.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OutputStreamadd(String name)Create new entry in dump destination.voidsave()Complete creation of the dump.
-
-
-
Method Detail
-
add
OutputStream add(String name) throws Exception
Create new entry in dump destination. Destination does not close returned output stream by default, dump provider should do this after completing write operation.- Parameters:
name- Name of file in destination.- Returns:
- Output stream ready to write.
- Throws:
Exception- When entry cannot be added.
-
-