public class ConnectionFactoryImpl extends Object implements Repository, Repository
ConnectionManager
.
An instance of this class is returned to the application when a JNDI lookup is done.
Constructor and Description |
---|
ConnectionFactoryImpl(ManagedConnectionFactoryImpl managedConnectionFactory,
javax.resource.spi.ConnectionManager connectionManager) |
Modifier and Type | Method and Description |
---|---|
int |
cleanupDeletedDocuments(int max,
Calendar beforeTime)
Cleans up (hard-deletes) any documents that have been soft-deleted in the database.
|
int |
clearCaches()
Clears all the caches.
|
void |
close()
Closes the repository and release all resources.
|
int |
getActiveSessionsCount()
Gets the number of active sessions.
|
long |
getCachePristineSize()
Evaluate number of elements in hier cache
|
long |
getCacheSelectionSize()
Evaluate number of elements in selection cache
|
long |
getCacheSize()
Evaluate number of elements in all caches
|
Session |
getConnection()
Gets a new connection.
|
Session |
getConnection(javax.resource.cci.ConnectionSpec connectionSpec)
Gets a new connection.
|
javax.resource.cci.ResourceAdapterMetaData |
getMetaData() |
String |
getName()
Gets the repository name.
|
javax.resource.cci.RecordFactory |
getRecordFactory() |
Reference |
getReference() |
Session |
getSession() |
void |
markReferencedBinaries()
Marks the binaries in use by passing them to the binary manager(s)'s GC mark() method.
|
void |
processClusterInvalidationsNext()
Makes sure that the next transaction will process cluster invalidations.
|
void |
setReference(Reference reference) |
void |
shutdown() |
public ConnectionFactoryImpl(ManagedConnectionFactoryImpl managedConnectionFactory, javax.resource.spi.ConnectionManager connectionManager)
public Session getConnection(javax.resource.cci.ConnectionSpec connectionSpec)
getConnection
in interface javax.resource.cci.ConnectionFactory
connectionSpec
- the connection spec (unused)public Session getConnection()
getConnection
in interface javax.resource.cci.ConnectionFactory
public javax.resource.cci.ResourceAdapterMetaData getMetaData() throws javax.resource.ResourceException
getMetaData
in interface javax.resource.cci.ConnectionFactory
javax.resource.ResourceException
public javax.resource.cci.RecordFactory getRecordFactory() throws javax.resource.ResourceException
getRecordFactory
in interface javax.resource.cci.ConnectionFactory
javax.resource.ResourceException
public Reference getReference()
getReference
in interface Referenceable
public void setReference(Reference reference)
public void close()
Repository
public String getName()
RepositoryManagement
getName
in interface Repository
getName
in interface RepositoryManagement
public Session getSession()
getSession
in interface Repository
public void shutdown()
shutdown
in interface Repository
public int getActiveSessionsCount()
RepositoryManagement
getActiveSessionsCount
in interface Repository
getActiveSessionsCount
in interface RepositoryManagement
public long getCacheSize()
RepositoryManagement
getCacheSize
in interface RepositoryManagement
public long getCachePristineSize()
RepositoryManagement
getCachePristineSize
in interface RepositoryManagement
public long getCacheSelectionSize()
RepositoryManagement
getCacheSelectionSize
in interface RepositoryManagement
public int clearCaches()
RepositoryManagement
clearCaches
in interface RepositoryManagement
public void processClusterInvalidationsNext()
RepositoryManagement
processClusterInvalidationsNext
in interface RepositoryManagement
public void markReferencedBinaries()
RepositoryManagement
markReferencedBinaries
in interface Repository
markReferencedBinaries
in interface RepositoryManagement
public int cleanupDeletedDocuments(int max, Calendar beforeTime)
RepositoryManagement
cleanupDeletedDocuments
in interface RepositoryManagement
max
- the maximum number of documents to delete at a timebeforeTime
- the maximum deletion time of the documents to deleteCopyright © 2018 Nuxeo. All rights reserved.