com.ccg.net
Class Dispatcher

java.lang.Object
  extended by com.ccg.net.Dispatcher
All Implemented Interfaces:
Receiver

public class Dispatcher
extends Object
implements Receiver

Not ready for prime time - please ignore for now.

 class Example {
   public void main(String[] args) {
     com.ccg.net.Dispatcher o = new com.ccg.net.Dispatcher();
          System.out.println(o);
   }
 }
 

Since:
1.0
Version:
$Revision: 1.3 $
Author:
$Author: pkb $ *see [class][#method]|Text

Constructor Summary
Dispatcher()
          Initializes object to...
 
Method Summary
 Exception add(Object toDispatchTo)
          One line summary...
 Transport connect(Object client, Lookup transportSettings)
          One line summary...
 Exception received(Transport from, Object what)
          What to do with an Object received from a Transport This method handles the processing of objects which are received by a Transport.
 Thread startReceiving(Transport t)
          One line summary...
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dispatcher

public Dispatcher()
Initializes object to... It performs the following tasks:

Since:
1.0 *see [class][#meth]|Text
Method Detail

received

public Exception received(Transport from,
                          Object what)
What to do with an Object received from a Transport This method handles the processing of objects which are received by a Transport. The actual processing is left up to the implementer.

Specified by:
received in interface Receiver
Parameters:
from - Where the object came from.
o - Object that was sent.
Returns:
null if everything went well. However if a problem occurred during processing, an Exception object will be returned indicating what went wrong.
Since:
1.0
See Also:
Transport, Dispatcher

add

public Exception add(Object toDispatchTo)
One line summary... Describe...

Parameters:
arg1 - arg1-describe
arg2 - arg2-describe
Returns:
ret-description
Throws:
exc - Why thrown
Since:
1.0 *see [class][#meth]|Text

connect

public Transport connect(Object client,
                         Lookup transportSettings)
One line summary... Describe...

Parameters:
arg1 - arg1-describe
arg2 - arg2-describe
Returns:
ret-description
Throws:
exc - Why thrown
Since:
1.0 *see [class][#meth]|Text

startReceiving

public Thread startReceiving(Transport t)
One line summary... Describe...

Parameters:
arg1 - arg1-describe
arg2 - arg2-describe
Returns:
ret-description
Throws:
exc - Why thrown
Since:
1.0 *see [class][#meth]|Text


Copyright 1998-1998-2006 null. All Rights Reserved.