public class FOStoreRemoteConnection
extends java.net.URLConnection
This class is public
so that clients can access the value of
DEFAULT_PORT
.
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PORT
The default port number
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Return this connection to the connection pool.
|
void |
closeDatabase()
Close the database associated with this connection.
|
void |
connect()
Connect to the data store.
|
FOStoreConnectionFactory |
getConnectionFactory()
Get the connection Factory used to create this connection.
|
org.apache.jdo.impl.fostore.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(org.apache.jdo.impl.fostore.FOStoreConnectionId id)
Set the connection id used to create this connection.
|
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentLengthLong, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getInputStream, getLastModified, getOutputStream, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString
public static final int DEFAULT_PORT
public void connect() throws java.io.IOException
connect
in class java.net.URLConnection
java.io.IOException
- if a network error occurspublic java.io.DataInput getInputFromServer() throws java.io.IOException
java.io.IOException
- if any problems.public void sendToStore(byte[] buffer, int offset, int length) throws java.io.IOException
buffer
- the data bufferoffset
- the offset within the bufferlength
- the number of bytes to writejava.io.IOException
- if any problems.public void closeDatabase() throws java.io.IOException, org.apache.jdo.impl.fostore.FOStoreDatabaseException
java.io.IOException
- if any problems with the socket.FOStoreDatabaseException
- if any problems with the database (not used here).protected java.lang.String localizePath(java.lang.String path)
public void close() throws java.io.IOException
java.io.IOException
protected void login() throws java.io.IOException
java.io.IOException
public void setConnectionFactory(FOStoreConnectionFactory cf)
public FOStoreConnectionFactory getConnectionFactory()
public void setConnectionId(org.apache.jdo.impl.fostore.FOStoreConnectionId id)
public org.apache.jdo.impl.fostore.FOStoreConnectionId getConnectionId()
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.