public class RuleStatistics extends Item
Modifier and Type | Field and Description |
---|---|
static String |
ITEM_TYPE
The RuleStatistics ITEM_TYPE.
|
Constructor and Description |
---|
RuleStatistics() |
RuleStatistics(String itemId) |
Modifier and Type | Method and Description |
---|---|
long |
getActionsTime()
Retrieve the accumulated time of the rule's actions
|
long |
getConditionsTime()
Retrieve the accumulated time evaluating the conditions of the rule in the cluster
|
long |
getExecutionCount()
Retrieve the execution count of the rule in the cluster
|
Date |
getLastSyncDate()
Retrieve the last sync date
|
long |
getLocalActionsTime()
Retrieve the accumulated time spent executing the rule's actions since the last sync with the cluster
|
long |
getLocalConditionsTime()
Retrieve the accumulated execution time of the rule's condition since the last sync with the cluster
|
long |
getLocalExecutionCount()
Retrieve the execution count of the rule on this single node since the last sync with the cluster
|
void |
setActionsTime(long actionsTime)
Sets the accumulated time for the rule's actions
|
void |
setConditionsTime(long conditionsTime)
Sets the execution time of the condition of the rule for the whole cluster
|
void |
setExecutionCount(long executionCount)
Set the execution count of the rule in the cluster
|
void |
setLastSyncDate(Date lastSyncDate)
Sets the last sync date
|
void |
setLocalActionsTime(long localActionsTime)
Sets the accumulated time spend executing the rule's actions since the last sync with the cluster
|
void |
setLocalConditionsTime(long localConditionsTime)
Sets the accumulated execution time of the rule's condition since the last sync with the cluster
|
void |
setLocalExecutionCount(long localExecutionCount)
Sets the number of local execution counts for this node since the last sync with the cluster
|
equals, getItemId, getItemType, getItemType, getScope, getSystemMetadata, getVersion, hashCode, setItemId, setItemType, setScope, setSystemMetadata, setVersion
public static final String ITEM_TYPE
public RuleStatistics()
public RuleStatistics(String itemId)
public long getExecutionCount()
public void setExecutionCount(long executionCount)
executionCount
- a long that represents the number of execution of the rule in the clusterpublic long getLocalExecutionCount()
public void setLocalExecutionCount(long localExecutionCount)
localExecutionCount
- a long that represents the number of execution of the rule since the
last sync with the clusterpublic long getConditionsTime()
public void setConditionsTime(long conditionsTime)
conditionsTime
- a long representing a time in millisecondspublic long getLocalConditionsTime()
public void setLocalConditionsTime(long localConditionsTime)
localConditionsTime
- a long that represents the accumulated time in millisecondspublic long getActionsTime()
public void setActionsTime(long actionsTime)
actionsTime
- a long representing the accumulated time in millisecondspublic long getLocalActionsTime()
public void setLocalActionsTime(long localActionsTime)
localActionsTime
- a long representing the accumulated time in millisecondspublic Date getLastSyncDate()
public void setLastSyncDate(Date lastSyncDate)
lastSyncDate
- a date that represents the last time the statistics were synchronized
with the clusterCopyright © 2014–2023 Apache Software Foundation. All rights reserved.