ilog.rules.dvs.common.input

Interface IlrScenarioSuiteDescriptor

  • All Superinterfaces:
    java.io.Serializable


    public interface IlrScenarioSuiteDescriptor
    extends java.io.Serializable
    Encapsulates the input resources needed for an SSP run. Instances of this class are used by SSP client applications to prepare the data to be used. The server receives these instances and retrieves the appropriate information to handle the job.

    Various types of resources can be added to an IlrScenarioSuiteDescriptor instance. For example, binary data and strings. Instances of this class are created using an instance of IlrScenarioSuiteDescriptorFactory.

    Since:
    7.0
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void add(java.lang.String name, java.io.Serializable value)
      Adds a resource with a given name.
      java.io.Serializable get(java.lang.String identifier)
      Returns the resource for an identifier.
      IlrScenarioFormatDescriptor getFormatDescriptor()
      Returns the format descriptor.
      java.util.Locale getLocale()
      Returns the locale.
      IlrRulesetArchive getProductionRulesetArchive()
      Deprecated. 
      use ilog.rules.dvs.common.input.IlrScenarioSuiteDescriptor.getProductionRESRulesetArchive()
      java.util.Map<java.lang.String,java.lang.String> getProductionRulesetProperties()
      Returns the production (tested) ruleset properties.
      java.lang.String getResPassword()
      Returns the password used to connect to RES via HTTP.
      java.net.URL getResURL()
      Returns the URL of the RES to be used for RuleApp deployment.
      java.lang.String getResUser()
      Returns the username for connecting to RES via HTTP.
      java.lang.String getTaskName()
      Returns the task name.
      IlrTraceFilter getTraceFilter()
      Returns the trace filter.
      java.io.Serializable getUserData()
      Returns the user data to be used for ruleset execution.
      boolean isKPIEnabled()
      Checks whether KPIs are enabled.
      boolean isTestEnabled()
      Checks whether tests are enabled.
      java.util.Map<java.lang.String,java.io.Serializable> list()
      Returns all resources in a map.
      void setKPIEnabled(boolean enabled)
      Sets the KPI enabled flag.
      void setLocale(java.util.Locale locale)
      Sets the locale.
      void setProductionRulesetArchive(IlrRulesetArchive productionRulesetArchive)
      Deprecated. 
      use ilog.rules.dvs.common.input.IlrScenarioSuiteDescriptor.setProductionRESRulesetArchive(ilog.rules.res.model.IlrRESRulesetArchive)
      void setProductionRulesetProperties(java.util.Map<java.lang.String,java.lang.String> rulesetProperties)
      Sets the production (tested) ruleset properties.
      void setResPassword(java.lang.String resPassword)
      Sets the password used to connect to RES via HTTP.
      void setResURL(java.net.URL resURL)
      Sets the URL of the RES to be used for RuleApp deployment.
      void setResUser(java.lang.String resUser)
      Sets the username for connecting to RES via HTTP.
      void setTaskName(java.lang.String taskName)
      Sets the task name.
      void setTestEnabled(boolean enabled)
      Sets whether tests are enabled.
      void setTraceFilter(IlrTraceFilter theTraceFilter)
      Sets the trace filter.
      void setUserData(java.io.Serializable userData)
      Sets the user data to be used for ruleset execution.
    • Method Detail

      • get

        java.io.Serializable get(java.lang.String identifier)
        Returns the resource for an identifier.
        Parameters:
        identifier - The identifier to find a resource for.
        Returns:
        The resource that matches identifier. If no resource is found, null is returned.
      • list

        java.util.Map<java.lang.String,java.io.Serializable> list()
        Returns all resources in a map.
        Returns:
        All resources in a map.
      • add

        void add(java.lang.String name,
               java.io.Serializable value)
        Adds a resource with a given name.
        Parameters:
        name - The resource name.
        value - The resource value.
      • getTaskName

        java.lang.String getTaskName()
        Returns the task name. If set, the ruleset to be tested is executed from this task.
        Returns:
        The task name.
      • setTaskName

        void setTaskName(java.lang.String taskName)
        Sets the task name. If set, the ruleset to be tested is executed from this task.
        Parameters:
        taskName - The task name.
      • getUserData

        java.io.Serializable getUserData()
        Returns the user data to be used for ruleset execution.
        Returns:
        The user data to be used for ruleset execution.
      • setUserData

        void setUserData(java.io.Serializable userData)
        Sets the user data to be used for ruleset execution.
        Parameters:
        userData - The user data to be used for ruleset execution.
      • getLocale

        java.util.Locale getLocale()
        Returns the locale.
        Returns:
        The locale.
      • setLocale

        void setLocale(java.util.Locale locale)
        Sets the locale.
        Parameters:
        locale - The locale.
      • getTraceFilter

        IlrTraceFilter getTraceFilter()
        Returns the trace filter.
        Returns:
        The trace filter.
      • setTraceFilter

        void setTraceFilter(IlrTraceFilter theTraceFilter)
        Sets the trace filter.
        Parameters:
        theTraceFilter - The trace filter.
      • getProductionRulesetArchive

        @Deprecated
        IlrRulesetArchive getProductionRulesetArchive()
        Deprecated. use ilog.rules.dvs.common.input.IlrScenarioSuiteDescriptor.getProductionRESRulesetArchive()
        Returns the production (tested) ruleset archive.
        Returns:
        The production (tested) ruleset archive.
      • setProductionRulesetArchive

        @Deprecated
        void setProductionRulesetArchive(IlrRulesetArchive productionRulesetArchive)
        Deprecated. use ilog.rules.dvs.common.input.IlrScenarioSuiteDescriptor.setProductionRESRulesetArchive(ilog.rules.res.model.IlrRESRulesetArchive)
        Sets the production (tested) ruleset archive, in case it must be deployed by the SSP before running tests.
        Parameters:
        productionRulesetArchive - The production (tested) ruleset archive, or null if the production ruleset archive has already been deployed.
      • setProductionRulesetProperties

        void setProductionRulesetProperties(java.util.Map<java.lang.String,java.lang.String> rulesetProperties)
        Sets the production (tested) ruleset properties.
        Parameters:
        rulesetProperties - The production (tested) ruleset properties.
      • getProductionRulesetProperties

        java.util.Map<java.lang.String,java.lang.String> getProductionRulesetProperties()
        Returns the production (tested) ruleset properties.
        Returns:
        The production (tested) ruleset properties.
      • setTestEnabled

        void setTestEnabled(boolean enabled)
        Sets whether tests are enabled. Use this flag to enable or disable tests in the scenario suite.
        Parameters:
        enabled - The test enabled flag.
      • isTestEnabled

        boolean isTestEnabled()
        Checks whether tests are enabled.
        Returns:
        true if tests are enabled.
      • setKPIEnabled

        void setKPIEnabled(boolean enabled)
        Sets the KPI enabled flag. Use this flag to enable or disable KPIs in the scenario suite.
        Parameters:
        enabled - The KPI enabled flag.
      • isKPIEnabled

        boolean isKPIEnabled()
        Checks whether KPIs are enabled.
        Returns:
        true if KPIs are enabled.
      • getResURL

        java.net.URL getResURL()
        Returns the URL of the RES to be used for RuleApp deployment. A possible URL is http://localhost:9080/res. If the URL is not set, RuleApp deployment is done using JMX instead of HTTP.
        Returns:
        The URL of the RES to be used for RuleApp deployment.
      • setResURL

        void setResURL(java.net.URL resURL)
        Sets the URL of the RES to be used for RuleApp deployment. A possible URL is http://localhost:9080/res. If the URL is not set, RuleApp deployment is done using JMX instead of HTTP.
        Parameters:
        resURL - The URL of the RES to be used for RuleApp deployment.
      • getResUser

        java.lang.String getResUser()
        Returns the username for connecting to RES via HTTP. This is used only if the URL to RES is specified.
        Returns:
        The username for connecting to RES via HTTP.
      • setResUser

        void setResUser(java.lang.String resUser)
        Sets the username for connecting to RES via HTTP. This is used only if the URL to RES is specified.
        Parameters:
        resUser - The username for connecting to RES via HTTP.
      • getResPassword

        java.lang.String getResPassword()
        Returns the password used to connect to RES via HTTP. This password is used only if the URL to RES is specified.
        Returns:
        The password used to connect to RES via HTTP.
      • setResPassword

        void setResPassword(java.lang.String resPassword)
        Sets the password used to connect to RES via HTTP. This password is used only if the URL to RES is specified.
        Parameters:
        resPassword - The password used to connect to RES via HTTP.

© Copyright IBM Corp. 1987, 2017