net.jini.lookup
Class JoinManager.AddAttributesTask

java.lang.Object
  extended by net.jini.lookup.JoinManager.JoinTask
      extended by net.jini.lookup.JoinManager.AddAttributesTask
Direct Known Subclasses:
JoinManager.ModifyAttributesTask, JoinManager.SetAttributesTask
Enclosing class:
JoinManager

private class JoinManager.AddAttributesTask
extends JoinManager.JoinTask

Task that asynchronously augments the attributes associated with this join manager's service in the lookup service referenced by the current instance of this class.


Field Summary
protected  Entry[] attrSets
          The new attribute values with which the service's current attributes will be augmented, replaced, or changed.
 
Fields inherited from class net.jini.lookup.JoinManager.JoinTask
proxyReg
 
Constructor Summary
JoinManager.AddAttributesTask(JoinManager.ProxyReg proxyReg, Entry[] newAttrs)
          Constructor that associates this task with the lookup service referenced in the given ProxyReg parameter.
 
Method Summary
protected  void doAttributes(JoinManager.ProxyReg proxyReg)
          Performs the actual attribute augmentation, replacement, or modification work.
 void run()
          Attempts to either augment, replace, or modify the attributes of this join manager's service in 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

attrSets

protected Entry[] attrSets
The new attribute values with which the service's current attributes will be augmented, replaced, or changed.

Constructor Detail

JoinManager.AddAttributesTask

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

Parameters:
proxyReg - data structure that references the lookup service in which the service's attributes should be augmented
newAttrs - the attributes with which to augment the service's current set of attributes
Method Detail

doAttributes

protected void doAttributes(JoinManager.ProxyReg proxyReg)
                     throws Exception
Performs the actual attribute augmentation, replacement, or modification work. This method is typically overridden by sub-classes of this class.

Throws:
Exception

run

public void run()
         throws Exception
Attempts to either augment, replace, or modify the attributes of this join manager's service in the lookup service referenced by the current instance of this class. Which action is taken -- augmentation, replacement, or modification -- is dependent on the definition of the doAttributes/code> method.

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.