public class TCPStoreConnectionHandler extends Object implements gr.uoa.di.madgik.commons.server.ITCPConnectionManagerEntry
TCPConnectionManager in order to
receive incoming TCP connection from clients. This entry is set to serve connections for the
gRS2 Store component| Constructor and Description |
|---|
TCPStoreConnectionHandler() |
| Modifier and Type | Method and Description |
|---|---|
gr.uoa.di.madgik.commons.server.ITCPConnectionManagerEntry.NamedEntry |
GetName() |
void |
HandleConnection(ObjectInputStream ois,
Socket socket) |
void |
HandleConnection(Socket socket) |
public gr.uoa.di.madgik.commons.server.ITCPConnectionManagerEntry.NamedEntry GetName()
The connection manager entry this handler can serve. The entry returned is marked
with ITCPConnectionManagerEntry.NamedEntry.gRS2Store
GetName in interface gr.uoa.di.madgik.commons.server.ITCPConnectionManagerEntryITCPConnectionManagerEntry.GetName()public void HandleConnection(ObjectInputStream ois, Socket socket)
After a request of the correct type has reached TCPConnectionManager, it is forwarded here
where the specific IBufferStore is located. A new BufferStoreReader is created
targeting the requesting IBufferStore. A new TCPWriterProxy instance is utilized by the
reader to create a new URI locator that is then send back to the requester to user and access the reader's
IBuffer. The populating thread of execution is managed by the BufferStoreReader.
The connection received is then closed as the actual mirroring procedure will then start after a request
that will be handled by the TCPConnectionHandler
ITCPConnectionManagerEntry.HandleConnection(java.net.Socket)public void HandleConnection(Socket socket)
HandleConnection in interface gr.uoa.di.madgik.commons.server.ITCPConnectionManagerEntryCopyright © 2014. All Rights Reserved.