ilog.rules.dvs.ssp

Class IlrSSPResourceAllocationPolicy

  • java.lang.Object
    • ilog.rules.dvs.ssp.IlrSSPResourceAllocationPolicy
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class and Description
      static class  IlrSSPResourceAllocationPolicy.ExecutionPriority
      Defines the priority for the execution of a scenario suite in the SSP: NORMAL: the standard priority (default value) HIGH: use this priority to promote the execution of this scenario suite before others LOW: use this priority to demote the execution of this scenario suite compared to others with a higher priority
    • Constructor Summary

      Constructors 
      Constructor and Description
      IlrSSPResourceAllocationPolicy()
      Creates a policy with the default values, where the maximum number of threads is equal to the number of scenario parts to execute in parallel.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      IlrSSPResourceAllocationPolicy.ExecutionPriority getExecutionPriority()
      Gets the priority of the scenario suite in the SSP: NORMAL: the standard priority (default value) HIGH: use this priority to promote the execution of this scenario suite before others LOW: use this priority to demote the execution of this scenario suite compared to others with a higher priority If the SSP is running on WebSphere Application Server, the SSP uses the work manager defined for the level of priority to execute the scenario suite.
      int getMaximumNumberOfThreadsToAllocateForParallelExcecution()
      Gets the number of threads allocated for the parallel execution of the simulation.
      void setExecutionPriority(IlrSSPResourceAllocationPolicy.ExecutionPriority theExecutionPriority)
      Sets the priority for the scenario suite execution in the SSP: NORMAL: the standard priority (default value) HIGH: use this priority to promote the execution of this scenario suite before others LOW: use this priority to demote the execution of this scenario suite compared to others with a higher priority If the SSP is running on WebSphere Application Server, the SSP uses the work manager defined for the level of priority to execute the scenario suite.
      void setMaximumNumberOfThreadsToAllocateForParallelExcecution(int theMaximumNumberOfThreadsToAllocateForParallelExecution)
      Sets the allocated number of threads for the parallel execution of the simulation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IlrSSPResourceAllocationPolicy

        public IlrSSPResourceAllocationPolicy()
        Creates a policy with the default values, where the maximum number of threads is equal to the number of scenario parts to execute in parallel. The normal execution priority is used in the SSP.
    • Method Detail

      • getMaximumNumberOfThreadsToAllocateForParallelExcecution

        public int getMaximumNumberOfThreadsToAllocateForParallelExcecution()
        Gets the number of threads allocated for the parallel execution of the simulation. There is no guarantee that the SSP can allocate exactly the number of threads returned by this method. The number depends on the available resources, but there is a guarantee that it cannot allocate more threads than requested. If this value returns 0, the maximum number of threads that the SSP allocates is equal to the number of parts in the simulation.
        Returns:
        The maximum number of threads allocated to run the simulation parts. The value 0 means that the maximum number of threads is defined by the number of parts that the simulation is divided into.
        See Also:
        IlrParallelScenarioProvider
      • setMaximumNumberOfThreadsToAllocateForParallelExcecution

        public void setMaximumNumberOfThreadsToAllocateForParallelExcecution(int theMaximumNumberOfThreadsToAllocateForParallelExecution)
        Sets the allocated number of threads for the parallel execution of the simulation. There is no guarantee that the SSP can allocate exactly this number of threads. The number depends on the available resources, but there is a guarantee that it cannot allocate more threads than requested. A value of 0 or less means that the maximum number of threads that the SSP allocates is equal to the number of parts in the simulation.
        See Also:
        IlrParallelScenarioProvider
      • getExecutionPriority

        public IlrSSPResourceAllocationPolicy.ExecutionPriority getExecutionPriority()
        Gets the priority of the scenario suite in the SSP:
        • NORMAL: the standard priority (default value)
        • HIGH: use this priority to promote the execution of this scenario suite before others
        • LOW: use this priority to demote the execution of this scenario suite compared to others with a higher priority
        If the SSP is running on WebSphere Application Server, the SSP uses the work manager defined for the level of priority to execute the scenario suite. If the SSP is not running on WebSphere Application Server (Java SE SSP or other application servers), the SSP creates threads with priorities Thread.NORM_PRIORITY, Thread.HIGH_PRIORITY or Thread.MIN_PRIORITY to run the scenario suite. If the thread pool is full, the SSP also uses a prioritized request to queue the execution.
        Returns:
        The priority of the scenario suite in the SSP.
      • setExecutionPriority

        public void setExecutionPriority(IlrSSPResourceAllocationPolicy.ExecutionPriority theExecutionPriority)
        Sets the priority for the scenario suite execution in the SSP:
        • NORMAL: the standard priority (default value)
        • HIGH: use this priority to promote the execution of this scenario suite before others
        • LOW: use this priority to demote the execution of this scenario suite compared to others with a higher priority
        If the SSP is running on WebSphere Application Server, the SSP uses the work manager defined for the level of priority to execute the scenario suite. If the SSP is not running on WebSphere Application Server (Java SE SSP or other application servers), the SSP creates threads with priorities Thread.NORM_PRIORITY, Thread.HIGH_PRIORITY or Thread.MIN_PRIORITY to run the scenario suite. If the thread pool is full, the SSP also uses a prioritized request to queue the execution.

© Copyright IBM Corp. 1987, 2017