|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.flume.channel.jdbc.JdbcChannel
public class JdbcChannel
A JDBC based channel implementation.
| Constructor Summary | |
|---|---|
JdbcChannel()
Instantiates a new JDBC Channel. |
|
| Method Summary | |
|---|---|
void |
configure(Context context)
|
String |
getName()
|
Transaction |
getTransaction()
|
void |
put(Event event)
Puts the given event in the channel. |
void |
shutdown()
Instructs the channel to release any resources held in preparation of shutting down. |
Event |
take()
Returns the next event from the channel if available. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JdbcChannel()
| Method Detail |
|---|
public void put(Event event)
throws ChannelException
ChannelPuts the given event in the channel.
Note: This method must be invoked within an active Transaction boundary. Failure to do so can lead to unpredictable results.
put in interface Channelevent - the event to transport.
ChannelException - in case this operation fails.Transaction.begin()
public Event take()
throws ChannelException
ChannelReturns the next event from the channel if available. If the channel does not have any events available, this method would return null.
Note: This method must be invoked within an active Transaction boundary. Failure to do so can lead to unpredictable results.
take in interface ChannelChannelException - in case this operation fails.Transaction.begin()public Transaction getTransaction()
getTransaction in interface Channelpublic void shutdown()
Channel
shutdown in interface Channelpublic String getName()
getName in interface Channelpublic void configure(Context context)
configure in interface Configurable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||