tapestry.impl
Class FullTestMsg

java.lang.Object
  |
  +--ostore.network.NetworkMessage
        |
        +--tapestry.impl.FullTestMsg
All Implemented Interfaces:
Cloneable, QueueElementIF, QuickSerializable

public class FullTestMsg
extends NetworkMessage
implements QuickSerializable

FullTestMsg.java The message that carries a request or response for a test action or sequence. Sent between the FullTestDriver and any number of FullTestMembers.

Version:
$Id: FullTestMsg.java,v 1.1.1.1 2004/03/26 19:57:06 hweather Exp $
Author:
Ben Y. Zhao

Field Summary
static int CLEAR_BANDWIDTH_COUNTS
          Message requesting bandwidth counts
 String comment
           
static int DEBUG_TEST_REQUEST
          Message requesting node to detach, wait for some time, then reinsert itself with node GUID Data fields: none
static int DETACH_INTEGRATE_REQUEST
          Message requesting node to detach, wait for some time, then reinsert itself with node GUID Data fields: int millsToWait, SecureHash nodeguid
static int DETACH_REQUEST
          Message requesting node to detach from Tapestry network Data fields: int millsToWait
static int EXIT_REQUEST
          Test is finished, exit.
 double failure
           
 NodeId gateway
           
 SecureHash[] guids
           
 int hop
           
static int INFO_REQUEST
          Message requesting basic node info like Guid and # of local objs Data fields: none
static int INJECT_FAULT
          Message telling test member to inject fault to itself
static int INTEGRATE_REQUEST
          Message requesting node to do dynamic node insertion with node GUID Data fields: int millsToWait, SecureHash nodeguid
static int LOOKUP_REQUEST
          Message requesting node send TapestryLocate to GUID Data fields: SecureHash [] objguid
 int msToWait
           
 NodeId[] nodeids
           
static int PUBLISH_REQUEST
          Message requesting node "create" some objects with GUID and publish Data fields: SecureHash [] objguid
 boolean repeat_lookups
           
 SecureHash requestID
           
static int ROUTE_REQUEST
          Message requesting node send TapestryRouteMsg to node GUID Data fields: SecureHash [] nodeguid
static int ROUTING_PATH_REQUEST
          Message telling test member to find out overlay routing path between guids[0] and guids[1];
static int ROUTING_PATH_RESULTS
          Message from test member to test drive: the routing path with some hop.
 int test
           
 long[] time
           
static int TRACE_DATA
          Message sending trace data to test member
static int TRACE_START
          Message telling test member trace experiment start
 int type
           
static int UNPUBLISH_REQUEST
          Message requesting node "destroy" local objects with GUID and unpublish Data fields: SecureHash [] objguid
 int value
           
static int VERIFY_REQUEST
          Message requesting routing table and revpointers from node
 
Fields inherited from class ostore.network.NetworkMessage
comp_q, est_rtt_ms, inbound, peer, sender, tries, user_data, wait_ms
 
Constructor Summary
FullTestMsg(InputBuffer buffer)
           
FullTestMsg(NodeId peer, int type, int val, SecureHash reqID, NodeId gateway, long[] time)
           
FullTestMsg(NodeId peer, int type, SecureHash reqID, int msToWait, int hop)
           
FullTestMsg(NodeId peer, int type, SecureHash reqID, int msToWait, SecureHash[] guids)
           
FullTestMsg(NodeId peer, int type, SecureHash reqID, int msToWait, SecureHash[] guids, NodeId gateway)
           
FullTestMsg(NodeId peer, int type, SecureHash reqID, int msToWait, SecureHash[] guids, NodeId[] nodeids)
           
FullTestMsg(NodeId peer, int type, SecureHash reqID, int msToWait, SecureHash[] guids, NodeId[] nodeids, String comment)
           
FullTestMsg(NodeId peer, int type, SecureHash reqID, NodeId gateway, long[] time)
           
 
Method Summary
 Object clone()
           
 void serialize(OutputBuffer buffer)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EXIT_REQUEST

public static final int EXIT_REQUEST
Test is finished, exit.

See Also:
Constant Field Values

INFO_REQUEST

public static final int INFO_REQUEST
Message requesting basic node info like Guid and # of local objs Data fields: none

See Also:
Constant Field Values

PUBLISH_REQUEST

public static final int PUBLISH_REQUEST
Message requesting node "create" some objects with GUID and publish Data fields: SecureHash [] objguid

See Also:
Constant Field Values

UNPUBLISH_REQUEST

