demo.dynamic
Class TestDeleteMsg

java.lang.Object
  |
  +--ostore.network.NetworkMessage
        |
        +--demo.dynamic.TestDeleteMsg
All Implemented Interfaces:
Cloneable, QueueElementIF, QuickSerializable

public class TestDeleteMsg
extends NetworkMessage

The msg to say we're done with delete, now start locate again

Version:
$Id: TestDeleteMsg.java,v 1.1 2004/05/03 09:03:28 hweather Exp $
Author:
Ben Y. Zhao

Field Summary
static int FAILURE_TYPE
           
static int REQUEST_TYPE
           
static int RESPONSE_TYPE
           
static int SUCCESS_TYPE
           
 int type
          Either REQUEST_TYPE, RESPONSE_TYPE, SUCCESS_TYPE, or FAILURE_TYPE.
 
Fields inherited from class ostore.network.NetworkMessage
comp_q, est_rtt_ms, inbound, peer, sender, tries, user_data, wait_ms
 
Constructor Summary
TestDeleteMsg(InputBuffer buffer)
          Constructs a TestDeleteMsg from its serialized form.
TestDeleteMsg(NodeId peer, int type)
          Constructor: Creates a new TestDeleteMsg.
 
Method Summary
 void serialize(OutputBuffer buffer)
          Specified by ostore.util.QuickSerializable
 String toString()
          Specified by java.lang.Object
 
Methods inherited from class ostore.network.NetworkMessage
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REQUEST_TYPE

public static final int REQUEST_TYPE
See Also:
Constant Field Values

RESPONSE_TYPE

public static final int RESPONSE_TYPE
See Also:
Constant Field Values

SUCCESS_TYPE

public static final int SUCCESS_TYPE
See Also:
Constant Field Values

FAILURE_TYPE

public static final int FAILURE_TYPE
See Also:
Constant Field Values

type

public int type
Either REQUEST_TYPE, RESPONSE_TYPE, SUCCESS_TYPE, or FAILURE_TYPE.

Constructor Detail

TestDeleteMsg

public TestDeleteMsg(NodeId peer,
                     int type)
Constructor: Creates a new TestDeleteMsg.


TestDeleteMsg

public TestDeleteMsg(InputBuffer buffer)
              throws QSException
Constructs a TestDeleteMsg from its serialized form.

Parameters:
buffer - serialized form of object.
Method Detail

serialize

public void serialize(OutputBuffer buffer)
Specified by ostore.util.QuickSerializable

Specified by:
serialize in interface QuickSerializable
Overrides:
serialize in class NetworkMessage

toString

public String toString()
Specified by java.lang.Object

Overrides:
toString in class NetworkMessage