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

java.lang.Object
  extended by org.apache.karaf.diagnostic.core.common.TextDumpProvider
All Implemented Interfaces:
DumpProvider
Direct Known Subclasses:
BundleDumpProvider, FeaturesDumpProvider, ThreadDumpProvider

public abstract class TextDumpProvider
extends java.lang.Object
implements DumpProvider

Base class for dump providers which writes text to destination.

Author:
ldywicki

Constructor Summary
protected TextDumpProvider(java.lang.String name)
          Creates new dump provider.
 
Method Summary
 void createDump(DumpDestination destination)
          Creates dump in given entry.
protected abstract  void writeDump(java.io.OutputStreamWriter outputStreamWriter)
          This method should create output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextDumpProvider

protected TextDumpProvider(java.lang.String name)
Creates new dump provider.

Parameters:
name - Name of the file.
Method Detail

createDump

public final void createDump(DumpDestination destination)
                      throws Exception
Creates dump in given entry.

Specified by:
createDump in interface DumpProvider
Throws:
Exception

writeDump

protected abstract void writeDump(java.io.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.


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