@InterfaceAudience.Public @InterfaceStability.Stable public class EmbeddedAgent extends Object
Constructor and Description |
---|
EmbeddedAgent(String name) |
Modifier and Type | Method and Description |
---|---|
void |
configure(Map<String,String> properties)
Configures the embedded agent.
|
void |
put(Event event)
Adds event to the channel owned by the agent.
|
void |
putAll(List<Event> events)
Adds events to the channel owned by the agent.
|
void |
start()
Started the agent.
|
void |
stop()
Stops the agent.
|
public EmbeddedAgent(String name)
public void configure(Map<String,String> properties) throws FlumeException
properties
- source, channel, and sink group configurationFlumeException
- if a component is unable to be found or configuredIllegalStateException
- if called while the agent is startedpublic void start() throws FlumeException
FlumeException
- if a component cannot be startedIllegalStateException
- if the agent has not been configured or is
already startedpublic void stop() throws FlumeException
FlumeException
- if a component cannot be stoppedIllegalStateException
- if the agent is not startedpublic void put(Event event) throws EventDeliveryException
event
- EventDeliveryException
- if unable to add event to channelpublic void putAll(List<Event> events) throws EventDeliveryException
events
- EventDeliveryException
- if unable to add event to channelCopyright © 2009–2019 Apache Software Foundation. All rights reserved.