util.rmi
Class AbstractRmiListener.CheckCaster
java.lang.Object
java.util.TimerTask
util.rmi.AbstractRmiListener.CheckCaster
- All Implemented Interfaces:
- Runnable
- Enclosing class:
- AbstractRmiListener
private class AbstractRmiListener.CheckCaster
- extends TimerTask
Checks if all casters are still valid references. This method is
implemeted in a timer task. It calls the rmi-casters
RmiCaster.isValid() method which throws a remote exception if the
remote reference is invalid. In the latter case this task tries to reget
a remote reference by re-looking up the registry.
|
Method Summary |
void |
run()
The run method of the timed remote reference check. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractRmiListener.CheckCaster
private AbstractRmiListener.CheckCaster()
run
public void run()
- The run method of the timed remote reference check. This method roams
through the
AbstractRmiListener.namingToRemote lookup table end calls the
RmiCaster.isValid() method on all remote references. References
that had somehow got invalid throw a remote exception on the call. In
this case, the binding is restored with a call to AbstractRmiListener.getCaster(java.lang.String)
and AbstractRmiListener.registerAtCaster(util.rmi.RmiCaster, java.lang.Class>).
This method synchronizes on the remote reference look-up table.
- Specified by:
run in interface Runnable- Specified by:
run in class TimerTask