org.elasticsearch.monitor.dump
Class AbstractDump
java.lang.Object
org.elasticsearch.monitor.dump.AbstractDump
- All Implemented Interfaces:
- Dump
- Direct Known Subclasses:
- SimpleDump
public abstract class AbstractDump
- extends java.lang.Object
- implements Dump
Constructor Summary |
protected |
AbstractDump(long timestamp,
java.lang.String cause,
java.util.Map<java.lang.String,java.lang.Object> context)
|
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 |
AbstractDump
protected AbstractDump(long timestamp,
java.lang.String cause,
@Nullable
java.util.Map<java.lang.String,java.lang.Object> context)
timestamp
public long timestamp()
- Specified by:
timestamp
in interface Dump
context
public java.util.Map<java.lang.String,java.lang.Object> context()
- Specified by:
context
in interface Dump
cause
public java.lang.String cause()
- Specified by:
cause
in interface Dump
files
public java.io.File[] files()
- Specified by:
files
in interface Dump
createFile
public java.io.File createFile(java.lang.String name)
throws DumpException
- Specified by:
createFile
in interface Dump
- Throws:
DumpException
doCreateFile
protected abstract java.io.File doCreateFile(java.lang.String name)
throws DumpException
- Throws:
DumpException
createFileOutputStream
public java.io.OutputStream createFileOutputStream(java.lang.String name)
throws DumpException
- Specified by:
createFileOutputStream
in interface Dump
- Throws:
DumpException
createFileWriter
public java.io.Writer createFileWriter(java.lang.String name)
throws DumpException
- Specified by:
createFileWriter
in interface Dump
- Throws:
DumpException