|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.hipolite.database.ReplicationDAO
public class ReplicationDAO
This class is used to execute the database requests
| Constructor Summary | |
|---|---|
ReplicationDAO()
|
|
| Method Summary | |
|---|---|
void |
lockMasterTables(Connection connection)
Locks the master tables |
int |
masterShowStatus(Connection connection)
Shows the master status |
void |
resetMaster(Connection connection)
Resets the master |
void |
resetSlave(Connection connection)
Resets the slave |
int |
slaveShowStatus(Connection connection)
Shows the slave status |
void |
startSlave(Connection connection)
Starts the slave |
void |
stopSlave(Connection connection)
Stops the slave |
void |
unlockMasterTables(Connection connection)
Unlocks the master tables |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReplicationDAO()
| Method Detail |
|---|
public void resetMaster(Connection connection)
throws SQLException
connection - Connection
SQLException - If a SQL exception occurred
public void resetSlave(Connection connection)
throws SQLException
connection - Connection
SQLException - If a SQL exception occurred
public void lockMasterTables(Connection connection)
throws SQLException
connection - Connection
SQLException - If a SQL exception occurred
public void unlockMasterTables(Connection connection)
throws SQLException
connection - Connection
SQLException - If a SQL exception occurred
public void startSlave(Connection connection)
throws SQLException
connection - Connection
SQLException - If a SQL exception occurred
public void stopSlave(Connection connection)
throws SQLException
connection - Connection
SQLException - If a SQL exception occurred
public int masterShowStatus(Connection connection)
throws SQLException
connection - Connection
SQLException - If a SQL exception occurred
public int slaveShowStatus(Connection connection)
throws SQLException
connection - Connection
SQLException - If a SQL exception occurred
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||