concast.merged
Class UNL

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--concast.merged.UNL
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.lang.Runnable, java.io.Serializable

public class UNL
extends java.util.Vector
implements java.lang.Runnable

Thread that receives UNL and the key from the CSPd via the pipe. Also, stored the UNL. The only available method for user is getId(). UNL object can be access via user.getUNL() call

See Also:
Serialized Form

Field Summary
 int UNL_PROTO_VERSION
           
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
protected UNL(Merged merged)
           
 
Method Summary
 NodeId getId(int i)
          Returns the id of Ith up stream neighbor, the only call available to user.
protected  void getList(byte[] data)
          Read list from the byte array
protected  void open(java.io.FileDescriptor fi, java.io.FileDescriptor fo)
          Open incoming and outgoing pipes
protected  void readFromPipe()
          Read list from pipe
 void run()
          pipe thread
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Field Detail

UNL_PROTO_VERSION

public int UNL_PROTO_VERSION
Constructor Detail

UNL

protected UNL(Merged merged)
Method Detail

getList

protected void getList(byte[] data)
                throws java.io.IOException
Read list from the byte array

open

protected void open(java.io.FileDescriptor fi,
                    java.io.FileDescriptor fo)
Open incoming and outgoing pipes

readFromPipe

protected void readFromPipe()
                     throws java.io.IOException
Read list from pipe

getId

public NodeId getId(int i)
Returns the id of Ith up stream neighbor, the only call available to user.

run

public void run()
pipe thread
Specified by:
run in interface java.lang.Runnable