Class DHTTransportMarshal<K,V>
java.lang.Object
edu.jas.util.DHTTransport<K,V>
edu.jas.util.DHTTransportMarshal<K,V>
- All Implemented Interfaces:
Serializable
Transport container for a distributed version of a HashTable. Immutable
objects. Uses MarshalledObject to avoid deserialization on server side.
-
Nested Class Summary
Nested classes/interfaces inherited from class DHTTransport
DHTTransport.Stor -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final MarshalledObjectprotected final MarshalledObject -
Constructor Summary
ConstructorsConstructorDescriptionDHTTransportMarshal(K key, V value) Constructs a new DHTTransport Container. -
Method Summary
Methods inherited from class DHTTransport
create
-
Field Details
-
key
-
value
-
-
Constructor Details
-
DHTTransportMarshal
Constructs a new DHTTransport Container.- Parameters:
key-value-- Throws:
IOException
-
-
Method Details
-
key
Get the key from this DHTTransport Container.- Specified by:
keyin classDHTTransport<K,V> - Throws:
IOExceptionClassNotFoundException
-
value
Get the value from this DHTTransport Container.- Specified by:
valuein classDHTTransport<K,V> - Throws:
IOExceptionClassNotFoundException
-
toString
-
writeObject
- Throws:
IOException
-
readObject
- Throws:
IOExceptionClassNotFoundException
-