solar.service.dan
Class SolarDanService

java.lang.Object
  |
  +--solar.service.BaseService
        |
        +--solar.service.dan.AbstractDanService
              |
              +--solar.service.dan.SolarDanService
All Implemented Interfaces:
DanConstants, DanService, EventHandler, FapConstants, RequestHandler, Service

public class SolarDanService
extends AbstractDanService

The Solar implementation of DAN service. We enforce that all the pipe setup requests involving a Solar client are always issued from that client. The Planet never issues request to setup a pipe to a Solar client. So we can be sure that the remote end for a requesting pipe is always on the Planet.

Version:
$Id: SolarDanService.java,v 1.3 2003/10/05 18:50:55 glchen Exp $
Author:
Guanling Chen

Field Summary
 
Fields inherited from class solar.service.dan.AbstractDanService
_coreRpc, _coreTransport, _directory, _edgeRpc, _edgeTransport, _fap, _laddr, _nodeman, _parser, _pc
 
Fields inherited from class solar.service.BaseService
_inited, _manager, _name
 
Fields inherited from interface solar.service.dan.DanConstants
DAN_INPORT, DAN_OUTPORT
 
Fields inherited from interface solar.service.fap.FapConstants
FAP_DATA, FAP_MIXED, FAP_PID, FAP_PULL, FAP_PUSH
 
Constructor Summary
SolarDanService()
           
 
Method Summary
 void connect(int type, Guid sguid, java.lang.String outport, Guid dguid, java.lang.String inport)
          Connect two nodes (at least one local) with a pipe.
 java.lang.Object handleRequest(Request req)
          Processing a request.
 
Methods inherited from class solar.service.dan.AbstractDanService
getDirectoryService, getFapService, getLocalAddress, getNodeManager, getRpcService, init, initDependents, makeGraphManager, makeGuid
 
Methods inherited from class solar.service.BaseService
assertInited, getDependentService, getName, getServiceManager, handleDispatchUnit, handleEvent, handleEvent, hasInited, init, setInited, setName, setServiceManager, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface solar.service.Service
getName, getServiceManager, handleDispatchUnit, hasInited, setName, setServiceManager, start, stop
 
Methods inherited from interface solar.api.EventHandler
handleEvent
 

Constructor Detail

SolarDanService

public SolarDanService()
Method Detail

handleRequest

public java.lang.Object handleRequest(Request req)
                               throws java.lang.Exception
Description copied from interface: RequestHandler
Processing a request.

Specified by:
handleRequest in interface RequestHandler
Overrides:
handleRequest in class AbstractDanService
java.lang.Exception

connect

public void connect(int type,
                    Guid sguid,
                    java.lang.String outport,
                    Guid dguid,
                    java.lang.String inport)
             throws DanException
Description copied from interface: DanService
Connect two nodes (at least one local) with a pipe.

DanException