com.caucho.distcache.cluster
Class DataPut

java.lang.Object
  extended by com.caucho.distcache.cluster.DataPut
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DataPutTriad

public class DataPut
extends java.lang.Object
implements java.io.Serializable

Updates data for a cache

See Also:
Serialized Form

Constructor Summary
protected DataPut()
          Hessian zero-arg constructor
  DataPut(byte[] value, StreamSource data)
          Create a new CachePut message
 
Method Summary
 StreamSource getData()
          Returns the source
 java.io.InputStream getInputStream()
          Opens the input stream
 StreamSource getStreamSource()
          Returns the stream source
 byte[] getValue()
          Returns the value hash
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataPut

protected DataPut()
Hessian zero-arg constructor


DataPut

public DataPut(byte[] value,
               StreamSource data)
Create a new CachePut message

Method Detail

getValue

public byte[] getValue()
Returns the value hash


getData

public StreamSource getData()
Returns the source


getStreamSource

public StreamSource getStreamSource()
Returns the stream source


getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Opens the input stream

Throws:
java.io.IOException

toString

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