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:

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.
 
Method Summary
 boolean equals(java.lang.Object obj)
          RuleServiceConfigurations are equal iff they belong to the same server and have the same service key.
 int getAgents()
           
 java.util.Calendar getLastUpdate()
           
 java.io.File getProjectPath()
           
 java.lang.String getServerName()
           
 RuleServiceKey getServiceKey()
           
 long getSessionTimeout()
           
 int hashCode()
           
 boolean isEnabled()
           
 void setAgents(int newAgents)
           
 void setEnabled(boolean newEnabled)
           
 void setLastUpdate(java.util.Calendar newLastUpdate)
           
 void setProjectPath(java.io.File newProjectPath)
           
 void setSessionTimeout(long newSessionTimeout)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Constructor Detail

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.
Method Detail

equals

public boolean equals(java.lang.Object obj)
RuleServiceConfigurations 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