|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.net.URLConnection
org.apache.jdo.impl.fostore.FOStoreClientConnectionImpl
Implementation of the client side of a FOStore connection.
| Field Summary | |
(package private) FOStoreConnectionFactory |
connectionFactory
|
(package private) FOStoreConnectionId |
connectionId
|
(package private) static org.apache.commons.logging.Log |
logger
Logger |
private boolean |
loggingIn
Flag set while logging in. |
(package private) Message |
message
Message to handle connection-to-connection messages (login). |
| Fields inherited from class java.net.URLConnection |
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches |
| Constructor Summary | |
FOStoreClientConnectionImpl(java.net.URL url)
Creates new FOStoreClientConnectionImpl |
|
| Method Summary | |
void |
close()
Return this connection to the connection pool. |
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. |
protected abstract java.lang.String |
localizePath(java.lang.String path)
|
protected void |
login()
Log in to the datastore. |
void |
sendToStore(byte[] buffer,
int start,
int length)
Indicates that the client has finished writing. |
void |
setConnectionFactory(FOStoreConnectionFactory cf)
Set the connection id used to create this connection. |
void |
setConnectionId(FOStoreConnectionId id)
Set the connection id used to create this connection. |
| Methods inherited from class java.net.URLConnection |
addRequestProperty, getAllowUserInteraction, getContent, getContent, getContentEncoding, getContentLength, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFields, getIfModifiedSince, getInputStream, getLastModified, getOutputStream, getPermission, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setRequestProperty, setUseCaches, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
Message message
FOStoreConnectionFactory connectionFactory
FOStoreConnectionId connectionId
private boolean loggingIn
static final org.apache.commons.logging.Log logger
| Constructor Detail |
public FOStoreClientConnectionImpl(java.net.URL url)
| Method Detail |
public void close()
throws java.io.IOException
close in interface FOStoreClientConnectionjava.io.IOException
protected void login()
throws java.io.IOException
java.io.IOExceptionpublic void setConnectionFactory(FOStoreConnectionFactory cf)
FOStoreClientConnection
setConnectionFactory in interface FOStoreClientConnectionpublic FOStoreConnectionFactory getConnectionFactory()
getConnectionFactory in interface FOStoreClientConnectionpublic void setConnectionId(FOStoreConnectionId id)
setConnectionId in interface FOStoreClientConnectionpublic FOStoreConnectionId getConnectionId()
getConnectionId in interface FOStoreClientConnectionprotected abstract java.lang.String localizePath(java.lang.String path)
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 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 | ||||||||||