|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.fiddler.FiddlerImpl.SetLocatorsTask
private final class FiddlerImpl.SetLocatorsTask
This class represents a Task
object that is placed
in the TaskManager
queue for processing in the thread
pool. Instances of this class are placed on the task queue when
a registration has requested the replacement of the set of locators
that currently will be discovered for it.
Field Summary | |
---|---|
LookupLocator[] |
locators
The locator set with which to replace the registration's old set |
FiddlerImpl.RegistrationInfo |
regInfo
Data structure record of the registration that made the request |
Constructor Summary | |
---|---|
FiddlerImpl.SetLocatorsTask(FiddlerImpl.RegistrationInfo regInfo,
LookupLocator[] locators)
Constructs an instance of this class and stores the input |
Method Summary | |
---|---|
void |
run()
|
boolean |
runAfter(List tasks,
int size)
This method returns true if the current instance of this class must be run after at least one task in the input task list with an index less than the size parameter (size may be
less than tasks.size()). |
private void |
setRegInfoLocators(FiddlerImpl.RegistrationInfo regInfo,
LookupLocator[] locators)
Replaces the registration's managed set of locators with the new locators (even if the new set of locators is empty -- this just means locator discovery will be "turned off" for this registration) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final FiddlerImpl.RegistrationInfo regInfo
public final LookupLocator[] locators
Constructor Detail |
---|
public FiddlerImpl.SetLocatorsTask(FiddlerImpl.RegistrationInfo regInfo, LookupLocator[] locators)
Method Detail |
---|
public void run()
run
in interface Runnable
private void setRegInfoLocators(FiddlerImpl.RegistrationInfo regInfo, LookupLocator[] locators)
public boolean runAfter(List tasks, int size)
size
parameter (size may be
less than tasks.size()).
Note that using List.get will be more efficient than List.iterator.
runAfter
in interface TaskManager.Task
tasks
- the tasks to consider. A read-only List, with all
elements being an instanceof Task.size
- elements with index less than size should be considered
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |