|
|||||||||||
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
org.apache.jdo.impl.fostore.FOStoreLocalConnection
Implements the client and server/store connections for the case in which the client and store are running in the same address space.
Field Summary | |
(package private) FOStoreConnectionFactory |
connectionFactory
|
(package private) FOStoreConnectionId |
connectionId
|
(package private) static org.apache.commons.logging.Log |
logger
Logger |
(package private) Message |
message
Message to handle connection-to-connection messages (login). |
private FOStoreServerConnection |
server
The server that implements the requests |
Fields inherited from class java.net.URLConnection |
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches |
Constructor Summary | |
(package private) |
FOStoreLocalConnection(java.net.URL url)
Provides a connection to the database, using the URL support in the superclass. |
Method Summary | |
void |
close()
Return this connection to the connection pool. |
void |
closeDatabase()
Close the database associated with this connection. |
void |
connect()
This connects to the data store, and verifies the user name and password.. |
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 java.lang.String |
localizePath(java.lang.String path)
|
protected void |
login()
Log in to the datastore. |
void |
sendToStore(byte[] buffer,
int offset,
int length)
Write bytes to the store. |
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 |
private FOStoreServerConnection server
Message message
FOStoreConnectionFactory connectionFactory
FOStoreConnectionId connectionId
static final org.apache.commons.logging.Log logger
Constructor Detail |
FOStoreLocalConnection(java.net.URL url)
Method Detail |
public java.io.DataInput getInputFromServer() throws java.io.IOException
FOStoreClientConnection
java.io.IOException
FOStoreClientConnection.getInputFromServer()
public void sendToStore(byte[] buffer, int offset, int length) throws java.io.IOException
java.io.IOException
public void connect() throws java.io.IOException
java.io.IOException
public void closeDatabase() throws FOStoreDatabaseException
FOStoreDatabaseException
protected java.lang.String localizePath(java.lang.String path)
localizePath
in class FOStoreClientConnectionImpl
path
as given.public void close() throws java.io.IOException
close
in interface FOStoreClientConnection
java.io.IOException
protected void login() throws java.io.IOException
java.io.IOException
public void setConnectionFactory(FOStoreConnectionFactory cf)
FOStoreClientConnection
setConnectionFactory
in interface FOStoreClientConnection
public FOStoreConnectionFactory getConnectionFactory()
getConnectionFactory
in interface FOStoreClientConnection
public void setConnectionId(FOStoreConnectionId id)
setConnectionId
in interface FOStoreClientConnection
public FOStoreConnectionId getConnectionId()
getConnectionId
in interface FOStoreClientConnection
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |