org.jcoderz.commons.connector.file
Interface FsConnectionFactory

All Superinterfaces:
Referenceable, Serializable
All Known Implementing Classes:
FsConnectionFactoryImpl

public interface FsConnectionFactory
extends Serializable, Referenceable

This factory provides an interface to get a connection to the File System. The File System Connector does not provide the javax.resource.cci interface. A connector's client should use this factory to get a connection to the File System instead.


Field Summary
static long FILE_TRANSFER_CHUNK_SIZE_DEF_VALUE
          Default value for chunk size, 20 MByte.
static String PROP_FILE_TRANSFER_CHUNK_SIZE
          Property to define the chunk size used while file transfering.
static String PROP_TEMP_DIR
          Property temp dir.
 
Method Summary
 FsConnection getConnection()
          Returns a connection to the File System.
 FsConnection getConnection(Properties props)
          Returns a connection to the File System.
 
Methods inherited from interface javax.resource.Referenceable
setReference
 
Methods inherited from interface javax.naming.Referenceable
getReference
 

Field Detail

FILE_TRANSFER_CHUNK_SIZE_DEF_VALUE

static final long FILE_TRANSFER_CHUNK_SIZE_DEF_VALUE
Default value for chunk size, 20 MByte.

See Also:
Constant Field Values

PROP_TEMP_DIR

static final String PROP_TEMP_DIR
Property temp dir.

See Also:
Constant Field Values

PROP_FILE_TRANSFER_CHUNK_SIZE

static final String PROP_FILE_TRANSFER_CHUNK_SIZE
Property to define the chunk size used while file transfering.

See Also:
Constant Field Values
Method Detail

getConnection

FsConnection getConnection()
                           throws ResourceException
Returns a connection to the File System.

Returns:
a connection to the File System.
Throws:
ResourceException - Failed to get a connection.

getConnection

FsConnection getConnection(Properties props)
                           throws ResourceException
Returns a connection to the File System.

Parameters:
props - The properties to use.
Returns:
a connection to the File System.
Throws:
ResourceException - Failed to get a connection.


Copyright 2007 The jCoderZ Project.