public class RuleBasedCategoryConfig
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The IBM copyright field.
|
static java.lang.String |
RULE_BASED_CATEGORY_CONFIG
Constant representing the configuration node name for the rule based category configuration
defined in wc-admin-component.xml.
|
static java.lang.String |
RULE_BASED_CATEGORY_CONFIG_ENABLED
Constant representing the flag for the rule based category evaluation
defined in wc-admin-component.xml.
|
static java.lang.String |
RULE_BASED_CATEGORY_CONFIG_HOSTNAME
Constant representing the host name for the rule based category configuration
defined in wc-admin-component.xml.
|
static java.lang.String |
RULE_BASED_CATEGORY_CONFIG_SCH_APPTYPE
Constant representing the scheduler application type for the rule based category configuration
defined in wc-admin-component.xml.
|
static java.lang.String |
RULE_BASED_CATEGORY_TIME_INTERVAL
Constant representing the time interval for the rule based category configuration
defined in wc-admin-component.xml.
|
static java.math.BigInteger |
RULE_BASED_CATEGORY_TIME_INTERVAL_MINUS_ONE
Constant, -1, representing the time interval value for not evaluating rules with EVALUATING=0
in the CATGRPRULE table.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getCategoryRuleEvaluationEnabled()
This method will return the value for 'evaluationEnabled'.
|
java.lang.String |
getCategoryRuleEvaluationJobHostname()
This method will return the value for 'evaluationHostname'.
|
static RuleBasedCategoryConfig |
getInstance()
This method returns the singleton instance of the rule based category configuration.
|
boolean |
getIsStagingInstance()
This method will return true if this is a Staging instance, false otherwise.
|
boolean |
getIsToolkit()
This method will return true if this is a Toolkit instance, false otherwise.
|
boolean |
getIsWorkspacesInstance()
This method will return true if this is a Workspaces instance, false otherwise.
|
RuleBasedCategoryHelper |
getRuleBasedCategoryHelper()
This method will return a shared instance of Rule Based Category Helper.
|
java.math.BigInteger |
getRuleEvaluationTimeInterval()
This method will return the value for 'evaluationTimeInterval'.
|
java.lang.String |
getSchedulerApplicationType()
This method will return the value for 'schedulerApplicationType'.
|
void |
reloadConfiguration()
This method will reload the configuration from wc-admin-component.xml.
|
void |
setCategoryRuleEvaulationEnabled(boolean ruleBasedCategoryEvaluationEnabled)
This method will set the value for 'evaluationEnabled'.
|
void |
setSchedulerApplicationType(java.lang.String schedulerApplicationType)
This method will set the value for 'schedulerApplicationType'.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String RULE_BASED_CATEGORY_CONFIG
public static final java.lang.String RULE_BASED_CATEGORY_CONFIG_ENABLED
public static final java.lang.String RULE_BASED_CATEGORY_CONFIG_HOSTNAME
public static final java.lang.String RULE_BASED_CATEGORY_TIME_INTERVAL
public static final java.math.BigInteger RULE_BASED_CATEGORY_TIME_INTERVAL_MINUS_ONE
public static final java.lang.String RULE_BASED_CATEGORY_CONFIG_SCH_APPTYPE
public static RuleBasedCategoryConfig getInstance()
This method returns the singleton instance of the rule based category configuration.
public boolean getCategoryRuleEvaluationEnabled()
This method will return the value for 'evaluationEnabled'.
public java.lang.String getSchedulerApplicationType()
This method will return the value for 'schedulerApplicationType'.
public boolean getIsToolkit()
This method will return true if this is a Toolkit instance, false otherwise.
public boolean getIsWorkspacesInstance()
This method will return true if this is a Workspaces instance, false otherwise.
This setting for 'workspaceTaskList' will be checked in the wc-server.xml file.
ToolsGeneralConfig
public boolean getIsStagingInstance()
This method will return true if this is a Staging instance, false otherwise.
This setting for 'stagingEnabled' will be checked in the wc-server.xml file.
wc-server.xml:
public void setCategoryRuleEvaulationEnabled(boolean ruleBasedCategoryEvaluationEnabled)
This method will set the value for 'evaluationEnabled'.
If set to false, rules for rule based categories will NOT be processed.
ruleBasedCategoryEvaluationEnabled
- This is a flag to indicate whether the job to run category rules should be
running or not.public void setSchedulerApplicationType(java.lang.String schedulerApplicationType)
This method will set the value for 'schedulerApplicationType'.
If set to an empty string or an application type that is not defined as the name of a work manager, then the default application type will used to schedule rule-based category jobs.
schedulerApplicationType
- This is the name of the work manager whose thread pool will
be used to run scheduler rule-based category jobs.public void reloadConfiguration()
This method will reload the configuration from wc-admin-component.xml.
public java.lang.String getCategoryRuleEvaluationJobHostname()
This method will return the value for 'evaluationHostname'.
public java.math.BigInteger getRuleEvaluationTimeInterval()
This method will return the value for 'evaluationTimeInterval'.
public RuleBasedCategoryHelper getRuleBasedCategoryHelper()
This method will return a shared instance of Rule Based Category Helper.