Package edu.jas.util

Class DHTTransport<K,​V>

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    DHTTransportClear, DHTTransportMarshal, DHTTransportPlain, DHTTransportTerminate

    public abstract class DHTTransport<K,​V>
    extends java.lang.Object
    implements java.io.Serializable
    Transport container for a distributed version of a HashTable. Note: Contains code for timing of marshalled versus plain object serialization which can be removed later.
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  DHTTransport.Stor  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static long drtime  
      (package private) static long dtime  
      (package private) static long ertime  
      (package private) static long etime  
      static DHTTransport.Stor stor  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected DHTTransport()
      protected constructor.
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      static <K,​V>
      DHTTransport<K,​V>
      create​(K key, V value)
      Create a new DHTTransport Container.
      abstract K key()
      Get the key from this DHTTransport Container.
      java.lang.String toString()
      toString.
      abstract V value()
      Get the value from this DHTTransport Container.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • etime

        static long etime
      • dtime

        static long dtime
      • ertime

        static long ertime
      • drtime

        static long drtime
    • Constructor Detail

      • DHTTransport

        protected DHTTransport()
        protected constructor.
    • Method Detail

      • create

        public static <K,​V> DHTTransport<K,​V> create​(K key,
                                                                 V value)
                                                          throws java.io.IOException
        Create a new DHTTransport Container.
        Parameters:
        key -
        value -
        Throws:
        java.io.IOException
      • key

        public abstract K key()
                       throws java.io.IOException,
                              java.lang.ClassNotFoundException
        Get the key from this DHTTransport Container.
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • value

        public abstract V value()
                         throws java.io.IOException,
                                java.lang.ClassNotFoundException
        Get the value from this DHTTransport Container.
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • toString

        public java.lang.String toString()
        toString.
        Overrides:
        toString in class java.lang.Object