|
ILOG JRules | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.rules.bres.model.mbean.util.IlrJmxMutableEntity
ilog.rules.bres.model.mbean.util.IlrJmxMutableRuleset
public class IlrJmxMutableRuleset
Provides a wrapper for ruleset MBeans. Allows access to local ruleset MBeans as well as through a J2EE cluster (retrieve automatically Ruleset MBeans in the cluster). Cannot be used outside the application server.
Provides a default implementation based on JMX 1.0 for local MBean access and a specific implementation for BEA WebLogic, IBM WebSphere, JBoss, and Oracle clusters.
| Field Summary |
|---|
| Fields inherited from interface ilog.rules.bres.model.mbean.IlrJmxRulesetMBean |
|---|
KEY_NAME, KEY_RULEAPP_NAME, KEY_RULEAPP_VERSION, KEY_VERSION, NOTIFICATION_PROPERTY_CHANGE, NOTIFICATION_RULESET_ARCHIVE_CHANGE, VALUE_TYPE |
| Method Summary | |
|---|---|
double |
getAverageExecuteTaskTime()
Returns the average time in the "execute task" operation in all Execution Units (XU), for this ruleset. |
double |
getAverageExecuteTime()
Returns the average time passed in the "execute" operation in all Execution Units (XU), for this ruleset. |
String |
getCanonicalRulesetPath()
Returns the canonical ruleset path of this ruleset. |
long |
getExecuteCount()
Returns a count of the "execute" operation in all Execution Units (XU), for this ruleset. |
long |
getExecuteTaskCount()
Returns the count for the "execute task" operation in all Execution Units (XU), for this ruleset. |
long |
getFirstExecuteTaskTime()
Returns the date of the first "execute task" operation in all Execution Units (XU), for this ruleset. |
long |
getFirstExecuteTime()
Returns the date of the first "execute" operation in all Execution Units (XU), for this ruleset. |
String |
getIRL()
Deprecated. As of JRules 6.0, replaced by getRulesetArchive(). |
long |
getLastExecuteDuration()
Returns the time of the last "execute" operation in all Execution Units (XU), for this ruleset. |
long |
getLastExecuteTaskDuration()
Returns the time of the last "execute task" operation in all Execution Units (XU), for this ruleset. |
long |
getLastExecuteTaskTime()
Returns the date of the last "execute task" operation in all Execution Units (XU), for this ruleset. |
long |
getLastExecuteTime()
Returns the date of the last "execute" operation in all Execution Units (XU), for this ruleset. |
long |
getMaxExecuteTaskTime()
Returns the longest time passed in the "execute task" operation in all Execution Units (XU), for this ruleset. |
long |
getMaxExecuteTime()
Returns the longest time passed in the "execute" operation in all Execution Units (XU), for this ruleset. |
long |
getMinExecuteTaskTime()
Returns the shortest time passed in the "execute task" operation in all Execution Units (XU), for this ruleset. |
long |
getMinExecuteTime()
Returns the shortest time passed in the "execute" operation in all Execution Units (XU), for this ruleset. |
ObjectName |
getObjectName()
Returns the objectName of this ruleset MBean. |
ObjectName |
getParentRuleAppObjectName()
Returns the parent RuleApp ObjectName of this ruleset |
Properties |
getProperties()
Returns all ruleset properties. |
String |
getProperty(String key)
Sets the property with the specified key. |
byte[] |
getRulesetArchive()
Returns the ruleset archive of this ruleset. |
String |
getStatus()
Returns the status of the ruleset. |
long |
getTotalExecuteTaskTime()
Returns the total time passed in the "execute task" operation in all Execution Units (XU), for this ruleset. |
long |
getTotalExecuteTime()
Returns the total time passed in the "execute" operation in all Execution Units (XU), for this ruleset. |
String |
getXOM()
Deprecated. As of JRules 6.0, replaced by getRulesetArchive(). |
void |
resetStatistics()
Resets all statistics for this ruleset. |
void |
setIRL(String irl)
Deprecated. As of JRules 6.0, replaced by setRulesetArchive(byte[]). |
void |
setProperty(String key,
String value)
Sets the value of a property. |
void |
setRulesetArchive(byte[] rulesetArchive)
Sets the ruleset archive of this ruleset. |
void |
setStatus(String status)
Sets the status of the ruleset. |
void |
setXOM(String xom)
Deprecated. As of JRules 6.0, replaced by setRulesetArchive(byte[]). |
| Methods inherited from class ilog.rules.bres.model.mbean.util.IlrJmxMutableEntity |
|---|
getCreationDate, getDescription, getDisplayName, getModelObjectName, getName, getVersion, setDescription, setDisplayName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ilog.rules.bres.model.mbean.IlrJmxEntityMBean |
|---|
getCreationDate, getDescription, getDisplayName, getModelObjectName, getName, getVersion, setDescription, setDisplayName |
| Method Detail |
|---|
public ObjectName getObjectName()
public String getCanonicalRulesetPath()
throws IllegalStateException
getCanonicalRulesetPath in interface IlrJmxRulesetMBeanIllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.
IlrJmxRulesetMBean.getCanonicalRulesetPath()
public String getStatus()
throws OperationsException,
IllegalStateException
getProperties().getProperty("ruleset.status").
getStatus in interface IlrJmxRulesetMBeanOperationsException - If a data access error or a concurrent usage occurred.
IllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.IlrJmxRulesetMBean.getStatus()
public void setStatus(String status)
throws OperationsException,
IllegalStateException
setProperty("ruleset.status", status).
setStatus in interface IlrJmxRulesetMBeanOperationsException - If a data access error or a concurrent usage occurred.
IllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.status - The new ruleset status.IlrJmxRulesetMBean.setStatus(String)
public String getXOM()
throws OperationsException,
IllegalStateException
getRulesetArchive().
IlrJmxRuleAppMBean.addRuleset(String, String, String),
otherwise an UnsupportedOperationException is thrown.
getXOM in interface IlrJmxRulesetMBeanOperationsException - If an error occurred in the MBean.
IllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.
UnsupportedOperationException - If the ruleset has not been created with IlrJmxRuleAppMBean.addRuleset(String, String, String).
IlrJmxRulesetMBean.getXOM()
public void setXOM(String xom)
throws OperationsException,
IllegalStateException
setRulesetArchive(byte[]).
IlrJmxRuleAppMBean.addRuleset(String, String, String),
otherwise an UnsupportedOperationException is thrown.
setXOM in interface IlrJmxRulesetMBeanOperationsException - If an error occurred in the MBean.
IllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.
UnsupportedOperationException - If the ruleset has not been created with IlrJmxRuleAppMBean.addRuleset(String, String, String).xom - The new dynamic XML XOM.IlrJmxRulesetMBean.setXOM(String)
public String getIRL()
throws OperationsException,
IllegalStateException
getRulesetArchive().
IlrJmxRuleAppMBean.addRuleset(String, String, String),
otherwise an UnsupportedOperationException is thrown.
getIRL in interface IlrJmxRulesetMBeanOperationsException - If an error occurred in the MBean.
IllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.
UnsupportedOperationException - If the ruleset has not been created with IlrJmxRuleAppMBean.addRuleset(String, String, String).
IlrJmxRulesetMBean.getIRL()
public void setIRL(String irl)
throws IllegalStateException,
InvalidAttributeValueException,
OperationsException
setRulesetArchive(byte[]).
IlrJmxRuleAppMBean.addRuleset(String, String, String),
otherwise an UnsupportedOperationException is thrown.
setIRL in interface IlrJmxRulesetMBeanInvalidAttributeValueException - If the parameter irl is null.
OperationsException - If an error occurred in the MBean.
IllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.
UnsupportedOperationException - If the ruleset has not been created with IlrJmxRuleAppMBean.addRuleset(String, String, String).irl - The new ruleset, cannot be null.IlrJmxRulesetMBean.setIRL(String)
public byte[] getRulesetArchive()
throws OperationsException,
IllegalStateException
getRulesetArchive in interface IlrJmxRulesetMBeanOperationsException - If an error occurred in the MBean.
IllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.IlrJmxRulesetMBean.getRulesetArchive()
public void setRulesetArchive(byte[] rulesetArchive)
throws IllegalStateException,
InvalidAttributeValueException,
OperationsException
setRulesetArchive in interface IlrJmxRulesetMBeanInvalidAttributeValueException - If the parameter rulesetArchive is null.
OperationsException - If an error occurred in the MBean.
IllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.rulesetArchive - The new ruleset archive, cannot be null.IlrJmxRulesetMBean.setRulesetArchive(byte[])
public String getProperty(String key)
throws OperationsException,
IllegalStateException
getProperty in interface IlrJmxRulesetMBeanOperationsException - If an error occurred in the MBean.
IllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.key - The property key. Cannot be null.
IlrJmxRulesetMBean.getProperty(String)
public Properties getProperties()
throws OperationsException,
IllegalStateException
getProperties in interface IlrJmxRulesetMBeanOperationsException - If an error occurred in the MBean.
IllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.IlrJmxRulesetMBean.getProperties()
public void setProperty(String key,
String value)
throws OperationsException,
IllegalStateException
setProperty in interface IlrJmxRulesetMBeanOperationsException - If an error occurred in the MBean.
IllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.key - The property key.value - The new value.IlrJmxRulesetMBean.setProperty(String,
String)
public ObjectName getParentRuleAppObjectName()
throws IllegalStateException
getParentRuleAppObjectName in interface IlrJmxRulesetMBeanIllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.
IlrJmxRulesetMBean.getParentRuleAppObjectName()
public long getExecuteCount()
throws IllegalStateException
IlrJmxRulesetMBean
getExecuteCount in interface IlrJmxRulesetMBeanIllegalStateException - If the MBean server is unavailable or an internal error occurred with the MBean server.
IlrJmxRulesetMBean.getExecuteCount()
public long getTotalExecuteTime()
throws IllegalStateException
IlrJmxRulesetMBean
getTotalExecuteTime in interface IlrJmxRulesetMBeanIllegalStateException - If the MBean server is unavailable or an internal error
occurred with the MBean server.
IlrJmxRulesetMBean.getTotalExecuteTime()
public double getAverageExecuteTime()
throws IllegalStateException
IlrJmxRulesetMBean
getAverageExecuteTime in interface IlrJmxRulesetMBeanIllegalStateException - If the MBean server is unavailable or an internal error
occurred with the MBean server.
IlrJmxRulesetMBean.getAverageExecuteTime()
public long getMaxExecuteTime()
throws IllegalStateException
IlrJmxRulesetMBean
getMaxExecuteTime in interface IlrJmxRulesetMBeanIllegalStateException - If the MBean server is unavailable or an internal error
occurred with the MBean server.
IlrJmxRulesetMBean.getMaxExecuteTime()
public long getMinExecuteTime()
throws IllegalStateException
IlrJmxRulesetMBean
getMinExecuteTime in interface IlrJmxRulesetMBeanIllegalStateException - If the MBean server is unavailable or an internal error
occurred with the MBean server.
IlrJmxRulesetMBean.getMinExecuteTime()
public long getFirstExecuteTime()
throws IllegalStateException
IlrJmxRulesetMBean
getFirstExecuteTime in interface IlrJmxRulesetMBeanIllegalStateException - If the MBean server is unavailable or an internal error
occurred with the MBean server.
IlrJmxRulesetMBean.getFirstExecuteTime()
public long getLastExecuteTime()
throws IllegalStateException
IlrJmxRulesetMBean
getLastExecuteTime in interface IlrJmxRulesetMBeanIllegalStateException - If the MBean server is unavailable or an internal error
occurred with the MBean server.
IlrJmxRulesetMBean.getLastExecuteTime()
public long getLastExecuteDuration()
throws IllegalStateException
IlrJmxRulesetMBean
getLastExecuteDuration in interface IlrJmxRulesetMBeanIllegalStateException - If the MBean server is unavailable or an internal error
occurred with the MBean server.IlrJmxRulesetMBean.getLastExecuteDuration()
public long getExecuteTaskCount()
throws IllegalStateException
IlrJmxRulesetMBean
getExecuteTaskCount in interface IlrJmxRulesetMBeanIllegalStateException - If the MBean server is unavailable or an internal error
occurred with the MBean server.
IlrJmxRulesetMBean.getExecuteTaskCount()
public long getTotalExecuteTaskTime()
throws IllegalStateException
IlrJmxRulesetMBean
getTotalExecuteTaskTime in interface IlrJmxRulesetMBeanIllegalStateException - If the MBean server is unavailable or an internal error
occurred with the MBean server.
IlrJmxRulesetMBean.getTotalExecuteTaskTime()
public double getAverageExecuteTaskTime()
throws IllegalStateException
IlrJmxRulesetMBean
getAverageExecuteTaskTime in interface IlrJmxRulesetMBeanIllegalStateException - If the MBean server is unavailable or an internal error
occurred with the MBean server.
IlrJmxRulesetMBean.getAverageExecuteTaskTime()
public long getMaxExecuteTaskTime()
throws IllegalStateException
IlrJmxRulesetMBean
getMaxExecuteTaskTime in interface IlrJmxRulesetMBeanIllegalStateException - If the MBean server is unavailable or an internal error
occurred with the MBean server.
IlrJmxRulesetMBean.getMaxExecuteTaskTime()
public long getMinExecuteTaskTime()
throws IllegalStateException
IlrJmxRulesetMBean
getMinExecuteTaskTime in interface IlrJmxRulesetMBeanIllegalStateException - If the MBean server is unavailable or an internal error
occurred with the MBean server.
IlrJmxRulesetMBean.getMinExecuteTaskTime()
public long getFirstExecuteTaskTime()
throws IllegalStateException
IlrJmxRulesetMBean
getFirstExecuteTaskTime in interface IlrJmxRulesetMBeanIllegalStateException - If the MBean server is unavailable or an internal error
occurred with the MBean server.
IlrJmxRulesetMBean.getFirstExecuteTaskTime()
public long getLastExecuteTaskTime()
throws IllegalStateException
IlrJmxRulesetMBean
getLastExecuteTaskTime in interface IlrJmxRulesetMBeanIllegalStateException - If the MBean server is unavailable or an internal error
occurred with the MBean server.
IlrJmxRulesetMBean.getLastExecuteTaskTime()
public long getLastExecuteTaskDuration()
throws IllegalStateException
IlrJmxRulesetMBean
getLastExecuteTaskDuration in interface IlrJmxRulesetMBeanIllegalStateException - If the MBean server is unavailable or an internal error
occurred with the MBean server.IlrJmxRulesetMBean.getLastExecuteTaskDuration()
public void resetStatistics()
throws IllegalStateException
IlrJmxRulesetMBean
resetStatistics in interface IlrJmxRulesetMBeanIllegalStateException - If the MBean server is unavailable or an internal error
occurred with the MBean server.IlrJmxRulesetMBean.resetStatistics()
|
ILOG JRules | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||