|
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.ManagedConnectionFactoryImpl
public class ManagedConnectionFactoryImpl
The managed connection factory receives requests from the application server
to create new ManagedConnection
(the physical connection).
It also is a factory for ConnectionFactory
s.
Constructor Summary | |
---|---|
ManagedConnectionFactoryImpl()
|
|
ManagedConnectionFactoryImpl(RepositoryDescriptor repositoryDescriptor)
|
Method Summary | |
---|---|
void |
activateServer()
Activates the VCS server used for remote connections. |
int |
clearCaches()
Clears all the caches. |
java.lang.Object |
createConnectionFactory()
|
java.lang.Object |
createConnectionFactory(javax.resource.spi.ConnectionManager connectionManager)
|
javax.resource.spi.ManagedConnection |
createManagedConnection(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo connectionRequestInfo)
|
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 |
java.io.PrintWriter |
getLogWriter()
|
java.lang.String |
getName()
Gets the repository name. |
java.lang.String |
getProperty()
|
javax.resource.spi.ResourceAdapter |
getResourceAdapter()
|
java.lang.String |
getServerURL()
Which is the remote location ? |
java.lang.String |
getXaDataSource()
|
boolean |
isServerActivated()
Is the server available remotely ? |
javax.resource.spi.ManagedConnection |
matchManagedConnections(java.util.Set set,
javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cri)
Returns a matched connection from the candidate set of connections. |
static java.util.Map<java.lang.String,java.lang.String> |
parseProperties(java.lang.String expr)
Parses a string of the form: key1=val1;key2=val2;... |
void |
processClusterInvalidationsNext()
Makes sure that the next transaction will process cluster invalidations. |
void |
setLogWriter(java.io.PrintWriter out)
|
void |
setName(java.lang.String name)
|
void |
setProperty(java.lang.String property)
Properties are specified in the format key=val1[;key2=val2;...] |
void |
setResourceAdapter(javax.resource.spi.ResourceAdapter resourceAdapter)
Called by the application server exactly once to associate this ManagedConnectionFactory with a ResourceAdapter. |
void |
setXaDataSource(java.lang.String xaDataSourceName)
|
void |
shutdown()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.resource.spi.ManagedConnectionFactory |
---|
equals, hashCode |
Constructor Detail |
---|
public ManagedConnectionFactoryImpl()
public ManagedConnectionFactoryImpl(RepositoryDescriptor repositoryDescriptor)
Method Detail |
---|
public void setName(java.lang.String name)
public java.lang.String getName()
RepositoryManagement
getName
in interface RepositoryManagement
public void setXaDataSource(java.lang.String xaDataSourceName)
public java.lang.String getXaDataSource()
public void setProperty(java.lang.String property)
If a value has to contain a semicolon, it can be escaped by doubling it.
property
- parseProperties(String)
public java.lang.String getProperty()
public void setResourceAdapter(javax.resource.spi.ResourceAdapter resourceAdapter) throws javax.resource.ResourceException
setResourceAdapter
in interface javax.resource.spi.ResourceAdapterAssociation
javax.resource.ResourceException
public javax.resource.spi.ResourceAdapter getResourceAdapter()
getResourceAdapter
in interface javax.resource.spi.ResourceAdapterAssociation
public void setLogWriter(java.io.PrintWriter out)
setLogWriter
in interface javax.resource.spi.ManagedConnectionFactory
public java.io.PrintWriter getLogWriter()
getLogWriter
in interface javax.resource.spi.ManagedConnectionFactory
public java.lang.Object createConnectionFactory() throws javax.resource.ResourceException
createConnectionFactory
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
public java.lang.Object createConnectionFactory(javax.resource.spi.ConnectionManager connectionManager) throws javax.resource.ResourceException
createConnectionFactory
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
public javax.resource.spi.ManagedConnection createManagedConnection(javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo connectionRequestInfo) throws javax.resource.ResourceException
createManagedConnection
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
public javax.resource.spi.ManagedConnection matchManagedConnections(java.util.Set set, javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo cri) throws javax.resource.ResourceException
Called by the application server when it's looking for an appropriate connection to server from a pool.
matchManagedConnections
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
public int getActiveSessionsCount()
RepositoryManagement
getActiveSessionsCount
in interface RepositoryManagement
public int clearCaches()
RepositoryManagement
clearCaches
in interface RepositoryManagement
public void processClusterInvalidationsNext()
RepositoryManagement
processClusterInvalidationsNext
in interface RepositoryManagement
public void shutdown()
public static java.util.Map<java.lang.String,java.lang.String> parseProperties(java.lang.String expr)
key1=val1;key2=val2;...
and
collects the key/value pairs.
A ';' character may end the expression. If a value has to contain a ';', it can be escaped by doubling it.
Examples of valid expressions: key1=val1
,
key1=val1;
, key1=val1;key2=val2
,
key1=a=b;;c=d;key2=val2
.
Syntax errors are reported using the logger and will stop the parsing but already collected properties will be available. The ';' or '=' characters cannot be escaped in keys.
expr
- the expression to parse
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 |