public class MXServer extends java.lang.Object implements MXServerRemote, FixedLoggers, MaxRemoteProxy
Service
,
ConfigFile
,
MaximoDD
,
psdi.mbo.Connection
Modifier and Type | Class and Description |
---|---|
static class |
MXServer.SecurityContextFlag |
class |
MXServer.SmtpAuthenticator
Authentication class for mail session.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
API_KEY |
static boolean |
db2UseWithURforViews |
boolean |
failToGetOracleSID |
static java.lang.String |
HTML_CONTENT
Used for the HTML content type for sending emails.
|
static java.lang.String |
MTENABLEDPROPERTY |
boolean |
printMboCount |
static java.lang.String |
REQ_PARAM_S2STOKEN |
static int |
RMIPORT
Port number used by RMI to communicate, set in the properties file
|
static int |
RMIREGISTRYPORT
Port number used by RMI Registry.
|
static int |
serverTimeStampUpdateRate
The frequency in seconds for the server to update server timestamp to
indicate that it is alive.
|
static java.lang.String |
TEXT_CONTENT
Used for the text content type for sending emails.
|
static java.lang.String[][] |
validLanguageList |
BRAND_MAXIMO, BRAND_MAXIMO_AND_TIVOLI, BRAND_NONE, BRAND_TIVOLI
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
Modifier and Type | Method and Description |
---|---|
void |
addApp(java.lang.String app)
Add the specified app to the
validApps HashSet. |
void |
addToMaximoCache(java.lang.String name,
MaximoCache obj)
Adds the cache object to maximo cache.
|
void |
addWarning(MXException e,
java.lang.Object id) |
void |
checkAdminRestart()
When booting, check maxvar to see whether MXServer should be started in Admin Mode.
|
void |
checkFailedTenants() |
void |
clearLongOpPipe()
Clear out the long op message pipe.
|
void |
clearSecurityContext()
Clear security context flag
|
static void |
clearTenantContext()
Clear the tenant context.
|
void |
clearTenantRealmMap() |
void |
clearUserInput(UserInfo ui)
Remove the old enough entries (older than 5min).
|
void |
clearWarnings(java.lang.Object id) |
void |
collectTenantDBConForThisServer(UserInfo info) |
void |
collectTenantDBConnInfo(UserInfo info) |
MXTransaction |
createMXTransaction()
Create a new transaction.
|
void |
decrementMboCount(java.lang.String name,
int tenantID)
Decrement the mbocount for the mbo and teantnt.
|
void |
decrementMbosetCount(java.lang.String name)
Deprecated.
|
void |
decrementMbosetCount(java.lang.String name,
int tenantID) |
void |
decrementMbosetIPCount(java.lang.String objName,
java.lang.String clientHost,
java.lang.String clientAddr)
Used to count AddUser and ForgotPassword sets by IP for IP Blocking checks.
|
void |
destroy()
Calls destroy() on each AppService and System Service.
|
void |
disableService(java.lang.String svc)
Disable ( unbind ) a service.
|
void |
enableService(java.lang.String svc)
Enable a service.
|
byte[] |
encData(java.lang.String in,
int type)
Encrypt the input string.
|
java.util.List<java.lang.Integer> |
getAllTenantIdsList(UserInfo landlordInfo)
Get a list of all the tenant ids except for configuration administrator, ordered by
tenant ID.
|
com.ibm.json.java.JSONObject |
getAllTenantsMboCountAsJSON() |
java.lang.String |
getAppServerNameandVersion()
Returns the App Srever Name and Version
|
java.lang.String[] |
getAppServiceNames()
Deprecated.
|
AutoKeyCache |
getAutoKeyCache() |
java.lang.String |
getBaseCalendar()
Gets The System Calendar Type
|
java.lang.String |
getBaseLang()
Returns the base language code
|
int |
getBranding()
Return the branding for this instance.
|
UserInputBulletin |
getBulletin() |
static BulletinBoardServiceRemote |
getBulletinBoard()
Return the Bulletin board service object.
|
MaxConditionCache |
getConditionCache()
return the maximo condition cache.
|
java.util.Properties |
getConfig()
Deprecated.
|
java.util.Properties |
getConfig(UserInfo userInfo)
Deprecated.
|
CronTaskManager |
getCronTaskManager()
Return the CronTaskManager.
|
java.lang.String |
getDatabaseProductName()
Returns the name of the database product name.
|
java.lang.String |
getDatabaseProductSimpleVersion()
Returns the database product version Major.Minor.
|
java.lang.String |
getDatabaseProductVersion()
Returns the database product version string.
|
DataRestrictionCache |
getDataRestrictionCache() |
java.util.Date |
getDate()
Returns the current date sync'ed with the database server.
|
java.util.Date |
getDate(java.util.Locale l,
java.util.TimeZone tz)
Returns the date in timezone and locale
|
int |
getDBConnUsed()
Returns the number of coonections used from the DBManager
|
DBManager |
getDBManager() |
int |
getDBPlatform()
Returns the database platform as integer.
|
int |
getEvalDaysRemaining()
Return the number of days remaining in the evaluation period.
|
static java.util.Map |
getEventTopicsCache() |
static EventTopicTree |
getEventTopicTree()
Static method to access event topic tree.
|
java.lang.String[] |
getFreeMemory()
Returns a String array of JVM runtime free memory for this server
|
java.lang.Object |
getFromMaximoCache(java.lang.String name)
Returns the cache object to maximo cache.
|
static java.util.Map |
getGlobalEventTopicsCache() |
java.util.UUID |
getGuid()
Return the Guid for this instance of MXServer.
|
java.lang.String[][] |
getLanguageList()
Returns the language ID and name in corresponding language
|
java.util.HashSet |
getLicenseKeys()
Return a HashSet of license keys.
|
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> |
getLoadedTenants()
unload tenant from all maximo caches
|
java.util.Set<java.lang.String> |
getLoadedTenants(java.lang.String cacheName)
remove tenant from specific cache
|
java.lang.String[] |
getLocalAppList() |
static MXServer.SmtpAuthenticator |
getMailAuth()
Authentication for mail session.
|
MboValueInfo |
getMasterMboValueInfo(MboRemote tenantMbo)
Get MboValueInfo for Master for given object and atribute
|
java.util.Map<java.lang.String,java.lang.String> |
getMasterModifiedObjects()
Get lsit of objects which were changted (but not configured yet) by Master
|
MaxDomainCache |
getMaxDomainCache() |
java.util.Set<java.lang.String> |
getMaximoCacheNames()
Return the names of cache currently in MaximoCache.
|
MaximoDD |
getMaximoDD() |
MaximoMLDD |
getMaximoMLDD()
Return the MaximoMLDD
|
MaxMessageCache |
getMaxMessageCache()
Return the MaximoMessageCache
|
static long |
getMaxSessionID()
Returns a unique maxsession id as object.
|
java.lang.String |
getMaxupgValue()
Returns the MAXUPG value of MAXVARS table
|
java.lang.String |
getMAXUPGValue(java.sql.Connection con,
java.lang.String name)
Gets the MAXUPG.
|
java.lang.String |
getMboCount()
Prints the list of mbosets and the mbo count.
|
java.util.ArrayList |
getMboCounts()
Deprecated.
|
java.util.ArrayList |
getMboCounts(int tenantID)
This method returns an ArrayList of MboSet and Mbo counts
The Array list contains a list of String[] in the following
format
For non-MT
String["Server Name","MboSet Name", "MboSet Count", "Mbo Count"]
For MT["Server Name-Tenant Code","MboSet Name", "MboSet Count", "Mbo Count"]
String
|
MboSetRemote |
getMboSet(java.lang.String name,
UserInfo user)
Lookup a MboSet and return to the caller
|
int |
getMboSetCount(java.lang.String objName)
Get the number of sets in memory for the specified object.
|
int |
getMboSetIPCount(java.lang.String objName,
java.lang.String clientHost,
java.lang.String clientAddr)
Get count by IP.
|
java.util.ArrayList |
getMEAServerVersion()
Returns the MEA Version
|
java.lang.String |
getMessage(MXException mxe,
java.lang.String langCode)
Returns message for the exception and langcode
|
java.lang.String |
getMessage(java.lang.String group,
java.lang.String key,
java.lang.String langCode)
Returns the maxmessage entry for group and key
|
java.lang.String[] |
getMessages(java.lang.String group,
java.lang.String[] key,
java.lang.String langCode)
Return list of translated strings from the maxmessages table in the order specified by the array of keys passed
|
MXCipher |
getMXCipher()
Returns instance of MXCipher for encryption / decrypption, for CRYPTO maxtype.
|
MXCipherX |
getMXCipherX()
Returns instance of MXCipherX for encryption, for CRYPTOX maxtype.
|
static MXServer |
getMXServer() |
java.util.Properties |
getMxServerConfig()
Expose the properties.
|
MXServerInfo |
getMXServerInfo()
Returns the MXServerInfo object for additional properties.
|
java.lang.String[] |
getMXServerVersion()
Return the version for MXServer and any add-ons.
|
java.lang.String |
getName() |
java.lang.String |
getNativeSql(java.lang.String jdbcSql)
Deprecated.
|
CronTaskManager |
getNewCronTaskManager() |
java.lang.String |
getOrganization(java.lang.String siteId)
Returns organization id for the given siteid.
|
void |
getPackagingInfo(UserInfo ui)
Output info to Maximo Logger re: packaging in array of Strings.
|
java.util.HashSet |
getProductKeys()
Return a HashSet of product keys.
|
java.lang.String |
getProperty(java.lang.String propName)
Return the cached property value.
|
java.lang.String |
getProperty(java.lang.String propName,
boolean checkExists)
Return the cached property value.
|
java.lang.String |
getProperty(java.lang.String propName,
java.lang.String lang)
Return the cached property value.
|
java.lang.String |
getProperty(java.lang.String propName,
java.lang.String lang,
UserInfo userInfo)
Return the cached property value for a property not flagged as "private".
|
java.lang.String |
getProperty(java.lang.String propName,
UserInfo userInfo)
Return the cached property value for a property not flagged as "private".
|
java.rmi.Remote |
getProxy() |
java.lang.String |
getPublicProperty(java.lang.String propName)
Return a property that is flagged as public.
|
java.lang.String |
getPublicProperty(java.lang.String propName,
java.lang.String lang)
Return a property that is flagged as public.
|
java.lang.String |
getRegistryHostName()
Returns the Host name of the registry.
|
java.lang.String |
getRegistryPort()
Returns the port number of the host on which the registry is running.
|
java.util.Hashtable |
getRemoteUsers()
Return the remoteUser Hashtable
NOT IMPLEMENTED YET |
MXServer.SecurityContextFlag |
getSecurityContext()
Get security context flag if transaction can be saved or readonly
|
SrvCommRemote |
getServerCommandRemote(java.lang.String name,
java.lang.String passwd)
Deprecated.
|
SrvCommRemote |
getServerCommandRemote(UserInfo userInfo) |
java.lang.String |
getServerHost()
returns server's ip address
|
int |
getSQLServerPrefetchRows()
returns the number of rows to be prefetched for SQLServer.
|
SrvCommRemote |
getSrvComm(java.lang.String name,
java.lang.String passwd)
Return the Server Command "interface"
|
java.util.Properties |
getSystemProperties()
Returns system properties.
|
java.lang.String |
getSystemType()
Return a HashSet of license keys.
|
UserInfo |
getSystemUserInfo()
Returns the system user information for the system user.
|
java.lang.String |
getTaggedMessage(MXException mxe,
java.lang.String langCode)
Returns message with Messageidfor the exception and langcode
|
java.lang.String |
getTaggedMessage(java.lang.String group,
java.lang.String key,
java.lang.String langCode)
Returns the maxmessage with MessageID tagged (BMX id)entry for group and key
|
static int |
getTenantContext()
Return the tenant ID of the current tenant context.
|
static int |
getTenantContext(boolean tenantNotSetCheck)
get the tenant context.
|
java.util.List<java.lang.Integer> |
getTenantIdsList(UserInfo landlordInfo,
int status)
Get a list of tenant ids except for configuration administrator, ordered by
tenant ID.
|
java.util.HashMap<java.lang.String,java.lang.String> |
getTenantRealmMap()
Returns the tenant code and real name map
|
static java.lang.Object |
getUID()
Returns a unique id as object.
|
java.lang.String |
getURL()
Returns the URL of the MXServer.
|
UserInfo |
getUserInfo(java.lang.String userIdentity)
Returns the user information for the given user.
|
java.lang.Object |
getUserInput(java.lang.String id,
UserInfo ui)
Get the user input of the id.
|
java.lang.String |
getUserLicenseKey()
Deprecated.
|
java.util.HashSet |
getValidApps()
Return a HashSet of valid apps, according to packaging rules.
|
java.util.ArrayList |
getWarnings(java.lang.Object id) |
static boolean |
hasFeatureToggle() |
boolean |
hasWarnings(java.lang.Object id) |
void |
incrementMboCount(java.lang.String name,
int tenantID)
Deprecated.
|
void |
incrementMbosetCount(java.lang.String name,
int tenantID)
This is to count the mbosets to debug gc.
|
void |
incrementMbosetIPCount(java.lang.String objName,
java.lang.String clientHost,
java.lang.String clientAddr)
Used to count AddUser and ForgotPassword sets by IP for IP Blocking checks.
|
void |
init(java.sql.Connection sysCon)
Initialize all the System Services in this environment.
|
boolean |
isAdminModeOff(boolean allInstances)
Tests whether MXServer Admin Mode is OFF.
|
boolean |
isAdminModeOn(boolean allInstances)
Tests whether MXServer is in Admin Mode.
|
boolean |
isAdminModePending()
Tests whether this instance of MXServer is starting to enter Admin Mode.
|
static boolean |
isBotcInstalled() |
static boolean |
isInlineThreadLog() |
boolean |
isLocal(java.lang.String serviceUrl) |
static boolean |
isMasterContext()
utility method for determining if the current thread context is for the master.
|
static boolean |
isMTEnabled() |
boolean |
isMxserverStarted()
returns true or false if mxserver has started or not
|
boolean |
isPermanentLicense()
Identifies whether this is a permanent license of Maximo.
|
boolean |
isReadOnlyApp(java.lang.String app)
Return a HashSet of license keys.
|
static boolean |
isRMIEnabled() |
boolean |
isSiteInOrganization(java.lang.String siteId,
java.lang.String orgId)
Returns whether the site belongs to the org or not.
|
boolean |
isSQLServerPrefetchRowsNeeded()
returns whether to prefetch rows or not.
|
static boolean |
isTenantRegContext() |
boolean |
isValidApp(java.lang.String app)
Identify whether this app is valid as far as packaging is concerned.
|
boolean |
isValidOrganization(java.lang.String orgId)
Returns whether the orgid is valid or not.
|
boolean |
isValidSite(java.lang.String siteId)
Returns whether the siteid is valid or not.
|
void |
listenToAdmin(MboRemote listenerMbo,
boolean listen)
Listen to messages from AdminModeManager when changing Admin Mode.
|
void |
loadCustomApps() |
void |
loadCustomApps(java.sql.Connection con) |
ServiceRemote |
lookup(java.lang.String name) |
ServiceRemote |
lookup(java.lang.String name,
UserInfo ui)
Return the specified remote service
|
ServiceRemote |
lookupLocal(java.lang.String name) |
void |
needToRunUpdateDB(java.lang.String product,
java.lang.String maxupg,
java.lang.String newRelDBVersion,
java.lang.String lastRelDBVersion,
java.lang.String varName,
boolean checkHF)
Checks maxupg,new realease version and old release version to see if updbdb needed.
|
void |
postUserInput(java.lang.String id,
java.lang.Object value,
UserInfo ui)
Post the object to the bulletin board maintained by the server.
|
java.lang.String |
printMaxsessionInfo()
Prints user information from maxsession table.
|
void |
reloadAdminModeByThread(java.lang.String key,
MboRemote listenerMbo)
This is the same as reloadCache for ADMINMODE, but it is done in a separate thread so that
the caller does not have to keep waiting.
|
void |
reloadMaximoCache(boolean flag)
reloads all maximo caches
|
void |
reloadMaximoCache(java.lang.String cacheName,
boolean updateAllServers)
reloads specific cache
|
void |
reloadMaximoCache(java.lang.String cacheName,
java.lang.String key,
boolean flag)
Reloads a specific sub component of the cache object.
|
void |
removeApp(java.lang.String app)
Remove the specified app from the
validApps HashSet. |
void |
removeFromMaximoCache(java.lang.String name)
Removes the cache object from maximo cache.
|
void |
removeMaxSessionEntriesDeadForAnHour(java.sql.Connection con)
Remove maxsession server entry and related user entries if server is not running for 8 minutes.
|
void |
removeUserInput(java.lang.String id,
UserInfo ui)
Remove the user input from the bulletin board.
|
java.lang.String |
resolveApiKey(java.lang.String apikey) |
void |
retryAsyncTask(java.sql.Connection con,
java.lang.String serverName,
java.lang.String serverHost)
Submit the inprogress async task if server was shut down when the task was running before.
|
void |
run()
A place holder incase the MXServer needs to run as a thread.
|
static void |
sendEMail(java.lang.String[] to,
java.lang.String from,
java.lang.String subject,
java.lang.String message)
Send an email
|
static void |
sendEMail(java.lang.String[] to,
java.lang.String from,
java.lang.String subject,
java.lang.String message,
java.lang.String attachment,
java.lang.String filename)
This method takes array of to addresses.
|
static void |
sendEMail(java.lang.String[] to,
java.lang.String from,
java.lang.String subject,
java.lang.Throwable t) |
static void |
sendEMail(java.lang.String to,
java.lang.String from,
java.lang.String subject,
java.lang.String message)
Send an email
|
static void |
sendEMail(java.lang.String to,
java.lang.String from,
java.lang.String subject,
java.lang.String message,
java.lang.String attachment,
java.lang.String filename)
Send an email
|
static void |
sendEMail(java.lang.String to,
java.lang.String cc,
java.lang.String bcc,
java.lang.String from,
java.lang.String subject,
java.lang.String message,
java.lang.String ReplyTo,
java.lang.String[] fileName,
java.lang.String[] urlName) |
static void |
sendEMail(java.lang.String to,
java.lang.String cc,
java.lang.String bcc,
java.lang.String from,
java.lang.String subject,
java.lang.String message,
java.lang.String ReplyTo,
java.lang.String[] fileName,
java.lang.String[] urlName,
java.util.Properties overrideProps)
This method uses Internetaddress parse to get email address.
|
static void |
sendEMail(java.lang.String to,
java.lang.String from,
java.lang.String subject,
java.lang.Throwable t)
Send an email
|
void |
setProxy(java.rmi.Remote proxy) |
void |
setSecurityCheck(MXServer.SecurityContextFlag securityFlag)
Sets the security context flag
|
void |
setServerHost(java.lang.String address)
sets server's ip address
|
static void |
setTenantContext(UserInfo ui)
Set security context to the tenant of the passed in UserInfo.
|
static int |
setTenantContext(UserInfo ui,
int tenantID)
Set the security context to the tenant by giving a landlord's userinfo.
|
static void |
setTenantRegContext(java.lang.Integer tenantID)
Set security context to the tenant of the passed in UserInfo.
|
java.io.InputStream |
setupLongOpPipe()
Set up the piped output stream for writing warnings.
|
static void |
start(java.util.Properties propsFromFile)
Start MXServer.
|
void |
unloadInactiveCaches(long interval)
unload tenant from all maximo caches
|
void |
unloadTenantCache()
unload tenant from all maximo caches
|
void |
unloadTenantCache(java.lang.String cacheName)
remove tenant from specific cache
|
static boolean |
useClassicMaximo() |
java.lang.String |
validateApiKeyConfigValue() |
void |
validateS2stokenConfigValue() |
java.lang.String |
validateThisApiKeyConfigValue(java.lang.String apiKey) |
void |
writeLongOpMsg(java.lang.String msg) |
public static final int serverTimeStampUpdateRate
public static int RMIPORT
public static int RMIREGISTRYPORT
public static java.lang.String[][] validLanguageList
public boolean printMboCount
public boolean failToGetOracleSID
public static boolean db2UseWithURforViews
public static final java.lang.String HTML_CONTENT
public static final java.lang.String TEXT_CONTENT
public static final java.lang.String MTENABLEDPROPERTY
public static final java.lang.String REQ_PARAM_S2STOKEN
public static final java.lang.String API_KEY
public static MXServer getMXServer() throws java.rmi.RemoteException
java.rmi.RemoteException
public static java.lang.Object getUID()
public static long getMaxSessionID()
public java.util.UUID getGuid()
public java.lang.String getServerHost()
public void setServerHost(java.lang.String address)
public void addToMaximoCache(java.lang.String name, MaximoCache obj)
public void removeFromMaximoCache(java.lang.String name)
public java.lang.Object getFromMaximoCache(java.lang.String name)
@TracePrimary public void reloadMaximoCache(boolean flag) throws MXException, java.rmi.RemoteException
reloadMaximoCache
in interface MXServerRemote
boolean
- flag to indicate if reloadMaximoCache called from crontask
or from other sources. True if from other sources , false if from cron taskMXException,RemoteException
java.rmi.RemoteException
MXException
reloadMaximoCache(boolean)
@TracePrimary public void unloadTenantCache() throws MXException, java.rmi.RemoteException
MXException,RemoteException
MXException
java.rmi.RemoteException
@TracePrimary public void unloadInactiveCaches(long interval) throws MXException, java.rmi.RemoteException
MXException,RemoteException
MXException
java.rmi.RemoteException
@TracePrimary public java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getLoadedTenants() throws MXException, java.rmi.RemoteException
MXException,RemoteException
MXException
java.rmi.RemoteException
@TracePrimary public void reloadMaximoCache(java.lang.String cacheName, boolean updateAllServers) throws MXException, java.rmi.RemoteException
reloadMaximoCache
in interface MXServerRemote
cachename
- updateAllServers
- True to update all other instances of MXServer, false
to update only this instance. When true, maxsession.reloadcache is updated
for the other instances with the names of cache to be reloaded.java.rmi.RemoteException
MXException
reloadMaximoCache(boolean)
@TracePrimary public void unloadTenantCache(java.lang.String cacheName) throws MXException, java.rmi.RemoteException
cachename
- MXException
java.rmi.RemoteException
@TracePrimary public java.util.Set<java.lang.String> getLoadedTenants(java.lang.String cacheName) throws MXException, java.rmi.RemoteException
cachename
- MXException
java.rmi.RemoteException
@TracePrimary public void reloadMaximoCache(java.lang.String cacheName, java.lang.String key, boolean flag) throws MXException, java.rmi.RemoteException
reloadMaximoCache
in interface MXServerRemote
cachename
- boolean
- flag to indicate if reloadMaximoCache called from crontask
or from other sources. True if from other sources , false if from cron taskMXException,RemoteException
java.rmi.RemoteException
MXException
reloadMaximoCache(boolean)
public void reloadAdminModeByThread(java.lang.String key, MboRemote listenerMbo) throws MXException, java.rmi.RemoteException
reloadAdminModeByThread
in interface MXServerRemote
ON
- or OFFlistenerMbo
- instance of ProcessMonitor mbo (can be null)MXException
java.rmi.RemoteException
reloadAdminModeByThread(java.lang.String, psdi.mbo.MboRemote)
public void destroy()
public java.util.HashSet getValidApps()
packagingCheck(psdi.server.DBManager)
public boolean isValidApp(java.lang.String app)
packagingCheck(psdi.server.DBManager)
public void addApp(java.lang.String app)
validApps
HashSet.
This is to support the Application Designer application.app
- Application namepublic void removeApp(java.lang.String app)
validApps
HashSet.
This is to support the Application Designer application.app
- Application namepublic java.util.HashSet getLicenseKeys() throws java.rmi.RemoteException
getLicenseKeys
in interface MXServerRemote
java.rmi.RemoteException
packagingCheck(psdi.server.DBManager)
public boolean isReadOnlyApp(java.lang.String app)
packagingCheck(psdi.server.DBManager)
public java.lang.String getSystemType()
packagingCheck(psdi.server.DBManager)
public boolean isPermanentLicense() throws MXException, java.rmi.RemoteException
isPermanentLicense
in interface MXServerRemote
MXException
java.rmi.RemoteException
isPermanentLicense
public java.util.HashSet getProductKeys() throws java.rmi.RemoteException
getProductKeys
in interface MXServerRemote
java.rmi.RemoteException
packagingCheck(psdi.server.DBManager)
public int getEvalDaysRemaining() throws MXException, java.rmi.RemoteException
getEvalDaysRemaining
in interface MXServerRemote
MXException
java.rmi.RemoteException
evalEndDate
public int getBranding()
getBranding
in interface MXServerRemote
getBranding()
public void getPackagingInfo(UserInfo ui) throws MXException, java.rmi.RemoteException
getPackagingInfo
in interface MXServerRemote
MXException
java.rmi.RemoteException
getPackagingInfo(psdi.security.UserInfo)
public java.lang.String getMaxupgValue()
public MboSetRemote getMboSet(java.lang.String name, UserInfo user) throws MXException, java.rmi.RemoteException
getMboSet
in interface MXServerRemote
MXException
java.rmi.RemoteException
public void init(java.sql.Connection sysCon) throws java.lang.Exception
java.lang.Exception
public static EventTopicTree getEventTopicTree()
public static java.util.Map getEventTopicsCache()
public static java.util.Map getGlobalEventTopicsCache()
public java.util.Set<java.lang.String> getMaximoCacheNames()
public void run()
public DBManager getDBManager()
public CronTaskManager getCronTaskManager()
public CronTaskManager getNewCronTaskManager()
public boolean isAdminModeOn(boolean allInstances) throws MXException, java.rmi.RemoteException
isAdminModeOn
in interface MXServerRemote
allInstances
- True to test Admin Mode for all instances using this database.
False to test Admin Mode for this instance only.MXException
java.rmi.RemoteException
isAdminModePending()
,
AdminModeManager
public boolean isAdminModeOff(boolean allInstances) throws MXException, java.rmi.RemoteException
isAdminModeOff
in interface MXServerRemote
allInstances
- True to test for all instances using this database.
False to test for this instance only.MXException
java.rmi.RemoteException
isAdminModePending()
,
AdminModeManager
public boolean isAdminModePending()
isAdminModeOn(boolean)
,
AdminModeManager
public void listenToAdmin(MboRemote listenerMbo, boolean listen) throws MXException, java.rmi.RemoteException
listenToAdmin
in interface MXServerRemote
listenerMbo
- Instance of ProcessMonitor Mbolisten
- True to listen, False to stop listeningMXException
java.rmi.RemoteException
AdminModeManager
public MaximoDD getMaximoDD()
public MaximoMLDD getMaximoMLDD()
public MaxMessageCache getMaxMessageCache()
public AutoKeyCache getAutoKeyCache()
@Deprecated public java.lang.String[] getAppServiceNames() throws java.rmi.RemoteException
getAppServiceNames
in interface MXServerRemote
java.rmi.RemoteException
public ServiceRemote lookup(java.lang.String name) throws java.rmi.RemoteException, MXException
lookup
in interface MXServerRemote
java.rmi.RemoteException
MXException
public ServiceRemote lookup(java.lang.String name, UserInfo ui) throws java.rmi.RemoteException, MXException
lookup
in interface MXServerRemote
java.rmi.RemoteException
MXException
public ServiceRemote lookupLocal(java.lang.String name) throws java.rmi.RemoteException, MXException
lookupLocal
in interface MXServerRemote
java.rmi.RemoteException
MXException
public java.lang.String[] getLocalAppList() throws java.rmi.RemoteException
getLocalAppList
in interface MXServerRemote
java.rmi.RemoteException
public SrvCommRemote getSrvComm(java.lang.String name, java.lang.String passwd) throws MXApplicationException
getSrvComm
in interface MXServerRemote
MXApplicationException
public java.util.Hashtable getRemoteUsers()
public java.util.Date getDate() throws java.rmi.RemoteException
getDate
in interface MXServerRemote
java.rmi.RemoteException
public java.util.Date getDate(java.util.Locale l, java.util.TimeZone tz) throws java.rmi.RemoteException
l
- tz
- java.rmi.RemoteException
public static boolean isRMIEnabled()
public static void start(java.util.Properties propsFromFile) throws java.lang.Exception
propsFromFile
- Properties from the maximo properties file (not from the database).
These will include properties required for database connectivity.java.lang.Exception
public static boolean isMTEnabled()
public static boolean isBotcInstalled()
public static boolean isInlineThreadLog()
public static boolean useClassicMaximo()
public static boolean hasFeatureToggle()
public static void setTenantRegContext(java.lang.Integer tenantID)
public static boolean isTenantRegContext()
public static void setTenantContext(UserInfo ui)
public static void clearTenantContext()
public static int setTenantContext(UserInfo ui, int tenantID) throws MXException
ui
- tenantID
- MXException
public static int getTenantContext()
public static int getTenantContext(boolean tenantNotSetCheck)
tenantNotSetCheck
- MXException
public static boolean isMasterContext()
public void removeMaxSessionEntriesDeadForAnHour(java.sql.Connection con) throws java.lang.Exception
con
- java.lang.Exception
public void retryAsyncTask(java.sql.Connection con, java.lang.String serverName, java.lang.String serverHost) throws java.lang.Exception
con
- serverName
- serverHost
- java.lang.Exception
public java.lang.String getMAXUPGValue(java.sql.Connection con, java.lang.String name)
con
- Database connection.public void needToRunUpdateDB(java.lang.String product, java.lang.String maxupg, java.lang.String newRelDBVersion, java.lang.String lastRelDBVersion, java.lang.String varName, boolean checkHF) throws java.lang.Exception
product
- maxupg
- Actual level (from varName).
If checking hotfix level and this is null on database, then param will be empty string.newRelDBVersion
- Required level.
If checking hotfix level and none are required, this will be empty string.lastRelDBVersion
- If checking hotfix level, this will be empty string.varName
- Varname for getting actual level from maxvars table.checkHF
- True if checking hotfix level, false is checking base level.java.lang.Exception
@Deprecated public java.util.Properties getConfig()
getProperty
for
getting the value of a single property.
This method should not be exposed remotely.@Deprecated public java.util.Properties getConfig(UserInfo userInfo)
getProperty
for
getting the value of a single property.
If userInfo is null, this will return null.getConfig
in interface MXServerRemote
userInfo
- UserInfo making the requestgetConfig(UserInfo userInfo)
public java.lang.String getProperty(java.lang.String propName)
propName
- Property nameMaxPropCache.getProperty(String)
public java.lang.String getProperty(java.lang.String propName, boolean checkExists)
propName
- Property namecheckExists
- Suppress log message if falseMaxPropCache.getProperty(String)
public java.lang.String getProperty(java.lang.String propName, UserInfo userInfo)
getProperty
in interface MXServerRemote
propName
- Property nameuserInfo
- UserInfo making the requestMaxPropCache.getProperty(String)
public java.lang.String getProperty(java.lang.String propName, java.lang.String lang)
propName
- Property namelang
- Language codeMaxPropCache.getProperty(String, String)
public java.lang.String getProperty(java.lang.String propName, java.lang.String lang, UserInfo userInfo)
getProperty
in interface MXServerRemote
propName
- Property namelang
- Language codeuserInfo
- UserInfo making the requestMaxPropCache.getProperty(String, String)
public java.lang.String getPublicProperty(java.lang.String propName)
getPublicProperty
in interface MXServerRemote
propName
- Property nameMaxPropCache.getProperty(String)
public java.lang.String getPublicProperty(java.lang.String propName, java.lang.String lang)
getPublicProperty
in interface MXServerRemote
propName
- Property namelang
- Language codeMaxPropCache.getProperty(String)
public UserInfo getSystemUserInfo() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public UserInfo getUserInfo(java.lang.String userIdentity) throws MXException, java.rmi.RemoteException
SecurityService
for the available forms of authenticateUser.MXException
java.rmi.RemoteException
SecurityService.getUserInfo(String)
public void enableService(java.lang.String svc) throws MXException
MXException
public void disableService(java.lang.String svc)
public java.lang.String getURL()
public java.lang.String getRegistryHostName()
public java.lang.String getRegistryPort()
public MXServerInfo getMXServerInfo()
public java.lang.String getName()
getName
in interface MXServerRemote
getName()
public void validateS2stokenConfigValue() throws MXApplicationException
MXApplicationException
public java.lang.String validateThisApiKeyConfigValue(java.lang.String apiKey) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.lang.String resolveApiKey(java.lang.String apikey) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public java.lang.String validateApiKeyConfigValue() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public boolean isLocal(java.lang.String serviceUrl)
public MXTransaction createMXTransaction() throws java.rmi.RemoteException
java.rmi.RemoteException
public static BulletinBoardServiceRemote getBulletinBoard() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public static void sendEMail(java.lang.String to, java.lang.String from, java.lang.String subject, java.lang.Throwable t) throws javax.mail.MessagingException
javax.mail.MessagingException
public static void sendEMail(java.lang.String to, java.lang.String from, java.lang.String subject, java.lang.String message) throws javax.mail.MessagingException
javax.mail.MessagingException
public static void sendEMail(java.lang.String to, java.lang.String from, java.lang.String subject, java.lang.String message, java.lang.String attachment, java.lang.String filename) throws javax.mail.MessagingException
javax.mail.MessagingException
public static void sendEMail(java.lang.String[] to, java.lang.String from, java.lang.String subject, java.lang.Throwable t) throws javax.mail.MessagingException
javax.mail.MessagingException
public static void sendEMail(java.lang.String[] to, java.lang.String from, java.lang.String subject, java.lang.String message) throws javax.mail.MessagingException
javax.mail.MessagingException
public static void sendEMail(java.lang.String[] to, java.lang.String from, java.lang.String subject, java.lang.String message, java.lang.String attachment, java.lang.String filename) throws javax.mail.MessagingException
to
- from
- subject
- message
- attachment
- filename
- javax.mail.MessagingException
sendEMail( String,String,String,String,String,String,String,String[],String[])
public static void sendEMail(java.lang.String to, java.lang.String cc, java.lang.String bcc, java.lang.String from, java.lang.String subject, java.lang.String message, java.lang.String ReplyTo, java.lang.String[] fileName, java.lang.String[] urlName) throws javax.mail.MessagingException
javax.mail.MessagingException
sendEMail(String, String, String, String, String, String, String, String[], String[], Properties)
public static void sendEMail(java.lang.String to, java.lang.String cc, java.lang.String bcc, java.lang.String from, java.lang.String subject, java.lang.String message, java.lang.String ReplyTo, java.lang.String[] fileName, java.lang.String[] urlName, java.util.Properties overrideProps) throws javax.mail.MessagingException
to
- cc
- bcc
- from
- subject
- message
- ReplyTo
- fileName
- urlName
- overrideProps
- Properties that should override the system mail properties for
this message. For example, "mail.smtp.sendpartial", "true".
Usually this parameter will be null or empty.javax.mail.MessagingException
public java.util.Properties getSystemProperties()
getSystemProperties
in interface MXServerRemote
public java.lang.String getDatabaseProductName()
getDatabaseProductName
in interface MXServerRemote
public java.lang.String getDatabaseProductSimpleVersion()
getDatabaseProductSimpleVersion
in interface MXServerRemote
public java.lang.String getDatabaseProductVersion()
getDatabaseProductVersion
in interface MXServerRemote
public int getDBPlatform()
UpgConstants
public int getDBConnUsed() throws java.rmi.RemoteException
getDBConnUsed
in interface MXServerRemote
java.rmi.RemoteException
public java.lang.String[] getFreeMemory() throws java.rmi.RemoteException
getFreeMemory
in interface MXServerRemote
java.rmi.RemoteException
@Deprecated public java.lang.String getUserLicenseKey()
getUserLicenseKey
in interface MXServerRemote
public java.lang.String getAppServerNameandVersion()
MXServerRemote
getAppServerNameandVersion
in interface MXServerRemote
public java.util.ArrayList getMEAServerVersion()
getMEAServerVersion
in interface MXServerRemote
public java.lang.String[] getMXServerVersion()
Version.getStringForHelpAboutDialog()
public boolean isValidSite(java.lang.String siteId) throws java.rmi.RemoteException
isValidSite
in interface MXServerRemote
java.rmi.RemoteException
public boolean isValidOrganization(java.lang.String orgId) throws java.rmi.RemoteException
isValidOrganization
in interface MXServerRemote
java.rmi.RemoteException
public boolean isSiteInOrganization(java.lang.String siteId, java.lang.String orgId) throws java.rmi.RemoteException
isSiteInOrganization
in interface MXServerRemote
java.rmi.RemoteException
public java.lang.String getOrganization(java.lang.String siteId) throws java.rmi.RemoteException
getOrganization
in interface MXServerRemote
java.rmi.RemoteException
public boolean isMxserverStarted()
public void checkAdminRestart() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void checkFailedTenants() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public MXCipher getMXCipher()
public byte[] encData(java.lang.String in, int type) throws MXException, java.rmi.RemoteException
encData
in interface MXServerRemote
in
- type
- MaxTypeMXException
java.rmi.RemoteException
public MXCipherX getMXCipherX()
@Deprecated public java.lang.String getNativeSql(java.lang.String jdbcSql)
jdbcSql
- The sql string in jdbc format.userInfo
- The UserInfo objectpublic UserInputBulletin getBulletin()
public void postUserInput(java.lang.String id, java.lang.Object value, UserInfo ui) throws java.rmi.RemoteException
postUserInput
in interface MXServerRemote
id
- value
- ui
- MXException
java.rmi.RemoteException
public java.lang.Object getUserInput(java.lang.String id, UserInfo ui) throws java.rmi.RemoteException
getUserInput
in interface MXServerRemote
id
- ui
- java.rmi.RemoteException
public void removeUserInput(java.lang.String id, UserInfo ui) throws java.rmi.RemoteException
removeUserInput
in interface MXServerRemote
id
- ui
- java.rmi.RemoteException
public void clearUserInput(UserInfo ui)
clearUserInput
in interface MXServerRemote
ui
- java.rmi.RemoteException
public java.lang.String getBaseLang() throws MXException, java.rmi.RemoteException
getBaseLang
in interface MXServerRemote
MXException
java.rmi.RemoteException
public java.lang.String[][] getLanguageList() throws MXException, java.rmi.RemoteException
getLanguageList
in interface MXServerRemote
MXException
java.rmi.RemoteException
public java.lang.String getMessage(java.lang.String group, java.lang.String key, java.lang.String langCode) throws MXException, java.rmi.RemoteException
getMessage
in interface MXServerRemote
group
- key
- MXException
java.rmi.RemoteException
public java.lang.String getTaggedMessage(java.lang.String group, java.lang.String key, java.lang.String langCode) throws MXException, java.rmi.RemoteException
getTaggedMessage
in interface MXServerRemote
group
- key
- MXException
java.rmi.RemoteException
public java.lang.String[] getMessages(java.lang.String group, java.lang.String[] key, java.lang.String langCode) throws MXException, java.rmi.RemoteException
getMessages
in interface MXServerRemote
group
- key
- MXException
java.rmi.RemoteException
public java.lang.String getMessage(MXException mxe, java.lang.String langCode) throws MXException, java.rmi.RemoteException
getMessage
in interface MXServerRemote
mxe
- langCode
- MXException
java.rmi.RemoteException
public java.lang.String getTaggedMessage(MXException mxe, java.lang.String langCode) throws MXException, java.rmi.RemoteException
getTaggedMessage
in interface MXServerRemote
mxe
- langCode
- MXException
java.rmi.RemoteException
public java.util.Map<java.lang.String,java.lang.String> getMasterModifiedObjects() throws MXException
serverName
- MXException
public MboValueInfo getMasterMboValueInfo(MboRemote tenantMbo) throws MXException
tenantMbo
- Tenant MboMXException
public java.util.ArrayList getWarnings(java.lang.Object id)
public void clearWarnings(java.lang.Object id)
public void addWarning(MXException e, java.lang.Object id)
public boolean hasWarnings(java.lang.Object id)
@Deprecated public void incrementMboCount(java.lang.String name, int tenantID)
public void decrementMboCount(java.lang.String name, int tenantID)
name
- tenantID
- public void incrementMbosetCount(java.lang.String name, int tenantID)
@Deprecated public void decrementMbosetCount(java.lang.String name)
public void decrementMbosetCount(java.lang.String name, int tenantID)
public void incrementMbosetIPCount(java.lang.String objName, java.lang.String clientHost, java.lang.String clientAddr)
objName
- MboSet nameclientHost
- clientAddr
- public void decrementMbosetIPCount(java.lang.String objName, java.lang.String clientHost, java.lang.String clientAddr)
objName
- MboSet nameclientHost
- clientAddr
- public int getMboSetIPCount(java.lang.String objName, java.lang.String clientHost, java.lang.String clientAddr)
public java.lang.String printMaxsessionInfo()
public java.lang.String getMboCount()
public int getMboSetCount(java.lang.String objName)
objName
- Object namepublic com.ibm.json.java.JSONObject getAllTenantsMboCountAsJSON()
public MaxConditionCache getConditionCache()
public DataRestrictionCache getDataRestrictionCache()
public MaxDomainCache getMaxDomainCache()
public java.io.InputStream setupLongOpPipe() throws MXException
os
- MXException
public void clearLongOpPipe()
public void writeLongOpMsg(java.lang.String msg)
public int getSQLServerPrefetchRows()
public MXServer.SecurityContextFlag getSecurityContext()
public void clearSecurityContext()
public void setSecurityCheck(MXServer.SecurityContextFlag securityFlag)
securityFlag
- public boolean isSQLServerPrefetchRowsNeeded()
public java.util.Properties getMxServerConfig()
@Deprecated public SrvCommRemote getServerCommandRemote(java.lang.String name, java.lang.String passwd) throws MXApplicationException
getServerCommandRemote
in interface MXServerRemote
name
- passwd
- MXApplicationException
public SrvCommRemote getServerCommandRemote(UserInfo userInfo) throws MXApplicationException
getServerCommandRemote
in interface MXServerRemote
MXApplicationException
@Deprecated public java.util.ArrayList getMboCounts() throws MXApplicationException
getMboCounts
in interface MXServerRemote
MXApplicationException
public java.util.ArrayList getMboCounts(int tenantID) throws MXApplicationException
getMboCounts
in interface MXServerRemote
MXApplicationException
public static MXServer.SmtpAuthenticator getMailAuth()
public java.lang.String getBaseCalendar()
public java.util.List<java.lang.Integer> getTenantIdsList(UserInfo landlordInfo, int status) throws java.rmi.RemoteException, MXException
landlordInfo
- status
- java.rmi.RemoteException
MXException
public java.util.List<java.lang.Integer> getAllTenantIdsList(UserInfo landlordInfo) throws java.rmi.RemoteException, MXException
landlordInfo
- java.rmi.RemoteException
MXException
public void collectTenantDBConnInfo(UserInfo info) throws java.rmi.RemoteException, MXException
collectTenantDBConnInfo
in interface MXServerRemote
java.rmi.RemoteException
MXException
public void collectTenantDBConForThisServer(UserInfo info) throws java.rmi.RemoteException, MXException
collectTenantDBConForThisServer
in interface MXServerRemote
java.rmi.RemoteException
MXException
public void setProxy(java.rmi.Remote proxy)
setProxy
in interface MaxRemoteProxy
public java.rmi.Remote getProxy()
getProxy
in interface MaxRemoteProxy
public java.util.HashMap<java.lang.String,java.lang.String> getTenantRealmMap() throws MXException, java.rmi.RemoteException
getTenantRealmMap
in interface MXServerRemote
MXException
java.rmi.RemoteException
public void clearTenantRealmMap() throws java.rmi.RemoteException
clearTenantRealmMap
in interface MXServerRemote
java.rmi.RemoteException
public void loadCustomApps()
public void loadCustomApps(java.sql.Connection con)