|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuka.karmi.stream.StreamTechnology.LocalID
A LocalID references a remote technology. Each remote technology is assigned an local identifier that is used to fast access connections to that technology in a remote method invocation. The assigned identifier is stored in the UTID object identifying the remote technology. The LocalID object is responsible for managing open connections to the remote technology. If no more open connections are active to a remote technology, the corresponding LocalID object is collected and the allocated local identifier is reused.
| Field Summary | |
private int |
connectionCnt
Count of connections alive to the remote technology. |
(package private) ClientConnection |
head
Head of the linked list of unused open connections to the remote technology this LocalID represents. |
(package private) int |
index
Local identifier for the remote technology. |
(package private) UTID |
utid
Reference to the remote technology. |
| Constructor Summary | |
StreamTechnology.LocalID(int index,
UTID utid)
|
|
| Method Summary | |
void |
collectConnections(long now)
|
void |
failed(StreamClientConnection c)
Indicates that the remote call has terminated, but the connection can not be reused, because an internal error occurred at the server-side. |
void |
finished(StreamClientConnection c)
Indicates that the remote call terminated and the connection can be reused. |
StreamClientConnection |
getConnection()
Look up an unused connection to the remote technology. |
boolean |
isInUse()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
int index
private int connectionCnt
ClientConnection head
final UTID utid
| Constructor Detail |
public StreamTechnology.LocalID(int index,
UTID utid)
| Method Detail |
public boolean isInUse()
public StreamClientConnection getConnection()
throws java.io.IOException
java.io.IOExceptionpublic void finished(StreamClientConnection c)
StreamTechnology.CallBack
finished in interface StreamTechnology.CallBack
public void failed(StreamClientConnection c)
throws java.io.IOException
StreamTechnology.CallBack
failed in interface StreamTechnology.CallBackjava.io.IOExceptionpublic void collectConnections(long now)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||