|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.fiddler.FiddlerImpl.NewRegistrationTask
private final class FiddlerImpl.NewRegistrationTask
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
registrations are granted.
The run
method of this class will determine if any of
the new registration's desired lookup service(s) have already been
discovered, and will send the appropriate remote discovery event to
the registration's listener.
Field Summary | |
---|---|
FiddlerImpl.RegistrationInfo |
regInfo
The data structure record corresponding to the new registration |
Constructor Summary | |
---|---|
FiddlerImpl.NewRegistrationTask(FiddlerImpl.RegistrationInfo regInfo)
Constructs an instance of this class and stores the registration information. |
Method Summary | |
---|---|
void |
run()
This method processes the information associated with the new registration and determines, based on the current state of the set of 'already-discovered' lookup service(s), whether to send a RemoteDiscoveryEvent to the new registration's
listener. |
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()). |
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
Constructor Detail |
---|
public FiddlerImpl.NewRegistrationTask(FiddlerImpl.RegistrationInfo regInfo)
Method Detail |
---|
public void run()
RemoteDiscoveryEvent
to the new registration's
listener.
run
in interface Runnable
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 |