org.apache.cassandra.service
Class AntiEntropyService.TreeRequestVerbHandler

java.lang.Object
  extended by org.apache.cassandra.service.AntiEntropyService.TreeRequestVerbHandler
All Implemented Interfaces:
ICompactSerializer<AntiEntropyService.TreeRequest>, IVerbHandler
Enclosing class:
AntiEntropyService

public static class AntiEntropyService.TreeRequestVerbHandler
extends java.lang.Object
implements IVerbHandler, ICompactSerializer<AntiEntropyService.TreeRequest>

Handler for requests from remote nodes to generate a valid tree. The payload is a CFPair representing the columnfamily to validate.


Field Summary
static AntiEntropyService.TreeRequestVerbHandler SERIALIZER
           
 
Constructor Summary
AntiEntropyService.TreeRequestVerbHandler()
           
 
Method Summary
 AntiEntropyService.TreeRequest deserialize(java.io.DataInputStream dis, int version)
          Deserialize into the specified DataInputStream instance.
 void doVerb(Message message, java.lang.String id)
          Trigger a validation compaction which will return the tree upon completion.
 void serialize(AntiEntropyService.TreeRequest request, java.io.DataOutputStream dos, int version)
          Serialize the specified type into the specified DataOutputStream instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERIALIZER

public static final AntiEntropyService.TreeRequestVerbHandler SERIALIZER
Constructor Detail

AntiEntropyService.TreeRequestVerbHandler

public AntiEntropyService.TreeRequestVerbHandler()
Method Detail

serialize

public void serialize(AntiEntropyService.TreeRequest request,
                      java.io.DataOutputStream dos,
                      int version)
               throws java.io.IOException
Description copied from interface: ICompactSerializer
Serialize the specified type into the specified DataOutputStream instance.

Specified by:
serialize in interface ICompactSerializer<AntiEntropyService.TreeRequest>
Parameters:
request - type that needs to be serialized
dos - DataOutput into which serialization needs to happen.
Throws:
java.io.IOException

deserialize

public AntiEntropyService.TreeRequest deserialize(java.io.DataInputStream dis,
                                                  int version)
                                           throws java.io.IOException
Description copied from interface: ICompactSerializer
Deserialize into the specified DataInputStream instance.

Specified by:
deserialize in interface ICompactSerializer<AntiEntropyService.TreeRequest>
Parameters:
dis - DataInput from which deserialization needs to happen.
Returns:
the type that was deserialized
Throws:
java.io.IOException

doVerb

public void doVerb(Message message,
                   java.lang.String id)
Trigger a validation compaction which will return the tree upon completion.

Specified by:
doVerb in interface IVerbHandler
Parameters:
message - - incoming message that needs handling.


Copyright © 2011 The Apache Software Foundation