public class MeasurementService extends AppService implements MeasurementServiceRemote
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 |
---|
MeasurementService()
Constructor for MeasurementService.
|
MeasurementService(MXServer mxServer)
Constructor for MeasurementService.
|
Modifier and Type | Method and Description |
---|---|
double |
getConversionFactor(UserInfo userInfo,
java.lang.String fromUOM,
java.lang.String toUOM)
Returns the conversion factor that will convert the "from"
unit of measure (UOM) to the "to" unit of measure.
|
void |
init()
Initialize the Application Service.
|
checkSecurity, configure, destroy, freeDBConnection, freeMboSet, getCriteria, getCurrentState, getDBConnection, getLiveObjCount, getLoad, getMaximoDD, getMaxVar, getMboSet, getMXServer, getName, getProfile, getProxy, getSchemaOwner, getServiceInfo, getServiceLogger, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, initCriteriaList, isAppService, isRunning, isSingletonService, restart, setProxy, setRunning, setURL, verifyUser, verifyUser
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkSecurity, getCriteria, getCurrentState, getLiveObjCount, getMboSet, getName, getSchemaOwner, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, verifyUser, verifyUser
isAppService, isSingletonService, restart
public MeasurementService() throws java.rmi.RemoteException
java.rmi.RemoteException
public MeasurementService(MXServer mxServer) throws java.rmi.RemoteException
mxServer
- -- the "Server Environment" this Service is being
created in.java.rmi.RemoteException
public void init()
AppService
init
in interface Service
init
in class AppService
Service
public double getConversionFactor(UserInfo userInfo, java.lang.String fromUOM, java.lang.String toUOM) throws MXException, java.rmi.RemoteException
getConversionFactor
in interface MeasurementServiceRemote
UserInfo
- The userInfo of the calling Mbo.fromUOM
- The unit of measure(UOM) to be converted from.toUOM
- The unit of measure to be converted to.ParametesAreRequired
- if either UOM parameter is empty.FactorDoesNotExist
- if a valid relationship does not exist.MXException
java.rmi.RemoteException