com.ibm.commerce.rules
Class JustInTimeServiceManager
java.lang.Object
|
+--com.ibm.commerce.rules.JustInTimeServiceManager
- public class JustInTimeServiceManager
- extends java.lang.Object
Manages the timestamp of the last time rule services
were updated to support resetting services just in time.
Field Summary |
static java.lang.String |
COPYRIGHT
|
Method Summary |
void |
addJustInTimeServiceEventListener(JustInTimeServiceEventListener listener)
|
boolean |
contains(JustInTimeServiceManager.Entry anEntry)
Answers the question, "Does the manager have the specified entry?" |
boolean |
contains(java.lang.String aServerName,
java.lang.String aServiceName,
int aStoreId)
Answers the question, "Does the manager an entry
in the specified rule server with the specified
name and store ID?" |
boolean |
isServiceUpToDate(JustInTimeServiceManager.Entry anEntry,
java.util.Calendar byNow)
Answers the question, "Is the specified rule service up to date,
relative to the specified time?" The system uses this method to
determine whether a rule service has been changed and needs to
be reset. |
boolean |
isServiceUpToDate(java.lang.String aServerName,
java.lang.String aServiceName,
int aStoreId,
java.util.Calendar byNow)
Clients can use this version of the method if they don't have
an instance of JustInTimeServiceManager.Entry on hand. |
void |
notifyListeners(JustInTimeServiceEventNotification notification)
|
void |
removeJustInTimeServiceEventListener(JustInTimeServiceEventListener listener)
|
void |
updateService(JustInTimeServiceManager.Entry anEntry,
java.util.Calendar lastUpdated)
Clients can call this method to indicate that the specified
rule service was last updated at the specified time. |
void |
updateService(java.lang.String aServerName,
java.lang.String aServiceName,
int aStoreId,
java.util.Calendar lastUpdated)
Clients can use this version of the method if they don't have
an instance of JustInTimeServiceManager.Entry on hand. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COPYRIGHT
public static final java.lang.String COPYRIGHT
JustInTimeServiceManager
public JustInTimeServiceManager()
addJustInTimeServiceEventListener
public void addJustInTimeServiceEventListener(JustInTimeServiceEventListener listener)
contains
public boolean contains(JustInTimeServiceManager.Entry anEntry)
- Answers the question, "Does the manager have the specified entry?"
contains
public boolean contains(java.lang.String aServerName,
java.lang.String aServiceName,
int aStoreId)
- Answers the question, "Does the manager an entry
in the specified rule server with the specified
name and store ID?"
isServiceUpToDate
public boolean isServiceUpToDate(JustInTimeServiceManager.Entry anEntry,
java.util.Calendar byNow)
- Answers the question, "Is the specified rule service up to date,
relative to the specified time?" The system uses this method to
determine whether a rule service has been changed and needs to
be reset.
- Parameters:
anEntry
- A just-in-time service manager entry.byNow
- The time to use as "now" for comparison.
isServiceUpToDate
public boolean isServiceUpToDate(java.lang.String aServerName,
java.lang.String aServiceName,
int aStoreId,
java.util.Calendar byNow)
- Clients can use this version of the method if they don't have
an instance of JustInTimeServiceManager.Entry on hand.
- See Also:
isServiceUpToDate(JustInTimeServiceManager.Entry, Calendar)
notifyListeners
public void notifyListeners(JustInTimeServiceEventNotification notification)
removeJustInTimeServiceEventListener
public void removeJustInTimeServiceEventListener(JustInTimeServiceEventListener listener)
updateService
public void updateService(JustInTimeServiceManager.Entry anEntry,
java.util.Calendar lastUpdated)
- Clients can call this method to indicate that the specified
rule service was last updated at the specified time.
The system uses this method to tell the just-in-time service
manager that it has successfully reset the rule service and
considers itself "up to date" by the specified time.
- Parameters:
anEntry
- A just-in-time service manager entry.lastUpdated
- The time at which the service was last updated.
updateService
public void updateService(java.lang.String aServerName,
java.lang.String aServiceName,
int aStoreId,
java.util.Calendar lastUpdated)
- Clients can use this version of the method if they don't have
an instance of JustInTimeServiceManager.Entry on hand.
- See Also:
updateService(JustInTimeServiceManager.Entry, Calendar)