solar.service.rpc
Interface RpcService

All Superinterfaces:
EventHandler, RequestHandler, Service
All Known Implementing Classes:
SolarRpcService

public interface RpcService
extends Service

A service emulates the remote procedure calls.

Version:
$Id: RpcService.java,v 1.6 2003/10/05 18:51:01 glchen Exp $
Author:
Guanling Chen

Method Summary
 java.lang.Object invoke(Address dest, java.lang.String handler, Request req)
          Send the request to remote party and wait for the result.
 java.lang.Object invoke(Address dest, java.lang.String handler, Request req, long timeout)
          Send the request and wait for the result for a fixed period.
 
Methods inherited from interface solar.service.Service
getName, getServiceManager, handleDispatchUnit, hasInited, init, initDependents, setName, setServiceManager, start, stop
 
Methods inherited from interface solar.api.EventHandler
handleEvent
 
Methods inherited from interface solar.api.RequestHandler
handleRequest
 

Method Detail

invoke

public java.lang.Object invoke(Address dest,
                               java.lang.String handler,
                               Request req)
                        throws RpcException
Send the request to remote party and wait for the result.

RpcException

invoke

public java.lang.Object invoke(Address dest,
                               java.lang.String handler,
                               Request req,
                               long timeout)
                        throws RpcException
Send the request and wait for the result for a fixed period.

RpcException