|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.captp.jcomm.CapTPMgr
Untamed:
Field Summary | |
private VatTPMgr |
myConnMgr
The connections manager to talk to |
private ESecureRandom |
myEntropy
makes new unguessable numbers |
private LocatorUnum |
myLocatorUnum
|
private FlexMap |
myProxyConnections
map from DataConnections to ProxyConnections |
(package private) Sealer |
mySealer
for self recognition |
private SwissTable |
mySwissTable
Registration table to use for map between ObjectIDs and objs |
(package private) Unsealer |
myUnsealer
|
Constructor Summary | |
(package private) |
CapTPMgr(KeyPair identityKeys,
NetConfig netConfig,
SwissTable swissTable,
ESecureRandom entropy,
LocatorUnum locatorUnum)
Constructor |
Method Summary | |
private CapTPConnection |
arrangeProxyConnection(VatTPConnection dataConn)
Do the work of setting up a new CapTPConnection, regardless of which end initiated the transaction. |
(package private) void |
connectionDead(VatTPConnection connection,
Resolver optBufferedLookups)
Be informed that one of our connections has died. |
LocatorUnum |
getLocatorUnum()
Enabled: |
NetConfig |
getNetConfig()
Enabled: Return the post-on-the-air configuration parameters |
(package private) CapTPConnection |
getOrMakeProxyConnection(ConstList searchPath,
String vatID)
If vatID is me, return null, else get or make a live CapTPConnection for vatID. |
(package private) SwissTable |
getSwissTable()
|
(package private) CapTPConnection |
optProxyConnection(String vatID)
If I've got a live CapTPConnection for that vatID, return it, else null. |
void |
reactToNewConnection(VatTPConnection connection)
Enabled: Notice that a new (inbound) data connection has appeared. |
ConstList |
searchPath()
Enabled: Return the search path to our own vat. |
void |
setVatLocationLookup(VatLocationLookup vls)
Enabled: Set the object which will respond to vat location queries on our listen port. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private final SwissTable mySwissTable
private FlexMap myProxyConnections
private VatTPMgr myConnMgr
private final ESecureRandom myEntropy
final Sealer mySealer
final Unsealer myUnsealer
private final LocatorUnum myLocatorUnum
Constructor Detail |
CapTPMgr(KeyPair identityKeys, NetConfig netConfig, SwissTable swissTable, ESecureRandom entropy, LocatorUnum locatorUnum) throws UnknownHostException, IOException
identityKeys
- The identity of the vat we are managing remote
references into.netConfig
- Where to listen, register, and tell other to look for
me.swissTable
- Associates swissNumbers with references.entropy
- Provides new unguessable numbers.Method Detail |
private CapTPConnection arrangeProxyConnection(VatTPConnection dataConn) throws IOException
dataConn
- The VatTPConnection upon which we are communicating.
IOException
void connectionDead(VatTPConnection connection, Resolver optBufferedLookups)
connection
- The connection that diedoptBufferedLookups
- SturdyRef lookup requests that were issued in
the midst of orderly shutdown (these need to be resubmitted).SwissTable getSwissTable()
public void reactToNewConnection(VatTPConnection connection)
reactToNewConnection
in interface NewConnectionReactor
connection
- The new VatTPConnection object.net.vattp.data.NewConnectionReactor
CapTPConnection optProxyConnection(String vatID) throws IOException
This does *not* initiate a connection attempt.
IOException
CapTPConnection getOrMakeProxyConnection(ConstList searchPath, String vatID) throws IOException
IOException
public ConstList searchPath()
public NetConfig getNetConfig()
public void setVatLocationLookup(VatLocationLookup vls)
vls
- The VLS objectpublic LocatorUnum getLocatorUnum()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |