|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents the connection as seen by the client. This contains two types of interface: that used by the ConnectionFactory, and that used by the Message. It provides a means for managing the data sent and received from the store, as well as for being managed in a pool.
Method Summary | |
void |
close()
Put this connection back into the connection pool managed by the ConnectionFactory. |
void |
closeDatabase()
Close the database associated with this connection. |
void |
connect()
Connect to the data source. |
FOStoreConnectionFactory |
getConnectionFactory()
Get the connection Factory used to create this connection. |
FOStoreConnectionId |
getConnectionId()
Get the connection id used to create this connection. |
java.io.DataInput |
getInputFromServer()
Provides DataInput from which the client can read replies from the server. |
void |
sendToStore(byte[] buffer,
int start,
int length)
Indicates that the client has finished writing. |
void |
setConnectionFactory(FOStoreConnectionFactory connectionFactory)
Set the connection id used to create this connection. |
void |
setConnectionId(FOStoreConnectionId connectionId)
Set the connection id used to create this connection. |
Method Detail |
public void connect() throws java.io.IOException
java.io.IOException
public java.io.DataInput getInputFromServer() throws java.io.IOException
java.io.IOException
public void sendToStore(byte[] buffer, int start, int length) throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException
public void setConnectionId(FOStoreConnectionId connectionId)
public FOStoreConnectionId getConnectionId()
public void setConnectionFactory(FOStoreConnectionFactory connectionFactory)
public FOStoreConnectionFactory getConnectionFactory()
public void closeDatabase() throws java.io.IOException, FOStoreDatabaseException
java.io.IOException
FOStoreDatabaseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |