|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.flume.channel.jdbc.impl.MySQLSchemaHandler
public class MySQLSchemaHandler
| Constructor Summary | |
|---|---|
protected |
MySQLSchemaHandler(DataSource dataSource)
|
| Method Summary | |
|---|---|
void |
createSchemaObjects(boolean createForeignKeys,
boolean createIndex)
Creates the schema. |
PersistableEvent |
fetchAndDeleteEvent(String channel,
Connection connection)
Retrieves the next persistent event from the database. |
long |
getChannelSize(Connection connection)
Returns the current size of the channel using the connection specified that must have an active transaction ongoing. |
boolean |
schemaExists()
|
void |
storeEvent(PersistableEvent pe,
Connection connection)
Inserts the given persistent event into the database. |
void |
validateSchema()
Validates the schema. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected MySQLSchemaHandler(DataSource dataSource)
| Method Detail |
|---|
public boolean schemaExists()
schemaExists in interface SchemaHandlerpublic void validateSchema()
SchemaHandler
validateSchema in interface SchemaHandler
public void storeEvent(PersistableEvent pe,
Connection connection)
SchemaHandler
storeEvent in interface SchemaHandlerpe - the event to persistconnection - the connection to use
public PersistableEvent fetchAndDeleteEvent(String channel,
Connection connection)
SchemaHandler
fetchAndDeleteEvent in interface SchemaHandlerchannel - the channel name from which event will be retrievedconnection - the connection to use
public long getChannelSize(Connection connection)
SchemaHandler
getChannelSize in interface SchemaHandler
public void createSchemaObjects(boolean createForeignKeys,
boolean createIndex)
SchemaHandler
createSchemaObjects in interface SchemaHandlercreateForeignKeys - a flag which indicates if the foreign key
constraints should be created where necessary.createIndex - a flag which indicates if indexes must be created during
the creation of the schema.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||