de.fzj.unicore.wsrflite.impl
Class ExpiryChecker
java.lang.Object
de.fzj.unicore.wsrflite.impl.ExpiryChecker
- All Implemented Interfaces:
- InstanceChecker
public class ExpiryChecker
- extends Object
- implements InstanceChecker
Takes care of lifetime expiry.
A call to run() results in a single loop through all resources,
with expired ones being removed.
One of these takes care of a single wsrf service.
- Author:
- schuller
|
Method Summary |
boolean |
check(Home home,
String id)
check condition |
boolean |
process(Home home,
String id)
perform processing on the instance (in case check() hits) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExpiryChecker
public ExpiryChecker()
check
public boolean check(Home home,
String id)
throws ResourceUnknownException
- Description copied from interface:
InstanceChecker
- check condition
- Specified by:
check in interface InstanceChecker
id - - a WSRFInstance id
- Returns:
-
- Throws:
ResourceUnknownException
process
public boolean process(Home home,
String id)
- Description copied from interface:
InstanceChecker
- perform processing on the instance (in case check() hits)
- Specified by:
process in interface InstanceChecker
id - - a WSRFInstance id
- Returns:
- returns
true if instance is still valid. If it is
invalid, false is returned, and the instance will be removed from further checks
Copyright © 2010. All Rights Reserved.