org.apache.karaf.diagnostic.core
Interface DumpDestination

All Known Implementing Classes:
DirectoryDumpDestination, ZipDumpDestination

public interface DumpDestination

Destination for created dumps.

Author:
ldywicki

Method Summary
 java.io.OutputStream add(java.lang.String name)
          Creates new entry in dump destination.
 void save()
          Complete creation of the dump.
 

Method Detail

add

java.io.OutputStream add(java.lang.String name)
                         throws Exception
Creates 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.

save

void save()
          throws Exception
Complete creation of the dump.

Throws:
Exception


Copyright © 2007-2011 Apache Software Foundation. All Rights Reserved.