public class ODMEOptimizationService
extends java.lang.Object
Constructor and Description |
---|
ODMEOptimizationService() |
Modifier and Type | Method and Description |
---|---|
void |
addUpdODMPackageData(java.lang.String odmApplicationName,
byte[] newAppPackageBytes,
UserInfo userInfo)
This method add or update the mxodmpkg table with the updated odm application package.
|
byte[] |
createOptimizationAppPackageZipAsBytes(java.io.File dir,
java.io.File fileToExclude)
This method creates zip file with the files in the given folder excluding the temporary file created
during deployment.
|
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.
|
MboSetRemote |
getMboSet(java.lang.String name,
UserInfo userInfo) |
MXServer |
getMXServer() |
static ilog.odm.deployment.IloOdmScenarioRepositoryDatabase.DatabaseType |
getODMDatabaseType(ODMScenarioDatabaseType odmScenarioDatabaseType) |
MXLogger |
getServiceLogger() |
java.lang.String |
getTemporaryDeployFolder(java.lang.String appName)
This method generates the temporary deployment folder.
|
void |
init() |
boolean |
runOptimization(UserInfo userInfo,
java.lang.String odmApplicationName,
OptimizationInputProcessParameters inputProcessParameters,
OptimizationOutputProcessParameters outputProcessParameters)
This method calls the optimization engine method to run optimization based on the odm application and input process parameters
and the output is stored in output Processor parameters.
|
void |
setServiceLogger(MXLogger logger) |
public MboSetRemote getMboSet(java.lang.String name, UserInfo userInfo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public MXLogger getServiceLogger()
public void setServiceLogger(MXLogger logger)
public void init()
public MXServer getMXServer() throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String getTemporaryDeployFolder(java.lang.String appName)
appName
- public void deployOptimizationApp(java.lang.String odmApplicationName, ODMAppDeployInfo appDeployInfo, UserInfo userInfo) throws java.rmi.RemoteException, MXException
odmApplicationName
- appDeployInfo
- userInfo
- java.rmi.RemoteException
MXException
public byte[] createOptimizationAppPackageZipAsBytes(java.io.File dir, java.io.File fileToExclude) throws java.io.IOException
dir
- fileToExclude
- java.io.IOException
public void addUpdODMPackageData(java.lang.String odmApplicationName, byte[] newAppPackageBytes, UserInfo userInfo) throws MXException, java.rmi.RemoteException, java.io.IOException
odmApplicationName
- newAppPackageBytes
- userInfo
- MXException
java.rmi.RemoteException
java.io.IOException
public boolean runOptimization(UserInfo userInfo, java.lang.String odmApplicationName, OptimizationInputProcessParameters inputProcessParameters, OptimizationOutputProcessParameters outputProcessParameters) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static ilog.odm.deployment.IloOdmScenarioRepositoryDatabase.DatabaseType getODMDatabaseType(ODMScenarioDatabaseType odmScenarioDatabaseType)