|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.captp.jcomm.RemoteHandler | +--net.captp.jcomm.LookupHandler
A handler for the special remote reference at position zero to the other side's NonceLocator
Field Summary | |
(package private) CapTPConnection |
myConn
Connection to the vat I point into |
(package private) ProxyResolver |
myResolver
The Resolver of our Proxy, which also revives the Proxy on demand. |
Constructor Summary | |
(package private) |
LookupHandler(CapTPConnection conn)
Construct a new LookupHandler. |
Method Summary | |
(package private) void |
countWireRef()
|
(package private) int |
getPos()
|
SealedBox |
handleOptSealedDispatch(Brand brand)
How should my ref respond to an __optSealedDispatch request? |
void |
handleResolution(Object newTarget)
Enabled: My Ref no longer needs me, as it's become equivalent to newTarget. |
Ref |
handleSendAll(String verb,
Object[] args)
Enabled: My Ref is asking me to deliver the message to the other side, and return a promise for the result. |
void |
handleSendAllOnly(String verb,
Object[] args)
Enabled: My Ref is asking me to deliver the message to the other side and ignore the result. |
boolean |
isFresh()
Shouldn't get redirected, so always fresh. |
void |
reactToGC()
Enabled: One of my Refs was GCed, and I have no current Ref. |
boolean |
sameConnection(Object other)
Enabled: Are 'other' and the remote reference handled by 'this' part of the same comm system, and do they both connect to the same remote vat? |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
final CapTPConnection myConn
final ProxyResolver myResolver
Constructor Detail |
LookupHandler(CapTPConnection conn)
Method Detail |
public boolean isFresh()
XXX kludge: even though this is made to appear as an unresolved remote reference, ie, a remote promise.
public SealedBox handleOptSealedDispatch(Brand brand)
handleOptSealedDispatch
in interface ProxyHandler
public void handleSendAllOnly(String verb, Object[] args)
ProxyHandler
If the underlying transport mechanism is shut down or otherwise not accepting messages, then it should throw a problem explaining why this message wasn't queued.
handleSendAllOnly
in interface ProxyHandler
public Ref handleSendAll(String verb, Object[] args)
ProxyHandler
If the underlying transport mechanism is shut down or otherwise not accepting messages, then it should either throw a problem explaining why this message wasn't queued, or return a reference that's immediately broken by this problem.
handleSendAll
in interface ProxyHandler
public void handleResolution(Object newTarget)
ProxyHandler
handleResolution
in interface ProxyHandler
public void reactToGC()
ProxyHandler
reactToGC
in interface ProxyHandler
int getPos()
void countWireRef()
public boolean sameConnection(Object other)
ProxyHandler
sameConnection
in interface ProxyHandler
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |