net.jini.lookup
Class JoinManager.LeaseExpireNotifyTask

java.lang.Object
  extended by net.jini.lookup.JoinManager.JoinTask
      extended by net.jini.lookup.JoinManager.LeaseExpireNotifyTask
Enclosing class:
JoinManager

private class JoinManager.LeaseExpireNotifyTask
extends JoinManager.JoinTask

Task that asynchronously re-registers the service associated with this join manager with the lookup service referenced by the current instance of this class. This task is typically executed when the service's lease with the referenced lookup service has expired.


Field Summary
(package private)  Entry[] regAttrs
          Attributes with which to re-register the service.
 
Fields inherited from class net.jini.lookup.JoinManager.JoinTask
proxyReg
 
Constructor Summary
JoinManager.LeaseExpireNotifyTask(JoinManager.ProxyReg proxyReg, Entry[] regAttrs)
          Constructor that associates this task with the lookup service referenced in the given ProxyReg parameter.
 
Method Summary
 void run()
          Attempts to re-register this join manager's service with the lookup service referenced by the current instance of this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

regAttrs

Entry[] regAttrs
Attributes with which to re-register the service. These attributes must not change during the registration process performed in this this task.

Constructor Detail

JoinManager.LeaseExpireNotifyTask

JoinManager.LeaseExpireNotifyTask(JoinManager.ProxyReg proxyReg,
                                  Entry[] regAttrs)
Constructor that associates this task with the lookup service referenced in the given ProxyReg parameter.

Parameters:
proxyReg - data structure that references the lookup service with which the service is to be re-registered
regAttrs - array of Entry objects whose elements are the attributes with which to re-register the service. The caller of this constructor should take steps to guarantee that the contents of this parameter do not change during the registration process performed in this task.
Method Detail

run

public void run()
         throws Exception
Attempts to re-register this join manager's service with the lookup service referenced by the current instance of this class.

Specified by:
run in class JoinManager.JoinTask
Throws:
Exception


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.