|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.flume.agent.embedded.EmbeddedAgent
@InterfaceAudience.Public @InterfaceStability.Stable public class EmbeddedAgent
EmbeddedAgent gives Flume users the ability to embed simple agents in applications. This Agent is mean to be much simpler than a traditional agent and as such it's more restrictive than what can be configured for a traditional agent. For specifics see the Flume User Guide.
Constructor Summary | |
---|---|
EmbeddedAgent(String name)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EmbeddedAgent(String name)
Method Detail |
---|
public void configure(Map<String,String> properties) throws FlumeException
properties
- source, channel, and sink group configuration
FlumeException
- if a component is unable to be found or configured
IllegalStateException
- if called while the agent is startedpublic void start() throws FlumeException
FlumeException
- if a component cannot be started
IllegalStateException
- if the agent has not been configured or is
already startedpublic void stop() throws FlumeException
FlumeException
- if a component cannot be stopped
IllegalStateException
- 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 channel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |