org.elasticsearch.monitor.dump
Class AbstractDump

java.lang.Object
  extended by org.elasticsearch.monitor.dump.AbstractDump
All Implemented Interfaces:
Dump
Direct Known Subclasses:
SimpleDump

public abstract class AbstractDump
extends Object
implements Dump


Constructor Summary
protected AbstractDump(long timestamp, String cause, Map<String,Object> context)
           
 
Method Summary
 String cause()
           
 Map<String,Object> context()
           
 File createFile(String name)
           
 OutputStream createFileOutputStream(String name)
           
 Writer createFileWriter(String name)
           
protected abstract  File doCreateFile(String name)
           
 File[] files()
           
 long timestamp()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.elasticsearch.monitor.dump.Dump
finish
 

Constructor Detail

AbstractDump

protected AbstractDump(long timestamp,
                       String cause,
                       @Nullable
                       Map<String,Object> context)
Method Detail

timestamp

public long timestamp()
Specified by:
timestamp in interface Dump

context

public Map<String,Object> context()
Specified by:
context in interface Dump

cause

public String cause()
Specified by:
cause in interface Dump

files

public File[] files()
Specified by:
files in interface Dump

createFile

public File createFile(String name)
                throws DumpException
Specified by:
createFile in interface Dump
Throws:
DumpException

doCreateFile

protected abstract File doCreateFile(String name)
                              throws DumpException
Throws:
DumpException

createFileOutputStream

public OutputStream createFileOutputStream(String name)
                                    throws DumpException
Specified by:
createFileOutputStream in interface Dump
Throws:
DumpException

createFileWriter

public Writer createFileWriter(String name)
                        throws DumpException
Specified by:
createFileWriter in interface Dump
Throws:
DumpException


Copyright © 2009-2012. All Rights Reserved.