* @exception StandardException Standard Derby exception policy,
* thrown on error.
*/
public void stopReplicationMaster() throws StandardException {
MasterFactory masterFactory = null;
if (isReadOnly()) {
throw StandardException.newException(
SQLState.LOGMODULE_DOES_NOT_SUPPORT_REPLICATION);
}
try {
masterFactory = (MasterFactory)
Monitor.findServiceModule(this, getMasterFactoryModule());
}
catch (StandardException se) {
throw StandardException.newException(
SQLState.REPLICATION_NOT_IN_MASTER_MODE);
}
masterFactory.stopMaster();
}