Public Types | |
typedef std::pair< const std::string, const std::string > | map_key |
typedef std::map< const map_key, plugin::Plugin * > | map |
typedef std::vector< Plugin * > | vector |
Public Member Functions | |
Invalidator (std::string name_arg) | |
~Invalidator () | |
drizzled::plugin::ReplicationReturnCode | apply (drizzled::Session &in_session, const drizzled::message::Transaction &to_apply) |
virtual void | shutdownPlugin () |
virtual void | prime () |
virtual void | startup (drizzled::Session &) |
void | activate () |
void | deactivate () |
bool | isActive () const |
const std::string & | getName () const |
void | setModule (module::Module *module) |
const std::string & | getTypeName () const |
virtual bool | removeLast () const |
const std::string & | getModuleName () const |
Static Public Member Functions | |
static bool | addPlugin (TransactionApplier *applier) |
static void | removePlugin (TransactionApplier *applier) |
Private Member Functions | |
void | parseStatementTableMetadata (const drizzled::message::Statement &in_statement, std::string &in_schema_name, std::string &in_table_name) const |
void | invalidateByTableName (const std::string &in_schema_name, const std::string &in_table_name) const |
Definition at line 44 of file invalidator.h.
Invalidator::~Invalidator | ( | ) | [inline] |
Destructor
Definition at line 51 of file invalidator.h.
plugin::ReplicationReturnCode Invalidator::apply | ( | drizzled::Session & | in_session, |
const drizzled::message::Transaction & | to_apply | ||
) | [virtual] |
Does something with the transaction message
transaction | message to be invalidated if present in the cache |
Implements drizzled::plugin::TransactionApplier.
Definition at line 55 of file invalidator.cc.
void Invalidator::invalidateByTableName | ( | const std::string & | in_schema_name, |
const std::string & | in_table_name | ||
) | const [private] |
Given a schema name and table name, delete all the entries of the table from the cache.
[in] | stmt | The statement message |
[in] | Schema | name |
[in] | Table | name |
Definition at line 161 of file invalidator.cc.
void Invalidator::parseStatementTableMetadata | ( | const drizzled::message::Statement & | in_statement, |
std::string & | in_schema_name, | ||
std::string & | in_table_name | ||
) | const [private] |