public class MaxVarService extends AppService implements Service, MaxVarServiceRemote, Dependable
Hashtable,
Service,
psdi.server.SrvContextcurrentState, dbManager, INIT, liveObjCount, load, LOAD, mxServer, name, RUN, running, stateCmdList, stateList, STOP, urlAPPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGERappenderPrefix, 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 |
|---|
MaxVarService(MXServer mxServer) |
MaxVarService(java.lang.String url,
MXServer mxServer) |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(java.util.Properties configData)
Configure the AppService.
|
void |
destroy()
Release system resources.
|
boolean |
getBoolean(java.lang.String key,
java.lang.String orgSite)
Return the value for the MaxVar as a boolean
|
double |
getDouble(java.lang.String key,
java.lang.String orgSite)
Return the value for the MaxVar as a double
|
float |
getFloat(java.lang.String key,
java.lang.String orgSite)
Return the value for the MaxVar as a float
|
int |
getInt(java.lang.String key,
java.lang.String orgSite)
Return the value for the MaxVar as an integer
|
int |
getLoad()
Required by ServiceRemote.
|
long |
getLong(java.lang.String key,
java.lang.String orgSite)
Return the value for the MaxVar as a long
|
java.lang.String |
getMaxVarType(java.lang.String key)
Returns the maxvartype for the varname
|
java.lang.String |
getString(java.lang.String key,
java.lang.String orgSite)
Return the value for the MaxVar as a string
|
java.lang.String |
getString(java.lang.String key,
java.lang.String org,
java.lang.String site)
Returns the value for maxvar for given org and site
|
java.lang.String[] |
getStringList(java.lang.String key,
java.lang.String orgSite)
Return the specified variable as a String[].
|
java.lang.String |
getURL()
Required by ServiceRemote.
|
boolean |
isAppService()
Required by ServiceRemote.
|
boolean |
isNull(java.lang.String key,
java.lang.String orgSite)
Return true if the row exists in maxvars but the varvalue is null.
|
boolean |
isSingletonService()
Is used to setup singleton services, i.e.
|
java.lang.Object |
put(java.lang.String key,
java.lang.String orgSiteId,
java.lang.Object value)
Put a maxvar value into the hashtable.
|
java.lang.Object |
remove(java.lang.String key,
java.lang.String orgSiteId)
Remove a maxvar from the hashtable.
|
void |
restart()
Flushes old values out of internal cache
|
void |
setURL(java.lang.String url)
Required by ServiceRemote.
|
checkSecurity, freeDBConnection, freeMboSet, getCriteria, getCriteriaList, getCurrentState, getDBConnection, getLiveObjCount, getMaximoDD, getMaxVar, getMboSet, getMXServer, getName, getProfile, getProxy, getSchemaOwner, getServiceInfo, getServiceLogger, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, init, initCriteriaList, isRunning, setName, setProxy, setRunning, verifyUser, verifyUserclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNameisRunning, setRunningpublic MaxVarService(MXServer mxServer) throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic MaxVarService(java.lang.String url,
MXServer mxServer)
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic void configure(java.util.Properties configData)
AppServiceconfigure in interface Serviceconfigure in class AppServiceServicepublic void destroy()
Servicedestroy in interface Servicedestroy in class AppServiceServicepublic java.lang.String getString(java.lang.String key,
java.lang.String orgSite)
throws MXException
getString in interface MaxVarServiceRemotekey - The name of the MaxVarorgSite - MXExceptionpublic java.lang.String[] getStringList(java.lang.String key,
java.lang.String orgSite)
throws MXException,
java.rmi.RemoteException
getStringList in interface MaxVarServiceRemotekey - The name of the MaxVarorgSite - MXExceptionjava.rmi.RemoteExceptionpublic int getInt(java.lang.String key,
java.lang.String orgSite)
throws MXException
getInt in interface MaxVarServiceRemotekey - The name of the MaxVarorgSite - MXExceptionpublic boolean getBoolean(java.lang.String key,
java.lang.String orgSite)
throws MXException
getBoolean in interface MaxVarServiceRemotekey - The name of the MaxVarorgSite - MXExceptionpublic double getDouble(java.lang.String key,
java.lang.String orgSite)
throws MXException
getDouble in interface MaxVarServiceRemotekey - The name of the MaxVarorgSite - MXExceptionpublic float getFloat(java.lang.String key,
java.lang.String orgSite)
throws MXException
getFloat in interface MaxVarServiceRemotekey - The name of the MaxVarorgSite - MXExceptionpublic long getLong(java.lang.String key,
java.lang.String orgSite)
throws MXException
getLong in interface MaxVarServiceRemotekey - The name of the MaxVarorgSite - MXExceptionpublic boolean isNull(java.lang.String key,
java.lang.String orgSite)
throws MXException
isNull in interface MaxVarServiceRemotekey - The name of the MaxVarorgSite - MXExceptionpublic java.lang.Object put(java.lang.String key,
java.lang.String orgSiteId,
java.lang.Object value)
throws MXException,
java.rmi.RemoteException
MaxVars save.put in interface MaxVarServiceRemotekey - The name of the maxvar (varname).ogSiteId - value - The new value of the maxvar (varvalue).MXExceptionjava.rmi.RemoteExceptionMaxVarService.put(java.lang.String, java.lang.String, java.lang.Object)public java.lang.Object remove(java.lang.String key,
java.lang.String orgSiteId)
throws MXException,
java.rmi.RemoteException
MaxVars save.remove in interface MaxVarServiceRemotekey - The name of the maxvar (varname).ogSiteId - MXExceptionjava.rmi.RemoteExceptionMaxVarService.remove(java.lang.String, java.lang.String)public java.lang.String getURL()
getURL in interface AppServiceRemotegetURL in interface ServicegetURL in interface ServiceRemotegetURL in class AppServicepublic void setURL(java.lang.String url)
setURL in interface ServicesetURL in class AppServicepublic int getLoad()
getLoad in class AppServicepublic boolean isAppService()
isAppService in interface ServiceisAppService in interface ServiceRemoteisAppService in class AppServicepublic boolean isSingletonService()
isSingletonService in interface ServiceisSingletonService in interface ServiceRemoteisSingletonService in class AppServicepublic void restart()
throws java.rmi.RemoteException
restart in interface ServiceRemoterestart in class AppServicejava.rmi.RemoteExceptionpublic java.lang.String getMaxVarType(java.lang.String key)
throws java.rmi.RemoteException,
MXException
getMaxVarType in interface MaxVarServiceRemotekey - MXException,RemoteExceptionjava.rmi.RemoteExceptionMXExceptionpublic java.lang.String getString(java.lang.String key,
java.lang.String org,
java.lang.String site)
throws java.rmi.RemoteException,
MXException
getString in interface MaxVarServiceRemotekey - org - site - MXException,RemoteExceptionjava.rmi.RemoteExceptionMXException