public class OptimizationService extends AppService implements OptimizationServiceRemote
ABORTED, FAILED, PROCESSED, PROCESSING
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 |
---|
OptimizationService(MXServer mxServer)
OptimizationService constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
void |
finishSKDODMERUN(long skdProjectId,
java.lang.String status)
Delete "optimization running" for the passed in scenario
|
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 |
startSKDODMERUN(long skdProjectId,
java.lang.String user,
java.lang.String status)
Add "optimization running" for the passed in scenario
|
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 OptimizationService(MXServer mxServer) throws java.rmi.RemoteException
mxServer
- java.rmi.RemoteException
public void init()
init
in interface Service
init
in class AppService
Service
public void deployOptimizationApp(java.lang.String odmApplicationName, ODMAppDeployInfo appDeployInfo, UserInfo userInfo) throws java.rmi.RemoteException, MXException
OptimizationServiceRemote
deployOptimizationApp
in interface OptimizationServiceRemote
java.rmi.RemoteException
MXException
public boolean runOptimization(UserInfo userInfo, java.lang.String odmApplicationName, OptimizationInputProcessParameters inputProcessParameters, OptimizationOutputProcessParameters outputProcessParameters) throws java.rmi.RemoteException, MXException
runOptimization
in interface OptimizationServiceRemote
java.rmi.RemoteException
MXException
public void listenToODMERun(MboRemote listenerMbo, boolean listen, long skdProjectId) throws MXException, java.rmi.RemoteException
listenToODMERun
in interface OptimizationServiceRemote
listenerMbo
- ProcessMonitor mbo.listen
- True to start listening, False to stop listeningskdProjectId
- skdproject unique idMXException
java.rmi.RemoteException
public boolean ODMEIsRunning(long skdProjectId) throws MXException, java.rmi.RemoteException
ODMEIsRunning
in interface OptimizationServiceRemote
skdProjectId
- skdproject unique idjava.sql.SQLException
MXException
java.rmi.RemoteException
public void startSKDODMERUN(long skdProjectId, java.lang.String user, java.lang.String status) throws MXException, java.rmi.RemoteException
startSKDODMERUN
in interface OptimizationServiceRemote
skdProjectId
- skdproject unique idMXException
java.rmi.RemoteException
public void finishSKDODMERUN(long skdProjectId, java.lang.String status) throws MXException, java.rmi.RemoteException
finishSKDODMERUN
in interface OptimizationServiceRemote
skdProjectId
- skdproject unique idMXException
java.rmi.RemoteException
public void ODMEaddRunMsg(long skdProjectId, UserInfo userInfo, java.lang.String message, boolean key) throws MXException, java.rmi.RemoteException
OptimizationServiceRemote
ODMEaddRunMsg
in interface OptimizationServiceRemote
skdProjectId
- skdproject unique idMXException
java.rmi.RemoteException
public void ODMEclearRunMsg(long skdProjectId) throws MXException, java.rmi.RemoteException
ODMEclearRunMsg
in interface OptimizationServiceRemote
skdProjectId
- skdproject unique idMXException
java.rmi.RemoteException
public void ODMEclearCompleted() throws MXException, java.rmi.RemoteException
ODMEclearCompleted
in interface OptimizationServiceRemote
MXException
java.rmi.RemoteException