com.ibm.tivoli.maximo.optimization.service

Class OptimizationService

    • Constructor Detail

      • OptimizationService

        public OptimizationService(MXServer mxServer)
                            throws java.rmi.RemoteException
        OptimizationService constructor.
        Parameters:
        mxServer -
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • extractMXOptimizationZip

        protected void extractMXOptimizationZip(java.io.InputStream is)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • init

        public void init()
        Initializes the Optimization package.
        Specified by:
        init in interface Service
        Overrides:
        init in class AppService
        See Also:
        Service
      • deployOptimizationApp

        public void deployOptimizationApp(java.lang.String odmApplicationName,
                                          ODMAppDeployInfo appDeployInfo,
                                          UserInfo userInfo)
                                   throws java.rmi.RemoteException,
                                          MXException
        Description copied from interface: OptimizationServiceRemote
        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. After deployment, updates the database with the deployed application package.
        Specified by:
        deployOptimizationApp in interface OptimizationServiceRemote
        Throws:
        java.rmi.RemoteException
        MXException
      • listenToODMERun

        public void listenToODMERun(MboRemote listenerMbo,
                                    boolean listen,
                                    long skdProjectId)
                             throws MXException,
                                    java.rmi.RemoteException
        Register another listener for ODME scenario run
        Specified by:
        listenToODMERun in interface OptimizationServiceRemote
        Parameters:
        listenerMbo - ProcessMonitor mbo.
        listen - True to start listening, False to stop listening
        skdProjectId - skdproject unique id
        Throws:
        MXException
        java.rmi.RemoteException
      • ODMEIsRunning

        public boolean ODMEIsRunning(long skdProjectId)
                              throws MXException,
                                     java.rmi.RemoteException
        Return true if ODME is in progress for the scenario
        Specified by:
        ODMEIsRunning in interface OptimizationServiceRemote
        Parameters:
        skdProjectId - skdproject unique id
        Throws:
        java.sql.SQLException
        MXException
        java.rmi.RemoteException
      • startSKDODMERUN

        public long startSKDODMERUN(long skdProjectId,
                                    java.lang.String user,
                                    java.lang.String status)
                             throws MXException,
                                    java.rmi.RemoteException
        Add "optimization running" for the passed in scenario
        Specified by:
        startSKDODMERUN in interface OptimizationServiceRemote
        Parameters:
        skdProjectId - skdproject unique id
        Throws:
        MXException
        java.rmi.RemoteException
      • startSKDODMERUN

        public long startSKDODMERUN(long skdProjectId,
                                    java.lang.String user,
                                    java.lang.String status,
                                    long skdOdmeRunIdIn)
                             throws MXException,
                                    java.rmi.RemoteException
        Add "optimization running" for the passed in scenario
        Throws:
        MXException
        java.rmi.RemoteException
      • finishSKDODMERUN

        public void finishSKDODMERUN(long skdProjectId,
                                     java.lang.String status)
                              throws MXException,
                                     java.rmi.RemoteException
        Delete "optimization running" for the passed in scenario
        Specified by:
        finishSKDODMERUN in interface OptimizationServiceRemote
        Parameters:
        skdProjectId - skdproject unique id
        Throws:
        MXException
        java.rmi.RemoteException
      • finishSKDODMERUN

        public void finishSKDODMERUN(long skdProjectId,
                                     java.lang.String status,
                                     long skdOdmeRunId)
                              throws MXException,
                                     java.rmi.RemoteException
        Delete "optimization running" for the passed in scenario
        Specified by:
        finishSKDODMERUN in interface OptimizationServiceRemote
        Parameters:
        skdProjectId - skdproject unique id
        Throws:
        MXException
        java.rmi.RemoteException
      • setJobIDSKDODMERUN

        public void setJobIDSKDODMERUN(long skdOdmeRunId,
                                       java.lang.String mosJobId)
                                throws MXException,
                                       java.rmi.RemoteException
        Updates the SKDODMERUN run record with the job id from the MOS.
        Specified by:
        setJobIDSKDODMERUN in interface OptimizationServiceRemote
        Parameters:
        skdProjectId - skdproject unique id
        Throws:
        MXException
        java.rmi.RemoteException
      • ODMEclearRunMsg

        public void ODMEclearRunMsg(long skdProjectId)
                             throws MXException,
                                    java.rmi.RemoteException
        Allow sender to clear messages of our map.
        Specified by:
        ODMEclearRunMsg in interface OptimizationServiceRemote
        Parameters:
        skdProjectId - skdproject unique id
        Throws:
        MXException
        java.rmi.RemoteException
      • cancelOptimizationJob

        public void cancelOptimizationJob(java.lang.String jobId,
                                          UserInfo userInfo)
                                   throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException