Search in sources :

Example 11 with SourceTag

use of com.wavefront.dto.SourceTag in project java by wavefrontHQ.

the class SourceTagSenderTask method flushSingleBatch.

@Override
void flushSingleBatch(List<SourceTag> batch, @Nullable QueueingReason reason) {
    for (SourceTag tag : batch) {
        SourceTagSubmissionTask task = new SourceTagSubmissionTask(proxyAPI, properties, backlog, handlerKey.getHandle(), tag, null);
        task.enqueue(reason);
    }
}
Also used : SourceTagSubmissionTask(com.wavefront.agent.data.SourceTagSubmissionTask) SourceTag(com.wavefront.dto.SourceTag)

Aggregations

SourceTag (com.wavefront.dto.SourceTag)11 ReportSourceTag (wavefront.report.ReportSourceTag)9 Test (org.junit.Test)7 SourceTagSubmissionTask (com.wavefront.agent.data.SourceTagSubmissionTask)5 DefaultEntityPropertiesForTesting (com.wavefront.agent.data.DefaultEntityPropertiesForTesting)3 ArrayList (java.util.ArrayList)3 ReportEvent (wavefront.report.ReportEvent)3 EventDataSubmissionTask (com.wavefront.agent.data.EventDataSubmissionTask)2 LineDelimitedDataSubmissionTask (com.wavefront.agent.data.LineDelimitedDataSubmissionTask)2 Event (com.wavefront.dto.Event)2 File (java.io.File)2 UUID (java.util.UUID)2 Charsets (com.google.common.base.Charsets)1 ImmutableList (com.google.common.collect.ImmutableList)1 ImmutableMap (com.google.common.collect.ImmutableMap)1 Files (com.google.common.io.Files)1 QueueFile (com.squareup.tape2.QueueFile)1 DefaultEntityPropertiesFactoryForTesting (com.wavefront.agent.data.DefaultEntityPropertiesFactoryForTesting)1 EntityPropertiesFactory (com.wavefront.agent.data.EntityPropertiesFactory)1 QueueingReason (com.wavefront.agent.data.QueueingReason)1