public class AdminModeManager extends java.lang.Object implements MaximoCache, FixedLoggers
To coordinate Admin Mode for all instances on this database, use
MXServer reloadCache method with cache name ADMINMODE
and cache key equal to ON
or OFF
.
Call the MXServer method isAdminModeOn(true)
to ensure that
all instances are in Admin Mode before running the utility.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ADMIN_CANCEL
Value for reloadCache key to cancel a request for Admin Mode.
|
static java.lang.String |
ADMIN_LOGOUTMIN
Value for reloadCache key change Lotout Minutes for pending Admin Mode.
|
static java.lang.String |
ADMIN_OFF
Value for reloadCache key to turn off Admin Mode.
|
static java.lang.String |
ADMIN_ON
Value for reloadCache key to turn on Admin Mode.
|
APPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGER
appenderPrefix, LOGGERNAME_APP, LOGGERNAME_CRONTASK, LOGGERNAME_CRONTASKMGR, LOGGERNAME_DBCONNECTION, LOGGERNAME_DD, LOGGERNAME_DM, LOGGERNAME_DMPREVIEW, LOGGERNAME_EVENT, LOGGERNAME_EXCEPTION, LOGGERNAME_MAIL, LOGGERNAME_MAXIMO, LOGGERNAME_MT, LOGGERNAME_NULLMBOPOINTER, LOGGERNAME_SECURITY, LOGGERNAME_SENDFAILED, LOGGERNAME_SERVICE, LOGGERNAME_SQL, LOGGERNAME_SQL_CRONTASKMGR, LOGGERNAME_TXN, loggerPrefix
Constructor and Description |
---|
AdminModeManager() |
Modifier and Type | Method and Description |
---|---|
void |
clearListeners()
Clear adminListeners.
|
java.lang.String |
getName()
Return
ADMINMODE . |
void |
init()
Set adminMode to false.
|
boolean |
isAdminModeForAllInstances(boolean activeVal)
Check whether Admin Mode has the value specified for all instances of MXServer
sharing this database.
|
boolean |
isAdminModeOnThisInstance()
Identifies whether this instance is in Admin Mode.
|
boolean |
isAdminModePendingThisInstance()
Identifies whether this instance is entering Admin Mode.
|
boolean |
isAdminModeTurningOffThisInstance()
Identifies whether Admin Mode is in the middle of being turned off
for this instance.
|
boolean |
isTenantAdminMode() |
void |
listenToAdmin(MboRemote listenerMbo,
boolean listen)
Register another listener for Admin Mode change.
|
void |
reload()
Do nothing.
|
void |
reload(java.lang.String key)
Turn AdminMode on or off.
|
void |
setTenantAdminMode(boolean tenantAdminMode) |
public static java.lang.String ADMIN_ON
public static java.lang.String ADMIN_OFF
public static java.lang.String ADMIN_CANCEL
public static java.lang.String ADMIN_LOGOUTMIN
public void init() throws MXException
init
in interface MaximoCache
MXException
public java.lang.String getName()
ADMINMODE
.getName
in interface MaximoCache
MaximoCache.getName()
public void reload() throws MXException
reload
in interface MaximoCache
MXException
public void reload(java.lang.String key) throws MXException
reload
in interface MaximoCache
key
- "ON" or "OFF". On will turn on Admin Mode. Off will turn it off.MXException
setAdminON()
,
setAdminOFF(boolean)
,
changeLogoutMin()
public boolean isAdminModeOnThisInstance()
public boolean isAdminModePendingThisInstance()
adminModePending
identifies
whether the instance is entering Admin Mode. The variable
adminMode
identifies whether Admin Mode is fully
accomplished.public boolean isAdminModeTurningOffThisInstance()
adminModeTurningOff
identifies
whether the instance is Admin Mode is being turned off. The variable
adminMode
identifies whether Admin Mode is fully
accomplished.public boolean isAdminModeForAllInstances(boolean activeVal) throws MXException, java.rmi.RemoteException
activeVal
- True to check whether Admin Mode is ON for all instances.
False to check whether Admin Mode is OFF for all instances.MXException
java.rmi.RemoteException
public void listenToAdmin(MboRemote listenerMbo, boolean listen) throws MXException, java.rmi.RemoteException
listenerMbo
- ProcessMonitor mbo.listen
- True to start listening, False to stop listeningMXException
java.rmi.RemoteException
public void clearListeners()
public boolean isTenantAdminMode()
public void setTenantAdminMode(boolean tenantAdminMode)