public class MaxVarService extends AppService implements Service, MaxVarServiceRemote, Dependable
Hashtable
,
Service
,
psdi.server.SrvContext
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 |
---|
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, getCurrentState, getDBConnection, getLiveObjCount, getMaximoDD, getMaxVar, getMboSet, getMXServer, getName, getProfile, getProxy, getSchemaOwner, getServiceInfo, getServiceLogger, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, init, initCriteriaList, isRunning, setProxy, setRunning, verifyUser, verifyUser
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
isRunning, setRunning
public MaxVarService(MXServer mxServer) throws java.rmi.RemoteException
java.rmi.RemoteException
public MaxVarService(java.lang.String url, MXServer mxServer) throws java.rmi.RemoteException
java.rmi.RemoteException
public void configure(java.util.Properties configData)
AppService
configure
in interface Service
configure
in class AppService
Service
public void destroy()
Service
destroy
in interface Service
destroy
in class AppService
Service
public java.lang.String getString(java.lang.String key, java.lang.String orgSite) throws MXException
getString
in interface MaxVarServiceRemote
key
- The name of the MaxVarorgSite
- MXException
public java.lang.String[] getStringList(java.lang.String key, java.lang.String orgSite) throws MXException, java.rmi.RemoteException
getStringList
in interface MaxVarServiceRemote
key
- The name of the MaxVarorgSite
- MXException
java.rmi.RemoteException
public int getInt(java.lang.String key, java.lang.String orgSite) throws MXException
getInt
in interface MaxVarServiceRemote
key
- The name of the MaxVarorgSite
- MXException
public boolean getBoolean(java.lang.String key, java.lang.String orgSite) throws MXException
getBoolean
in interface MaxVarServiceRemote
key
- The name of the MaxVarorgSite
- MXException
public double getDouble(java.lang.String key, java.lang.String orgSite) throws MXException
getDouble
in interface MaxVarServiceRemote
key
- The name of the MaxVarorgSite
- MXException
public float getFloat(java.lang.String key, java.lang.String orgSite) throws MXException
getFloat
in interface MaxVarServiceRemote
key
- The name of the MaxVarorgSite
- MXException
public long getLong(java.lang.String key, java.lang.String orgSite) throws MXException
getLong
in interface MaxVarServiceRemote
key
- The name of the MaxVarorgSite
- MXException
public boolean isNull(java.lang.String key, java.lang.String orgSite) throws MXException
isNull
in interface MaxVarServiceRemote
key
- The name of the MaxVarorgSite
- MXException
public 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 MaxVarServiceRemote
key
- The name of the maxvar (varname).ogSiteId
- value
- The new value of the maxvar (varvalue).MXException
java.rmi.RemoteException
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 MaxVarServiceRemote
key
- The name of the maxvar (varname).ogSiteId
- MXException
java.rmi.RemoteException
remove(java.lang.String, java.lang.String)
public java.lang.String getURL()
getURL
in interface AppServiceRemote
getURL
in interface Service
getURL
in interface ServiceRemote
getURL
in class AppService
public void setURL(java.lang.String url)
setURL
in interface Service
setURL
in class AppService
public int getLoad()
getLoad
in class AppService
public boolean isAppService()
isAppService
in interface Service
isAppService
in interface ServiceRemote
isAppService
in class AppService
public boolean isSingletonService()
isSingletonService
in interface Service
isSingletonService
in interface ServiceRemote
isSingletonService
in class AppService
public void restart() throws java.rmi.RemoteException
restart
in interface ServiceRemote
restart
in class AppService
java.rmi.RemoteException
public java.lang.String getMaxVarType(java.lang.String key) throws java.rmi.RemoteException, MXException
getMaxVarType
in interface MaxVarServiceRemote
key
- MXException,RemoteException
java.rmi.RemoteException
MXException
public java.lang.String getString(java.lang.String key, java.lang.String org, java.lang.String site) throws java.rmi.RemoteException, MXException
getString
in interface MaxVarServiceRemote
key
- org
- site
- MXException,RemoteException
java.rmi.RemoteException
MXException