ilog.rules.res.model.mbean

Interface IlrJMXRulesetMBean

  • All Superinterfaces:
    IlrJMXEntityMBean


    public interface IlrJMXRulesetMBean
    extends IlrJMXEntityMBean
    IlrJMXRulesetMBean represents a ruleset entity in the Rule Execution Server management model. Use this ruleset entity to manage the ruleset resources used for execution (properties, ruleset archive, canonical ruleset path) and to expose execution statistics.

    A JMX notification is sent if a property has changed on an MBean instance, that is, when the setProperty method is called. The notification type is IlrJMXRulesetMBean.NOTIFICATION_PROPERTY_CHANGE. This message contains the property key that has been changed, The new value of the property is retrieved from userData. If this property has been removed, the value is null.

    Another JMX notification is sent if a ruleset archive has been changed on an MBean instance when the setRulesetArchive method is called. The notification type is IlrJMXRulesetMBean.NOTIFICATION_RULESET_ARCHIVE_CHANGE.

    The following code example shows how to retrieve a deployed ruleset archive:

     public IlrJMXRulesetMBean getRulesetMBean(ObjectName rulesetMBeanName) {
       return (IlrJMXRulesetMBean) Proxy.newProxyInstance(IlrJMXRulesetMBean.class.getClassLoader(), new Class[] { IlrJMXRulesetMBean.class }, createHandler(rulesetMBeanName));
     }
     
    See Also:
    IlrJMXRepositoryMBean, IlrJMXRuleAppMBean
    • Field Detail

      • VALUE_TYPE

        static final java.lang.String VALUE_TYPE
        The type used in the objectName of all ruleset MBeans.
        See Also:
        Constant Field Values
      • KEY_NAME

        static final java.lang.String KEY_NAME
        The property key for the ruleset name in the objectName of all ruleset MBeans.
        See Also:
        Constant Field Values
      • KEY_VERSION

        static final java.lang.String KEY_VERSION
        The property key for the ruleset version in the objectName of all ruleset MBeans.
        See Also:
        Constant Field Values
      • KEY_RULEAPP_NAME

        static final java.lang.String KEY_RULEAPP_NAME
        The property key for the RuleApp name in the objectName of all ruleset MBeans.
        See Also:
        Constant Field Values
      • KEY_RULEAPP_VERSION

        static final java.lang.String KEY_RULEAPP_VERSION
        The property key for the RuleApp name in the objectName of all ruleset MBeans.
        See Also:
        Constant Field Values
      • NOTIFICATION_PROPERTY_CHANGE

        static final java.lang.String NOTIFICATION_PROPERTY_CHANGE
        Notification type if a property is changed.
        Since:
        6.0
        See Also:
        Constant Field Values
      • NOTIFICATION_RULESET_ARCHIVE_CHANGE

        static final java.lang.String NOTIFICATION_RULESET_ARCHIVE_CHANGE
        Notification type if a ruleset archive is changed.
        Since:
        6.0
        See Also:
        Constant Field Values
    • Method Detail

      • getParentRuleAppObjectName

        javax.management.ObjectName getParentRuleAppObjectName()
        Returns the parent RuleApp of this ruleset.
        Returns:
        The parent RuleApp objectName.
      • getCanonicalRulesetPath

        java.lang.String getCanonicalRulesetPath()
        Returns the identifier of the ruleset. The format is /RuleAppName/RuleAppVersion/RulesetName/RulesetVersion.
        Returns:
        The canonical ruleset path.
      • getStatus

        java.lang.String getStatus()
                                   throws javax.management.OperationsException
        Returns the status of the ruleset. This is equivalent to calling getProperties().getProperty("ruleset.status").
        Since:
        6.0
        Throws:
        javax.management.OperationsException - If a data access error or a concurrent usage occurred.
        Returns:
        The status.
      • setStatus

        void setStatus(java.lang.String status)
                       throws javax.management.OperationsException
        Sets the status of the ruleset. Equivalent to setProperty("ruleset.status", status).
        Since:
        6.0
        Throws:
        javax.management.OperationsException - If a data access error or a concurrent usage occurred.
        Parameters:
        status - The new ruleset status.
      • getRulesetArchive

        byte[] getRulesetArchive()
                                 throws javax.management.OperationsException
        Deprecated. Use getRESRulesetArchive() instead.
        Returns the ruleset archive JAR stored in a byte array.
        Since:
        6.0
        Throws:
        javax.management.OperationsException - If data access error occurred.
        Returns:
        The ruleset archive stored in a byte array.
      • getRESRulesetArchive

        byte[] getRESRulesetArchive()
                                    throws javax.management.OperationsException
        Returns the RES ruleset archive JAR stored in a byte array.
        Since:
        7.5
        Throws:
        javax.management.OperationsException - If data access error occurred.
        Returns:
        The ruleset archive stored in a byte array.
      • setRulesetArchive

        void setRulesetArchive(byte[] rulesetArchive)
                               throws javax.management.InvalidAttributeValueException,
                                      javax.management.OperationsException
        Deprecated. Use setRESRulesetArchive(String, byte[]) instead.
        Sets the ruleset archive.
        Since:
        6.0
        Throws:
        javax.management.InvalidAttributeValueException - if rulesetArchive is null.
        javax.management.OperationsException - if a data access error occurred.
        Parameters:
        rulesetArchive - The ruleset archive JAR stored in a byte array. Cannot be null.
      • setRESRulesetArchive

        void setRESRulesetArchive(java.lang.String engineType,
                                byte[] content)
                                  throws javax.management.InvalidAttributeValueException,
                                         javax.management.OperationsException
        Sets the RES ruleset archive as a stream.
        Since:
        7.5
        Throws:
        javax.management.InvalidAttributeValueException
        javax.management.OperationsException
        Parameters:
        engineType - The type of the engine to be used with this archive: IlrRulesetArchiveProperties.VALUE_ENGINE_TYPE_RCE, IlrRulesetArchiveProperties.VALUE_ENGINE_TYPE_RVE, IlrRulesetArchiveProperties.VALUE_ENGINE_TYPE_RVEND.
        content - The content of this archive.
      • getProperty

        java.lang.String getProperty(java.lang.String key)
                                     throws javax.management.OperationsException
        Returns the property value specified with the key.
        Throws:
        javax.management.OperationsException - if a data access error occurred.
        Parameters:
        key - The property key.
        Returns:
        The property value.
      • getProperties

        java.util.Properties getProperties()
                                           throws javax.management.OperationsException
        Returns all the properties defined on this ruleset.
        Since:
        6.0
        Throws:
        javax.management.OperationsException - if a data access error occurred.
        Returns:
        The properties defined on this ruleset.
      • setProperty

        void setProperty(java.lang.String key,
                       java.lang.String value)
                         throws javax.management.OperationsException
        Sets the value corresponding to a key.
        Throws:
        javax.management.OperationsException - if a data access error occurred.
        Parameters:
        key - The key to be placed into the property list.
        value - The value corresponding to key.
      • getExecuteCount

        long getExecuteCount()
        Returns the number of "execute" operations in all Execution Units (XU), for this ruleset. This is the sum of counts obtained from all the XU MBeans.
        Returns:
        The count of the "execute" operation in all Execution Units (XU), for this ruleset. If the ruleset does not have statistics, -1 is returned.
      • getTotalExecuteTime

        long getTotalExecuteTime()
        Returns the total time passed in the "execute" operation in all Execution Units (XU), for this ruleset. This is the total time obtained from all the XU MBeans.
        Returns:
        The total time passed in the "execute" operation in all Execution Units (XU), for this ruleset. If the ruleset does not have statistics, -1 is returned.
      • getAverageExecuteTime

        double getAverageExecuteTime()
        Returns the average time passed in the "execute" operation in all Execution Units (XU), for this ruleset. This is the average time obtained from all the XU MBeans.
        Returns:
        The average time passed in the "execute" operation in all Execution Units (XU), for this ruleset. If the ruleset does not have statistics, -1 is returned.
      • getMaxExecuteTime

        long getMaxExecuteTime()
        Returns the longest time passed in the "execute" operation in all Execution Units (XU), for this ruleset. This is the longest time obtained from all the XU MBeans.
        Returns:
        The longest time passed in the "execute" operation in all Execution Units (XU), for this ruleset. If the ruleset does not have statistics, -1 is returned.
      • getMinExecuteTime

        long getMinExecuteTime()
        Returns the shortest time passed in the "execute" operation in all Execution Units (XU), for this ruleset. This is the shortest time obtained from all the XU MBeans.
        Returns:
        The shortest time passed in the "execute" operation in all Execution Units (XU), for this ruleset. If the ruleset does not have statistics, -1 is returned.
      • getFirstExecuteTime

        long getFirstExecuteTime()
        Returns the date of the first "execute" operation in all Execution Units (XU), for this ruleset. This is the earliest date of all the dates obtained from all the XU MBeans.
        Returns:
        The date of the first "execute" operation in all Execution Units (XU), for this ruleset. If the ruleset does not have statistics, -1 is returned.
      • getLastExecuteTime

        long getLastExecuteTime()
        Returns the date of the last "execute" operation in all Execution Units (XU), for this ruleset. This is the last date of all the dates obtained from all the XU MBeans.
        Returns:
        The date of the last "execute" operation in all Execution Units (XU), for this ruleset. If the ruleset does not have statistics, -1 is returned.
      • getLastExecuteDuration

        long getLastExecuteDuration()
        Returns the time of the last "execute" operation in all Execution Units (XU), for this ruleset. This is the last time obtained from all the XU MBeans.
        Since:
        6.5
        Returns:
        The time of the last "execute" operation in all Execution Units (XU), for this ruleset. If the ruleset does not have statistics, -1 is returned.
      • getExecuteTaskCount

        long getExecuteTaskCount()
        Deprecated. 
        Returns the count for the "execute task" operation in all Execution Units (XU), for this ruleset. This is the sum of all counts obtained from all the XU MBeans.
        Returns:
        The count for the "execute task" operation in all Execution Units (XU), for this ruleset. If the ruleset does not have statistics, -1 is returned.
      • getTotalExecuteTaskTime

        long getTotalExecuteTaskTime()
        Deprecated. 
        Returns the total time passed in the "execute task" operation in all Execution Units (XU), for this ruleset. This is the total time obtained from all the XU MBeans.
        Returns:
        The total time for the "execute task" operation in all Execution Units (XU), for this ruleset. If the ruleset does not have statistics, -1 is returned.
      • getAverageExecuteTaskTime

        double getAverageExecuteTaskTime()
        Deprecated. 
        Returns the average time in the "execute task" operation in all Execution Units (XU), for this ruleset. This is the average time obtained from all the XU MBeans.
        Returns:
        The average time for the "execute task" operation in all Execution Units (XU), for this ruleset. If the ruleset does not have statistics, -1 is returned.
      • getMaxExecuteTaskTime

        long getMaxExecuteTaskTime()
        Deprecated. 
        Returns the longest time passed in the "execute task" operation in all Execution Units (XU), for this ruleset. This is the longest time obtained from all the XU MBeans.
        Returns:
        The longest time for the "execute task" operation in all Execution Units (XU), for this ruleset. If the ruleset does not have statistics, -1 is returned.
      • getMinExecuteTaskTime

        long getMinExecuteTaskTime()
        Deprecated. 
        Returns the shortest time passed in the "execute task" operation in all Execution Units (XU), for this ruleset. This is the shortest time obtained from all the XU MBeans.
        Returns:
        The shortest time for the "execute task" operation in all Execution Units (XU), for this ruleset. If the ruleset does not have statistics, -1 is returned.
      • getFirstExecuteTaskTime

        long getFirstExecuteTaskTime()
        Deprecated. 
        Returns the date of the first "execute task" operation in all Execution Units (XU), for this ruleset. This is the earliest date obtained from all the XU MBeans.
        Returns:
        The date of the first "execute task" operation in all Execution Units (XU), for this ruleset. If the ruleset does not have statistics, -1 is returned.
      • getLastExecuteTaskTime

        long getLastExecuteTaskTime()
        Deprecated. 
        Returns the date of the last "execute task" operation in all Execution Units (XU), for this ruleset. It is the last date obtained from all the XU MBeans.
        Returns:
        The date of the last "execute task" operation in all Execution Units (XU), for this ruleset. If the ruleset does not have statistics, -1 is returned.
      • getLastExecuteTaskDuration

        long getLastExecuteTaskDuration()
        Deprecated. 
        Returns the time of the last "execute task" operation in all Execution Units (XU), for this ruleset. It is the last time obtained from all the XU MBeans.
        Since:
        6.5
        Returns:
        The time of the last "execute task" operation in all Execution Units (XU), for this ruleset. If the ruleset does not have statistics, -1 is returned.
      • resetStatistics

        void resetStatistics()
        Resets all statistics for this ruleset.

© Copyright IBM Corp. 1987, 2020