com.ibm.commerce.rules
Class RuleServiceConfiguration
java.lang.Object
|
+--com.ibm.commerce.rules.RuleServiceConfiguration
- public class RuleServiceConfiguration
- extends java.lang.Object
Represents the configuration of a rule service
within the rules system. A rule service belongs
to a specific rule server and is identified
by a "key".
A rule service configuration is entirely
a data object with these properties, which are
all read/write:
agents
The number of rule agents to initialize
for this rule service when it starts. The magic number
-1 tells the system to create and destroy rule agents as needed,
rather than maintain a pool of them.
lastUpdate
A timestamp representing when this
rule service was last updated, usually by a store administrator
changing its configuration or redeploying a rule service.
projectPath
The rule project file for this service —
this must be the main project file, ending in .adv
.
serverName
The name of the server to which this
rule service belongs.
serviceKey
The identifying key for this rule
service.
sessionTimeout
The length of time, in milliseconds,
the rules system should wait before it stops waiting for a
response from a rule service.
- See Also:
RuleServiceKey
Field Summary |
static java.lang.String |
COPYRIGHT
|
Constructor Summary |
RuleServiceConfiguration(java.lang.String aServerName,
RuleServiceKey aServiceKey,
java.io.File aProjectPath)
Creates a rule service configuration with the specified parameters. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
COPYRIGHT
public static final java.lang.String COPYRIGHT
RuleServiceConfiguration
public RuleServiceConfiguration(java.lang.String aServerName,
RuleServiceKey aServiceKey,
java.io.File aProjectPath)
- Creates a rule service configuration with the specified parameters.
- Parameters:
aServerName
- The name of the rule server to which this rule
service belongs.aServiceKey
- The identification key for the rule service.aProjectPath
- The rule project file for this service —
this must be the main project file, ending in .adv
.
equals
public boolean equals(java.lang.Object obj)
RuleServiceConfiguration
s are equal iff
they belong to the same server and have the same
service key.
- Overrides:
equals
in class java.lang.Object
getAgents
public int getAgents()
getLastUpdate
public java.util.Calendar getLastUpdate()
getProjectPath
public java.io.File getProjectPath()
getServerName
public java.lang.String getServerName()
getServiceKey
public RuleServiceKey getServiceKey()
getSessionTimeout
public long getSessionTimeout()
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
isEnabled
public boolean isEnabled()
setAgents
public void setAgents(int newAgents)
setEnabled
public void setEnabled(boolean newEnabled)
setLastUpdate
public void setLastUpdate(java.util.Calendar newLastUpdate)
setProjectPath
public void setProjectPath(java.io.File newProjectPath)
setSessionTimeout
public void setSessionTimeout(long newSessionTimeout)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object