|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.core.storage.sql.ra.ConnectionFactoryImpl
public class ConnectionFactoryImpl
The connection factory delegates connection requests to the application
server ConnectionManager
.
An instance of this class is returned to the application when a JNDI lookup
is done. This is the datasource equivalent of SQLRepository
.
Constructor Summary | |
---|---|
ConnectionFactoryImpl(ManagedConnectionFactoryImpl managedConnectionFactory,
javax.resource.spi.ConnectionManager connectionManager)
|
Method Summary | |
---|---|
void |
activateServer()
Activates the VCS server used for remote connections. |
int |
clearCaches()
Clears all the caches. |
void |
close()
Closes the repository and release all resources. |
void |
deactivateServer()
Deactivates the VCS server used for remote connections. |
int |
getActiveSessionsCount()
Gets the number of active sessions. |
java.util.Collection<MapperClientInfo> |
getClientInfos()
Get info about current VCS server clients |
int |
getClosedSessionsCount()
|
Session |
getConnection()
Gets a new connection, with no credentials. |
Session |
getConnection(javax.resource.cci.ConnectionSpec connectionSpec)
Gets a new connection. |
ManagedConnectionFactoryImpl |
getManagedConnectionFactory()
|
javax.resource.cci.ResourceAdapterMetaData |
getMetaData()
|
java.lang.String |
getName()
Gets the repository name. |
SecurityManager |
getNuxeoSecurityManager()
|
Session[] |
getOpenedSessions()
|
javax.resource.cci.RecordFactory |
getRecordFactory()
|
javax.naming.Reference |
getReference()
|
java.lang.String |
getServerURL()
Which is the remote location ? |
Session |
getSession(long sessionId)
Deprecated. unused |
Session |
getSession(java.util.Map<java.lang.String,java.io.Serializable> context)
|
int |
getStartedSessionsCount()
|
SchemaManager |
getTypeManager()
|
void |
initialize()
|
boolean |
isServerActivated()
Is the server available remotely ? |
void |
processClusterInvalidationsNext()
Makes sure that the next transaction will process cluster invalidations. |
void |
setReference(javax.naming.Reference reference)
|
void |
shutdown()
|
boolean |
supportsTags()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConnectionFactoryImpl(ManagedConnectionFactoryImpl managedConnectionFactory, javax.resource.spi.ConnectionManager connectionManager)
Method Detail |
---|
public ManagedConnectionFactoryImpl getManagedConnectionFactory()
public Session getConnection() throws StorageException
getConnection
in interface javax.resource.cci.ConnectionFactory
StorageException
public Session getConnection(javax.resource.cci.ConnectionSpec connectionSpec) throws StorageException
getConnection
in interface javax.resource.cci.ConnectionFactory
connectionSpec
- the connection spec, containing credentials
StorageException
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 javax.naming.Reference getReference()
getReference
in interface javax.naming.Referenceable
public void setReference(javax.naming.Reference reference)
public void close() throws StorageException
Repository
StorageException
public java.lang.String getName()
RepositoryManagement
getName
in interface Repository
getName
in interface RepositoryManagement
public Session getSession(java.util.Map<java.lang.String,java.io.Serializable> context) throws DocumentException
getSession
in interface Repository
DocumentException
@Deprecated public Session getSession(long sessionId) throws DocumentException
getSession
in interface Repository
DocumentException
public SecurityManager getNuxeoSecurityManager()
getNuxeoSecurityManager
in interface Repository
public SchemaManager getTypeManager()
getTypeManager
in interface Repository
public void initialize()
initialize
in interface Repository
public Session[] getOpenedSessions()
getOpenedSessions
in interface Repository
public void shutdown()
shutdown
in interface Repository
public int getStartedSessionsCount()
getStartedSessionsCount
in interface Repository
public int getClosedSessionsCount()
getClosedSessionsCount
in interface Repository
public int getActiveSessionsCount()
RepositoryManagement
getActiveSessionsCount
in interface Repository
getActiveSessionsCount
in interface RepositoryManagement
public int clearCaches()
RepositoryManagement
clearCaches
in interface RepositoryManagement
public void processClusterInvalidationsNext()
RepositoryManagement
processClusterInvalidationsNext
in interface RepositoryManagement
public boolean supportsTags()
supportsTags
in interface Repository
public void activateServer()
RepositoryManagement
activateServer
in interface RepositoryManagement
public void deactivateServer()
RepositoryManagement
deactivateServer
in interface RepositoryManagement
public java.util.Collection<MapperClientInfo> getClientInfos()
RepositoryManagement
getClientInfos
in interface RepositoryManagement
public boolean isServerActivated()
RepositoryManagement
isServerActivated
in interface RepositoryManagement
public java.lang.String getServerURL()
RepositoryManagement
getServerURL
in interface RepositoryManagement
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |