com.sun.jini.reggie
Class RegistrarImpl.DecodeRequestTask

java.lang.Object
  extended by com.sun.jini.reggie.RegistrarImpl.DecodeRequestTask
All Implemented Interfaces:
TaskManager.Task, Runnable
Enclosing class:
RegistrarImpl

private final class RegistrarImpl.DecodeRequestTask
extends Object
implements TaskManager.Task

Task for decoding multicast request packets.


Field Summary
private  DatagramPacket datagram
          The multicast packet to decode
private  Discovery decoder
          The decoder for parsing the packet
 
Constructor Summary
RegistrarImpl.DecodeRequestTask(DatagramPacket datagram, Discovery decoder)
           
 
Method Summary
 void run()
          Decodes this task's multicast request packet, spawning an AddressTask if the packet satisfies the configured constraints, matches this registrar's groups, and does not already contain this registrar's service ID in its list of known registrars.
 boolean runAfter(List tasks, int size)
          No ordering
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

datagram

private final DatagramPacket datagram
The multicast packet to decode


decoder

private final Discovery decoder
The decoder for parsing the packet

Constructor Detail

RegistrarImpl.DecodeRequestTask

public RegistrarImpl.DecodeRequestTask(DatagramPacket datagram,
                                       Discovery decoder)
Method Detail

run

public void run()
Decodes this task's multicast request packet, spawning an AddressTask if the packet satisfies the configured constraints, matches this registrar's groups, and does not already contain this registrar's service ID in its list of known registrars. This method assumes that the protocol version of the request has already been checked.

Specified by:
run in interface Runnable

runAfter

public boolean runAfter(List tasks,
                        int size)
No ordering

Specified by:
runAfter in interface TaskManager.Task
Parameters:
tasks - the tasks to consider. A read-only List, with all elements instanceof Task.
size - elements with index less than size should be considered


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