edu.vt.marian.server
Class call_back_processor1

java.lang.Object
  |
  +--edu.vt.marian.server.call_back_processor1

public class call_back_processor1
extends java.lang.Object
implements edu.vt.marian.uip.call_back_processor

interface name: call_back_processor class description: this is an interface, any system which want to use the service of uip need to implement this interface and overwrite it's methods. when client_uip or server_uip recieve a function from the other side it will call process_call_back(..) methods to process the function, since different systems may have different code processing functions revieved, that's also the reason that these methods need to be overwrite.

uses the services of class(es): none designer(s): Jianxin Zhao (jxzhao@csgrad.cs.vt.edu) implementator(s): finished time: known bugs: JDK version: 1.1.5 side effects:


Constructor Summary
call_back_processor1()
          empty constructor
 
Method Summary
 int process_call_back(edu.vt.marian.uip.client_uip cu, edu.vt.marian.uip.rpc_function rf)
          method description: this method will be called when client uip recieve a function from it's server uip uses the services of class(es): none input parameter(s): cu -- this is the client_uip object which recieved the function rf -- this is the function recieved by client_uip and need to be processed output parameter(s): none return value: 0 -- every thing is fine, the function has been processed correctly other -- defined by each system synchronization consideration: none
 int process_call_back(int client_id, edu.vt.marian.uip.rpc_function f)
          method description: this method will be called when server uip recieve a function from a client uip uses the services of class(es): none input parameter(s): client_id -- this is used to identify from which client the server get the function rf -- this is the function recieved by server_uip and need to be processed output parameter(s): none return value: 0 -- everything is fine, the function has been processed correctly other -- defined by each system synchronization consideration: none
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

call_back_processor1

public call_back_processor1()
empty constructor
Method Detail

process_call_back

public int process_call_back(edu.vt.marian.uip.client_uip cu,
                             edu.vt.marian.uip.rpc_function rf)
method description: this method will be called when client uip recieve a function from it's server uip

uses the services of class(es): none input parameter(s): cu -- this is the client_uip object which recieved the function rf -- this is the function recieved by client_uip and need to be processed output parameter(s): none return value: 0 -- every thing is fine, the function has been processed correctly other -- defined by each system synchronization consideration: none

Specified by:
process_call_back in interface edu.vt.marian.uip.call_back_processor

process_call_back

public int process_call_back(int client_id,
                             edu.vt.marian.uip.rpc_function f)
method description: this method will be called when server uip recieve a function from a client uip

uses the services of class(es): none input parameter(s): client_id -- this is used to identify from which client the server get the function rf -- this is the function recieved by server_uip and need to be processed output parameter(s): none return value: 0 -- everything is fine, the function has been processed correctly other -- defined by each system synchronization consideration: none

Specified by:
process_call_back in interface edu.vt.marian.uip.call_back_processor