Package com.wavefront.agent.handlers
Class SenderTaskFactoryImpl
- java.lang.Object
-
- com.wavefront.agent.handlers.SenderTaskFactoryImpl
-
- All Implemented Interfaces:
SenderTaskFactory
public class SenderTaskFactoryImpl extends Object implements SenderTaskFactory
Factory forSenderTask
objects.- Author:
- [email protected]
-
-
Constructor Summary
Constructors Constructor Description SenderTaskFactoryImpl(APIContainer apiContainer, UUID proxyId, TaskQueueFactory taskQueueFactory, QueueingFactory queueingFactory, EntityPropertiesFactory entityPropsFactory)
Create new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<SenderTask<?>>
createSenderTasks(HandlerKey handlerKey)
Create a collection ofobjects
for a specified handler key.void
drainBuffersToQueue(QueueingReason reason)
Drain memory buffers to queue for all tasks.void
flushNow(HandlerKey handlerKey)
void
shutdown()
Shut down all tasks.void
shutdown(String handle)
Shut down specific pipeline
-
-
-
Constructor Detail
-
SenderTaskFactoryImpl
public SenderTaskFactoryImpl(APIContainer apiContainer, UUID proxyId, TaskQueueFactory taskQueueFactory, @Nullable QueueingFactory queueingFactory, EntityPropertiesFactory entityPropsFactory)
Create new instance.- Parameters:
apiContainer
- handles interaction with Wavefront servers as well as queueing.proxyId
- proxy ID.taskQueueFactory
- factory for backing queues.queueingFactory
- factory for queueing.entityPropsFactory
- factory for entity-specific wrappers for mutable proxy settings.
-
-
Method Detail
-
createSenderTasks
public Collection<SenderTask<?>> createSenderTasks(@Nonnull HandlerKey handlerKey)
Description copied from interface:SenderTaskFactory
Create a collection ofobjects
for a specified handler key.- Specified by:
createSenderTasks
in interfaceSenderTaskFactory
- Parameters:
handlerKey
- unique identifier for the handler.- Returns:
- created tasks.
-
shutdown
public void shutdown()
Description copied from interface:SenderTaskFactory
Shut down all tasks.- Specified by:
shutdown
in interfaceSenderTaskFactory
-
shutdown
public void shutdown(@Nonnull String handle)
Description copied from interface:SenderTaskFactory
Shut down specific pipeline- Specified by:
shutdown
in interfaceSenderTaskFactory
- Parameters:
handle
- pipeline's handle
-
drainBuffersToQueue
public void drainBuffersToQueue(QueueingReason reason)
Description copied from interface:SenderTaskFactory
Drain memory buffers to queue for all tasks.- Specified by:
drainBuffersToQueue
in interfaceSenderTaskFactory
- Parameters:
reason
- reason for queueing
-
flushNow
public void flushNow(@Nonnull HandlerKey handlerKey)
-
-