|
Kieker 1.11 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kieker.monitoring.writer.AbstractMonitoringWriter kieker.monitoring.writer.AbstractAsyncWriter
public abstract class AbstractAsyncWriter
Field Summary | |
---|---|
protected java.util.concurrent.BlockingQueue<IMonitoringRecord> |
blockingQueue
The queue containing the records to be written. |
static java.lang.String |
CONFIG_BEHAVIOR
The name of the configuration determining the behavior of this writer in case of a full queue. |
static java.lang.String |
CONFIG_PRIORITIZED_QUEUESIZE
The name of the configuration determining the size of the prioritized queue of this writer. |
static java.lang.String |
CONFIG_QUEUESIZE
The name of the configuration determining the size of the queue of this writer. |
static java.lang.String |
CONFIG_SHUTDOWNDELAY
The name of the configuration determining the maximal shutdown delay of this writer (in milliseconds). |
protected java.util.concurrent.BlockingQueue<IMonitoringRecord> |
prioritizedBlockingQueue
The queue containing prioritized records (mostly RegistryRecord ) to be written. |
Fields inherited from class kieker.monitoring.writer.AbstractMonitoringWriter |
---|
monitoringController |
Constructor Summary | |
---|---|
protected |
AbstractAsyncWriter(Configuration configuration)
This constructor initializes the writer based on the given configuration. |
Method Summary | |
---|---|
protected void |
addWorker(AbstractAsyncThread worker)
This method must be called at the end of the child constructor! |
protected Configuration |
getDefaultConfiguration()
This method should be overwritten, iff the writer is external to Kieker and thus its default configuration is not included in the default config file. |
boolean |
newMonitoringRecord(IMonitoringRecord monitoringRecord)
Called for each new record. |
boolean |
newMonitoringRecordNonBlocking(IMonitoringRecord monitoringRecord)
Overwrite this method if necessary. |
void |
terminate()
The framework ensures, that this method is called only once! |
java.lang.String |
toString()
Delivers a string representation of this writer. |
Methods inherited from class kieker.monitoring.writer.AbstractMonitoringWriter |
---|
init, setController |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CONFIG_QUEUESIZE
public static final java.lang.String CONFIG_PRIORITIZED_QUEUESIZE
public static final java.lang.String CONFIG_BEHAVIOR
public static final java.lang.String CONFIG_SHUTDOWNDELAY
protected final java.util.concurrent.BlockingQueue<IMonitoringRecord> blockingQueue
protected final java.util.concurrent.BlockingQueue<IMonitoringRecord> prioritizedBlockingQueue
RegistryRecord
) to be written.
Constructor Detail |
---|
protected AbstractAsyncWriter(Configuration configuration)
configuration
- The configuration for this writer.Method Detail |
---|
protected Configuration getDefaultConfiguration()
getDefaultConfiguration
in class AbstractMonitoringWriter
protected final void addWorker(AbstractAsyncThread worker)
worker
- The new worker.public final void terminate()
public final boolean newMonitoringRecord(IMonitoringRecord monitoringRecord)
monitoringRecord
- the record.
public boolean newMonitoringRecordNonBlocking(IMonitoringRecord monitoringRecord)
AbstractMonitoringWriter
newMonitoringRecordNonBlocking
in interface IMonitoringWriter
newMonitoringRecordNonBlocking
in class AbstractMonitoringWriter
monitoringRecord
- the record.
public java.lang.String toString()
IMonitoringWriter
toString
in interface IMonitoringWriter
toString
in class AbstractMonitoringWriter
|
Kieker 1.11 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |