osl.tests.handler.simple
Class TestRcvClient

java.lang.Object
  |
  +--osl.tests.handler.simple.TestRcvClient

public class TestRcvClient
extends java.lang.Object
implements java.lang.Runnable, CustomRequestClient, TransportClient

A simple test of the request handler using the following services: 1. The basic scheduler 2. The UDP implementation of the transport layer 3. The simple implementation of the nameservice.

Version:
$Revision: 1.5 $ ($Date: 1999/12/29 03:16:45 $)

Constructor Summary
TestRcvClient(Scheduler S, java.lang.String H)
           
 
Method Summary
 void handlerException(RequestSession session, java.lang.Exception except, RequestID id)
           
static void main(java.lang.String[] argv)
           
 void run()
           
 void test1()
           
 java.lang.String test2()
           
 void test3(java.lang.String arg1, PhysicalAddress arg2)
           
 Name test4(java.lang.String arg1, PhysicalAddress arg2)
           
 java.lang.Object test7()
           
 void transportException(TransportInstance target, TransportMessage msg, TransportException error)
          Called if the transport layer encounters an exception while attempting to send a previously queued message.
 void transportReceive(TransportInstance to, TransportMessage msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestRcvClient

public TestRcvClient(Scheduler S,
                     java.lang.String H)
Method Detail

main

public static void main(java.lang.String[] argv)

run

public void run()
Specified by:
run in interface java.lang.Runnable

transportReceive

public void transportReceive(TransportInstance to,
                             TransportMessage msg)
Specified by:
transportReceive in interface TransportClient

transportException

public void transportException(TransportInstance target,
                               TransportMessage msg,
                               TransportException error)
Called if the transport layer encounters an exception while attempting to send a previously queued message. If a client holds several connections it is their responsibility to demultiplex incoming messages as appropriate. The target field may be used to determine which connection this message is associated with.
Specified by:
transportException in interface TransportClient
Parameters:
target - The TransportInstance reference that the original message was sent from. By assumption, the client is the owner of this instance.
msg - The original TransportMessage that was queued to be sent to the remote host.
error - The TransportException which encapsulates the error encountered during transmission.

handlerException

public void handlerException(RequestSession session,
                             java.lang.Exception except,
                             RequestID id)

test1

public void test1()
Specified by:
test1 in interface CustomRequestClient

test2

public java.lang.String test2()
Specified by:
test2 in interface CustomRequestClient

test3

public void test3(java.lang.String arg1,
                  PhysicalAddress arg2)
Specified by:
test3 in interface CustomRequestClient

test4

public Name test4(java.lang.String arg1,
                  PhysicalAddress arg2)
Specified by:
test4 in interface CustomRequestClient

test7

public java.lang.Object test7()
Specified by:
test7 in interface CustomRequestClient