org.apache.karaf.diagnostic.core.common
Class DirectoryDumpDestination

java.lang.Object
  extended by org.apache.karaf.diagnostic.core.common.DirectoryDumpDestination
All Implemented Interfaces:
DumpDestination

public class DirectoryDumpDestination
extends java.lang.Object
implements DumpDestination

Class which packages dumps to given directory.

Author:
ldywicki

Constructor Summary
DirectoryDumpDestination(java.io.File file)
           
 
Method Summary
 java.io.OutputStream add(java.lang.String name)
          Creates new entry in dump destination.
 void save()
          Complete creation of the dump.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryDumpDestination

public DirectoryDumpDestination(java.io.File file)
Method Detail

add

public java.io.OutputStream add(java.lang.String name)
                         throws Exception
Description copied from interface: DumpDestination
Creates new entry in dump destination. Destination does not close returned output stream by default, dump provider should do this after completing write operation.

Specified by:
add in interface DumpDestination
Parameters:
name - Name of file in destination.
Returns:
Output stream ready to write.
Throws:
Exception - When entry cannot be added.

save

public void save()
          throws Exception
Description copied from interface: DumpDestination
Complete creation of the dump.

Specified by:
save in interface DumpDestination
Throws:
Exception


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