com.ibm.tivoli.maximo.expression

Class MBRScriptDriver

    • Field Detail

      • SCRIPTLOGGER

        public static final MXLogger SCRIPTLOGGER
    • Constructor Detail

      • MBRScriptDriver

        public MBRScriptDriver()
    • Method Detail

      • getAllSupportedScriptEngines

        public static java.util.Map getAllSupportedScriptEngines()
        Get all supported Script Engines short (or) alias names
        Returns:
        Set upported Script Engines short (or) alias names
      • compileScript

        public void compileScript(java.lang.String scriptName,
                                  java.lang.String scriptSource,
                                  java.lang.String scriptLanguage)
                           throws MXException
        Throws:
        MXException
      • preCompileScript

        public boolean preCompileScript(ScriptInfo scriptInfo)
                                 throws MXException
        Description copied from interface: ScriptDriver
        Precompiles the script
        Parameters:
        scriptInfo - - the ScriptInfo object for the script
        Throws:
        MXException
      • wrapMXException

        public static void wrapMXException(MXException me,
                                           java.lang.String scrName,
                                           int lineNum)
      • canRun

        public boolean canRun(java.lang.String scriptLang)
        Description copied from interface: ScriptDriver
        Verify if the driver can support script language scriptLang
        Parameters:
        scriptLang - the script language
        Returns:
        true if it can run and false otherwise
      • releaseResources

        public void releaseResources()
        Description copied from interface: ScriptDriver
        Call back method to release driver resources before the driver gets gced. This should be used by implementations to clean up driver level cache.
      • releaseResources

        public void releaseResources(java.lang.String scriptName)
        Description copied from interface: ScriptDriver
        Call back method to release driver resources before the driver gets gced. This should be used by implementations to clean up driver level cache.
      • getSupportedEngines

        public java.util.Map getSupportedEngines()
        Returns:
        list of supported engines
      • isBinaryScript

        public boolean isBinaryScript()
      • parseScriptForParams

        public java.util.List parseScriptForParams(byte[] scriptBytes)
                                            throws MXException
        Returns:
        parse script to return the published script params
        Throws:
        MXException