|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--solar.service.dan.PipeConnector
A pipe connector is responsible to set up a pipe between a data source and a data sink. It does not matter whether the two ends are both local or one is remote.
Field Summary | |
protected DanService |
_dan
|
protected FapService |
_fap
|
protected Address |
_laddr
|
protected NodeManager |
_nodeman
|
protected RpcService |
_rpc
|
Fields inherited from interface solar.service.rpc.RpcConstants |
RPC_BLOCK, RPC_HANDLER, RPC_REPLY, RPC_REQUEST, RPC_TIMEOUT |
Fields inherited from interface solar.service.dan.DanConstants |
DAN_INPORT, DAN_OUTPORT |
Constructor Summary | |
PipeConnector(DanService dan)
|
Method Summary | |
private java.lang.Object |
callRpc(Address addr,
Request req)
Invoke a RPC call with specified request. |
private Id |
makePipeId()
|
void |
pconnect(int type,
Address addr,
Guid sguid,
java.lang.String outport,
Guid dguid,
java.lang.String inport,
boolean client)
Connects a remote source to a local sink. |
void |
pconnect(int type,
Guid sguid,
java.lang.String outport,
Address addr,
Guid dguid,
java.lang.String inport,
boolean client)
Connects a local source to a remote sink. |
void |
pconnect(int type,
Guid sguid,
java.lang.String outport,
Guid dguid,
java.lang.String inport)
Connects a local source to a local sink. |
Id |
pconnect(Request request)
Handle the pconnect request. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected DanService _dan
protected FapService _fap
protected RpcService _rpc
protected Address _laddr
protected NodeManager _nodeman
Constructor Detail |
public PipeConnector(DanService dan)
Method Detail |
private Id makePipeId()
public Id pconnect(Request request) throws java.lang.Exception
java.lang.Exception
public void pconnect(int type, Guid sguid, java.lang.String outport, Address addr, Guid dguid, java.lang.String inport, boolean client) throws DanException
DanException
public void pconnect(int type, Address addr, Guid sguid, java.lang.String outport, Guid dguid, java.lang.String inport, boolean client) throws DanException
DanException
public void pconnect(int type, Guid sguid, java.lang.String outport, Guid dguid, java.lang.String inport) throws DanException
DanException
private java.lang.Object callRpc(Address addr, Request req) throws RpcException
RpcException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |