Class MySQLUserManager
java.lang.Object
com.aoindustries.aoserv.daemon.util.BuilderThread
com.aoindustries.aoserv.daemon.mysql.MySQLUserManager
- All Implemented Interfaces:
TableListener,PackageManager.PackageListener
Controls the MySQL Users.
- Author:
- AO Industries, Inc.
-
Field Summary
Fields inherited from class com.aoindustries.aoserv.daemon.util.BuilderThread
DEFAULT_MAXIMUM_DELAY, DEFAULT_MINIMUM_DELAY, DEFAULT_PROCESS_TIMER_MAXIMUM_TIME, DEFAULT_PROCESS_TIMER_REMINDER_INTERVAL -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanstatic StringgetEncryptedPassword(Server mysqlServer, User.Name username) static voidsetPassword(Server mysqlServer, User.Name username, String password) Sets the password, updating password_last_changed.static voidstart()static voidMethods inherited from class com.aoindustries.aoserv.daemon.util.BuilderThread
getMaximumDelay, getMinimumDelay, getProcessTimerMaximumTime, getProcessTimerReminderInterval, getProcessTimerSubject, getRandomDelay, packageListUpdated, tableUpdated, waitForBuild
-
Method Details
-
doRebuild
protected boolean doRebuild()- Specified by:
doRebuildin classBuilderThread- Returns:
trueif successful orfalseif unsuccessful and needs to be retried.
-
getEncryptedPassword
public static String getEncryptedPassword(Server mysqlServer, User.Name username) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
setPassword
public static void setPassword(Server mysqlServer, User.Name username, String password) throws IOException, SQLException Sets the password, updating password_last_changed.- Throws:
IOExceptionSQLException
-
start
- Throws:
IOExceptionSQLException
-
waitForRebuild
public static void waitForRebuild() -
getProcessTimerDescription
- Specified by:
getProcessTimerDescriptionin classBuilderThread
-
