public class OptimizationService extends AppService implements OptimizationServiceRemote
currentState, dbManager, INIT, liveObjCount, load, LOAD, mxServer, name, RUN, running, stateCmdList, stateList, STOP, urlABORTED, ABORTING, FAILED, PROCESSED, PROCESSINGAPPLOGGER, 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 |
|---|
OptimizationService(MXServer mxServer)
OptimizationService constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancelOptimizationJob(java.lang.String jobId,
UserInfo userInfo) |
void |
deployOptimizationApp(java.lang.String odmApplicationName,
ODMAppDeployInfo appDeployInfo,
UserInfo userInfo)
Takes the application package from the Java EE EAR (i.e from build) and then applies
the deployment configuration to it and then deploys the application.
|
protected void |
extractMXOptimizationZip(java.io.InputStream is) |
void |
finishSKDODMERUN(long skdProjectId,
java.lang.String status)
Delete "optimization running" for the passed in scenario
|
void |
finishSKDODMERUN(long skdProjectId,
java.lang.String status,
long skdOdmeRunId)
Delete "optimization running" for the passed in scenario
|
java.lang.String |
getOptimizationMosAPIBaseURL(UserInfo userInfo) |
java.lang.String |
getOptimizationMosAPIKey(UserInfo userInfo) |
boolean |
getUseCPS(UserInfo userInfo)
Returns true if the CPS system property is set to true
|
void |
init()
Initializes the Optimization package.
|
void |
listenToODMERun(MboRemote listenerMbo,
boolean listen,
long skdProjectId)
Register another listener for ODME scenario run
|
void |
ODMEaddRunMsg(long skdProjectId,
UserInfo userInfo,
java.lang.String message,
boolean key)
Allow sender to add a message to our map.
|
void |
ODMEclearCompleted()
Allow sender to clear completed tasks of our map.
|
void |
ODMEclearRunMsg(long skdProjectId)
Allow sender to clear messages of our map.
|
boolean |
ODMEIsRunning(long skdProjectId)
Return true if ODME is in progress for the scenario
|
boolean |
runOptimization(UserInfo userInfo,
java.lang.String odmApplicationName,
OptimizationInputProcessParameters inputProcessParameters,
OptimizationOutputProcessParameters outputProcessParameters) |
void |
setJobIDSKDODMERUN(long skdOdmeRunId,
java.lang.String mosJobId)
Updates the SKDODMERUN run record with the job id from the MOS.
|
long |
startSKDODMERUN(long skdProjectId,
java.lang.String user,
java.lang.String status)
Add "optimization running" for the passed in scenario
|
long |
startSKDODMERUN(long skdProjectId,
java.lang.String user,
java.lang.String status,
long skdOdmeRunIdIn)
Add "optimization running" for the passed in scenario
|
checkSecurity, configure, destroy, freeDBConnection, freeMboSet, getCriteria, getCriteriaList, getCurrentState, getDBConnection, getLiveObjCount, getLoad, getMaximoDD, getMaxVar, getMboSet, getMXServer, getName, getProfile, getProxy, getSchemaOwner, getServiceInfo, getServiceLogger, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, initCriteriaList, isAppService, isRunning, isSingletonService, restart, setName, setProxy, setRunning, setURL, verifyUser, verifyUserclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckSecurity, getCriteria, getCurrentState, getLiveObjCount, getMboSet, getName, getSchemaOwner, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, verifyUser, verifyUserisAppService, isSingletonService, restartpublic OptimizationService(MXServer mxServer) throws java.rmi.RemoteException
mxServer - java.rmi.RemoteExceptionprotected void extractMXOptimizationZip(java.io.InputStream is)
throws java.io.IOException
java.io.IOExceptionpublic void init()
init in interface Serviceinit in class AppServiceServicepublic void deployOptimizationApp(java.lang.String odmApplicationName,
ODMAppDeployInfo appDeployInfo,
UserInfo userInfo)
throws java.rmi.RemoteException,
MXException
OptimizationServiceRemotedeployOptimizationApp in interface OptimizationServiceRemotejava.rmi.RemoteExceptionMXExceptionpublic boolean runOptimization(UserInfo userInfo, java.lang.String odmApplicationName, OptimizationInputProcessParameters inputProcessParameters, OptimizationOutputProcessParameters outputProcessParameters) throws java.rmi.RemoteException, MXException
runOptimization in interface OptimizationServiceRemotejava.rmi.RemoteExceptionMXExceptionpublic void listenToODMERun(MboRemote listenerMbo, boolean listen, long skdProjectId) throws MXException, java.rmi.RemoteException
listenToODMERun in interface OptimizationServiceRemotelistenerMbo - ProcessMonitor mbo.listen - True to start listening, False to stop listeningskdProjectId - skdproject unique idMXExceptionjava.rmi.RemoteExceptionpublic boolean ODMEIsRunning(long skdProjectId)
throws MXException,
java.rmi.RemoteException
ODMEIsRunning in interface OptimizationServiceRemoteskdProjectId - skdproject unique idjava.sql.SQLExceptionMXExceptionjava.rmi.RemoteExceptionpublic long startSKDODMERUN(long skdProjectId,
java.lang.String user,
java.lang.String status)
throws MXException,
java.rmi.RemoteException
startSKDODMERUN in interface OptimizationServiceRemoteskdProjectId - skdproject unique idMXExceptionjava.rmi.RemoteExceptionpublic long startSKDODMERUN(long skdProjectId,
java.lang.String user,
java.lang.String status,
long skdOdmeRunIdIn)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void finishSKDODMERUN(long skdProjectId,
java.lang.String status)
throws MXException,
java.rmi.RemoteException
finishSKDODMERUN in interface OptimizationServiceRemoteskdProjectId - skdproject unique idMXExceptionjava.rmi.RemoteExceptionpublic void finishSKDODMERUN(long skdProjectId,
java.lang.String status,
long skdOdmeRunId)
throws MXException,
java.rmi.RemoteException
finishSKDODMERUN in interface OptimizationServiceRemoteskdProjectId - skdproject unique idMXExceptionjava.rmi.RemoteExceptionpublic void setJobIDSKDODMERUN(long skdOdmeRunId,
java.lang.String mosJobId)
throws MXException,
java.rmi.RemoteException
setJobIDSKDODMERUN in interface OptimizationServiceRemoteskdProjectId - skdproject unique idMXExceptionjava.rmi.RemoteExceptionpublic void ODMEaddRunMsg(long skdProjectId,
UserInfo userInfo,
java.lang.String message,
boolean key)
throws MXException,
java.rmi.RemoteException
OptimizationServiceRemoteODMEaddRunMsg in interface OptimizationServiceRemoteskdProjectId - skdproject unique idMXExceptionjava.rmi.RemoteExceptionpublic void ODMEclearRunMsg(long skdProjectId)
throws MXException,
java.rmi.RemoteException
ODMEclearRunMsg in interface OptimizationServiceRemoteskdProjectId - skdproject unique idMXExceptionjava.rmi.RemoteExceptionpublic void ODMEclearCompleted()
throws MXException,
java.rmi.RemoteException
ODMEclearCompleted in interface OptimizationServiceRemoteMXExceptionjava.rmi.RemoteExceptionpublic boolean getUseCPS(UserInfo userInfo) throws java.rmi.RemoteException
OptimizationServiceRemotegetUseCPS in interface OptimizationServiceRemotejava.rmi.RemoteExceptionpublic java.lang.String getOptimizationMosAPIBaseURL(UserInfo userInfo) throws java.rmi.RemoteException
getOptimizationMosAPIBaseURL in interface OptimizationServiceRemotejava.rmi.RemoteExceptionpublic java.lang.String getOptimizationMosAPIKey(UserInfo userInfo) throws java.rmi.RemoteException
getOptimizationMosAPIKey in interface OptimizationServiceRemotejava.rmi.RemoteExceptionpublic void cancelOptimizationJob(java.lang.String jobId,
UserInfo userInfo)
throws java.rmi.RemoteException
java.rmi.RemoteException