public static final int UNPUBLISH_REQUEST
Message requesting node "destroy" local objects with GUID and unpublish Data fields: SecureHash [] objguid

See Also:
Constant Field Values

LOOKUP_REQUEST

public static final int LOOKUP_REQUEST
Message requesting node send TapestryLocate to GUID Data fields: SecureHash [] objguid

See Also:
Constant Field Values

ROUTE_REQUEST

public static final int ROUTE_REQUEST
Message requesting node send TapestryRouteMsg to node GUID Data fields: SecureHash [] nodeguid

See Also:
Constant Field Values

INTEGRATE_REQUEST

public static final int INTEGRATE_REQUEST
Message requesting node to do dynamic node insertion with node GUID Data fields: int millsToWait, SecureHash nodeguid

See Also:
Constant Field Values

DETACH_REQUEST

public static final int DETACH_REQUEST
Message requesting node to detach from Tapestry network Data fields: int millsToWait

See Also:
Constant Field Values

DETACH_INTEGRATE_REQUEST

public static final int DETACH_INTEGRATE_REQUEST
Message requesting node to detach, wait for some time, then reinsert itself with node GUID Data fields: int millsToWait, SecureHash nodeguid

See Also:
Constant Field Values

DEBUG_TEST_REQUEST

public static final int DEBUG_TEST_REQUEST
Message requesting node to detach, wait for some time, then reinsert itself with node GUID Data fields: none

See Also:
Constant Field Values

VERIFY_REQUEST

public static final int VERIFY_REQUEST
Message requesting routing table and revpointers from node

See Also:
Constant Field Values

CLEAR_BANDWIDTH_COUNTS

public static final int CLEAR_BANDWIDTH_COUNTS
Message requesting bandwidth counts

See Also:
Constant Field Values

TRACE_DATA

public static final int TRACE_DATA
Message sending trace data to test member

See Also:
Constant Field Values

TRACE_START

public static final int TRACE_START
Message telling test member trace experiment start

See Also:
Constant Field Values

INJECT_FAULT

public static final int INJECT_FAULT
Message telling test member to inject fault to itself

See Also:
Constant Field Values

ROUTING_PATH_REQUEST

public static final int ROUTING_PATH_REQUEST
Message telling test member to find out overlay routing path between guids[0] and guids[1];

See Also:
Constant Field Values

ROUTING_PATH_RESULTS

public static final int ROUTING_PATH_RESULTS
Message from test member to test drive: the routing path with some hop. Data field: OverlayPath.

See Also:
Constant Field Values

type

public int type

value

public int value

requestID

public SecureHash requestID

msToWait

public int msToWait

failure

public double failure

guids

public SecureHash[] guids

nodeids

public NodeId[] nodeids

gateway

public NodeId gateway

time

public long[] time

repeat_lookups

public boolean repeat_lookups

comment

public String comment

hop

public int hop

test

public int test
Constructor Detail

FullTestMsg

public FullTestMsg(NodeId peer,
                   int type,
                   SecureHash reqID,
                   int msToWait,
                   int hop)

FullTestMsg

public FullTestMsg(NodeId peer,
                   int type,
                   SecureHash reqID,
                   int msToWait,
                   SecureHash[] guids)

FullTestMsg

public FullTestMsg(NodeId peer,
                   int type,
                   SecureHash reqID,
                   int msToWait,
                   SecureHash[] guids,
                   NodeId[] nodeids,
                   String comment)

FullTestMsg

public FullTestMsg(NodeId peer,
                   int type,
                   SecureHash reqID,
                   int msToWait,
                   SecureHash[] guids,
                   NodeId[] nodeids)

FullTestMsg

public FullTestMsg(NodeId peer,
                   int type,
                   SecureHash reqID,
                   int msToWait,
                   SecureHash[] guids,
                   NodeId gateway)

FullTestMsg

public FullTestMsg(NodeId peer,
                   int type,
                   int val,
                   SecureHash reqID,
                   NodeId gateway,
                   long[] time)

FullTestMsg

public FullTestMsg(NodeId peer,
                   int type,
                   SecureHash reqID,
                   NodeId gateway,
                   long[] time)

FullTestMsg

public FullTestMsg(InputBuffer buffer)
            throws QSException
Method Detail

serialize

public void serialize(OutputBuffer buffer)
Specified by:
serialize in interface QuickSerializable
Overrides:
serialize in class NetworkMessage

clone

public Object clone()
             throws CloneNotSupportedException
Overrides:
clone in class NetworkMessage
CloneNotSupportedException

toString

public String toString()
Overrides:
toString in class NetworkMessage