|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.objectweb.speedo.pm.lib.SpeedoProxyManagerFactory
The SpeepoProxyManagerFactory is a factory of ProxyManager. This primitive component exports the ProxyManagerFactory interface, permitting to manage the proxy manager allocations. Due to a high cost of ProxyManager instances allocation, the unsused ProxyManager are pooled. For this reason, the SpeedoProxyManagerFactory uses a Pool of SpeedoProxyManager. The SpeedoProxyManagerFactory manages also the attachement of ProxyManager to the current thread through a ProxyManagerSwitch.
ProxyManager,
ProxyManagerSwitch,
SpeedoProxyManager,
SpeedoProxyManagerFactory,
SpeedoProxyManagerInstanciator,
SpeedoProxyManagerSwitch,
Serialized Form| Nested Class Summary |
|---|
| Nested classes inherited from class javax.jdo.datastore.DataStoreCache |
|---|
javax.jdo.datastore.DataStoreCache.EmptyDataStoreCache |
| Field Summary | |
|---|---|
static java.lang.String |
CACHE_M_BINDING
|
static java.lang.String |
COMPONENT_BINDING
|
static java.lang.String |
JORM_FACTORY_BINDING
|
static java.lang.String |
MAPPER_BINDING
|
static java.lang.String |
PM_POOL_BINDING
|
static java.lang.String |
PROXY_MANAGER_SWITCH_BINDING
|
static java.lang.String |
SEQUENCE_M_BINDING
|
static java.lang.String |
TPM_BINDING
|
static java.lang.String |
UNBIND_M_BINDING
|
| Constructor Summary | |
|---|---|
SpeedoProxyManagerFactory()
|
|
| Method Summary | |
|---|---|
void |
addInstanceLifecycleListener(javax.jdo.listener.InstanceLifecycleListener l,
java.lang.Class[] classes)
|
void |
bindFc(java.lang.String s,
java.lang.Object o)
|
void |
bindPM2Thread(ProxyManager pm)
Ask to the PMS to bind a particular PM to the Thread. |
void |
close()
|
void |
evict(java.lang.Object oid)
|
void |
evictAll()
|
void |
evictAll(java.lang.Class clazz,
boolean subClasses)
|
void |
evictAll(java.util.Collection oids)
|
void |
evictAll(java.lang.Object[] oids)
|
java.lang.String |
getConnectionDriverName()
Get the driver name for the data store connection. |
java.lang.Object |
getConnectionFactory()
Get the data store connection factory. |
java.lang.Object |
getConnectionFactory2()
Get the second data store connection factory. |
java.lang.String |
getConnectionFactory2Name()
Get the name for the second data store connection factory. |
java.lang.String |
getConnectionFactoryName()
Get the name for the data store connection factory. |
protected java.lang.String |
getConnectionPassword()
Get the password for the data store connection. |
java.lang.String |
getConnectionURL()
Get the URL for the data store connection. |
java.lang.String |
getConnectionUserName()
Get the user name for the data store connection. |
javax.jdo.datastore.DataStoreCache |
getDataStoreCache()
|
boolean |
getIgnoreCache()
Get the default IgnoreCache setting for all PersistenceManager instances obtained from this factory. |
java.lang.String |
getMapping()
|
int |
getMaxPool()
Get the MaxPool setting for the PersistenceManager pool for this factory. |
int |
getMinPool()
Get the MinPool setting for the PersistenceManager pool for this factory. |
int |
getMsWait()
Get the MsWait setting for the PersistenceManager pool for this factory. |
boolean |
getMultithreaded()
Get the default Multithreaded setting for all PersistenceManager instances obtained from this factory. |
boolean |
getNontransactionalRead()
Get the default NontransactionalRead setting for all PersistenceManager instances obtained from this factory. |
boolean |
getNontransactionalWrite()
Get the default NontransactionalWrite setting for all PersistenceManager instances obtained from this factory. |
boolean |
getOptimistic()
Get the default Optimistic setting for all PersistenceManager instances obtained from this factory. |
javax.jdo.PersistenceManager |
getPersistenceManager()
Get an instance of PersistenceManager from this factory. |
javax.jdo.PersistenceManager |
getPersistenceManager(java.lang.Object cs)
|
javax.jdo.PersistenceManager |
getPersistenceManager(java.lang.String userid,
java.lang.String password)
Get an instance of PersistenceManager from this factory. |
org.objectweb.perseus.pool.api.Pool |
getPool()
|
java.util.Properties |
getProperties()
Return non-configurable properties of this PersistenceManagerFactory. |
boolean |
getRestoreValues()
|
boolean |
getRetainValues()
Get the default RetainValues setting for all PersistenceManager instances obtained from this factory. |
SequenceManager |
getSequenceManager()
Get the sequence manager associated to the pmf. |
boolean |
isClosed()
|
java.lang.String[] |
listFc()
|
ProxyManager |
lookup()
Finds in the associated ProxyManagerSwitch a ProxyManager managed by the ProxyManagerFactory. |
java.lang.Object |
lookupFc(java.lang.String s)
|
void |
pin(java.lang.Object oid)
|
void |
pinAll(java.lang.Class clazz,
boolean subClasses)
|
void |
pinAll(java.util.Collection oids)
|
void |
pinAll(java.lang.Object[] oids)
|
void |
proxyManagerClosed(ProxyManager pr)
Indicates when a PM has been closed. |
void |
removeInstanceLifecycleListener(javax.jdo.listener.InstanceLifecycleListener l)
|
void |
setConnectionDriverName(java.lang.String driverName)
Set the driver name for the data store connection. |
void |
setConnectionFactory(java.lang.Object connectionFactory)
Set the data store connection factory. |
void |
setConnectionFactory2(java.lang.Object connectionfactory)
Set the second data store connection factory. |
void |
setConnectionFactory2Name(java.lang.String connectionFactoryName)
Set the name for the second data store connection factory. |
void |
setConnectionFactoryName(java.lang.String connectionFactoryName)
Set the name for the data store connection factory. |
void |
setConnectionPassword(java.lang.String password)
Set the password for the data store connection. |
void |
setConnectionURL(java.lang.String URL)
Set the URL for the data store connection. |
void |
setConnectionUserName(java.lang.String userName)
Set the user name for the data store connection. |
void |
setIgnoreCache(boolean flag)
Set the default IgnoreCache setting for all PersistenceManager instances obtained from this factory. |
void |
setMapping(java.lang.String arg0)
|
void |
setMaxPool(int maxPool)
Set the MaxPool setting for the PersistenceManager pool for this factory. |
void |
setMinPool(int minPool)
Set the MinPool setting for the PersistenceManager pool for this factory. |
void |
setMsWait(int msWait)
Set the MsWait setting for the PersistenceManager pool for this factory. |
void |
setMultithreaded(boolean flag)
Set the default Multithreaded setting for all PersistenceManager instances obtained from this factory. |
void |
setNontransactionalRead(boolean flag)
Set the default NontransactionalRead setting for all PersistenceManager instances obtained from this factory. |
void |
setNontransactionalWrite(boolean flag)
Set the default NontransactionalWrite setting for all PersistenceManager instances obtained from this factory. |
void |
setOptimistic(boolean flag)
Set the default Optimistic setting for all PersistenceManager instances obtained from this factory. |
void |
setRestoreValues(boolean b)
|
void |
setRetainValues(boolean flag)
Set the default RetainValues setting for all PersistenceManager instances obtained from this factory. |
void |
setSequenceManager(SequenceManager sequenceManager)
Set the sequence manager. |
java.util.Collection |
supportedOptions()
The application can determine from the results of this method which optional features, and which query languages are supported by the JDO implementation. |
void |
unbindFc(java.lang.String s)
|
void |
unbindPM()
It call pms.unbind(this) in order to unbind a ProxyManager managed by this ProxyManagerFactory, from the thread. |
void |
unpin(java.lang.Object oid)
|
void |
unpinAll(java.lang.Class clazz,
boolean subClasses)
|
void |
unpinAll(java.util.Collection oids)
|
void |
unpinAll(java.lang.Object[] oids)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String MAPPER_BINDING
public static final java.lang.String JORM_FACTORY_BINDING
public static final java.lang.String PM_POOL_BINDING
public static final java.lang.String PROXY_MANAGER_SWITCH_BINDING
public static final java.lang.String TPM_BINDING
public static final java.lang.String CACHE_M_BINDING
public static final java.lang.String UNBIND_M_BINDING
public static final java.lang.String COMPONENT_BINDING
public static final java.lang.String SEQUENCE_M_BINDING
| Constructor Detail |
public SpeedoProxyManagerFactory()
| Method Detail |
public java.lang.String[] listFc()
listFc in interface org.objectweb.fractal.api.control.BindingControllerpublic java.lang.Object lookupFc(java.lang.String s)
lookupFc in interface org.objectweb.fractal.api.control.BindingController
public void bindFc(java.lang.String s,
java.lang.Object o)
bindFc in interface org.objectweb.fractal.api.control.BindingControllerpublic void unbindFc(java.lang.String s)
unbindFc in interface org.objectweb.fractal.api.control.BindingControllerpublic void evict(java.lang.Object oid)
evict in interface javax.jdo.datastore.DataStoreCache
public void evictAll(java.lang.Class clazz,
boolean subClasses)
evictAll in interface javax.jdo.datastore.DataStoreCachepublic void evictAll(java.util.Collection oids)
evictAll in interface javax.jdo.datastore.DataStoreCachepublic void evictAll(java.lang.Object[] oids)
evictAll in interface javax.jdo.datastore.DataStoreCachepublic void evictAll()
evictAll in interface javax.jdo.datastore.DataStoreCachepublic void pin(java.lang.Object oid)
pin in interface javax.jdo.datastore.DataStoreCache
public void pinAll(java.lang.Class clazz,
boolean subClasses)
pinAll in interface javax.jdo.datastore.DataStoreCachepublic void pinAll(java.util.Collection oids)
pinAll in interface javax.jdo.datastore.DataStoreCachepublic void pinAll(java.lang.Object[] oids)
pinAll in interface javax.jdo.datastore.DataStoreCachepublic void unpin(java.lang.Object oid)
unpin in interface javax.jdo.datastore.DataStoreCache
public void unpinAll(java.lang.Class clazz,
boolean subClasses)
unpinAll in interface javax.jdo.datastore.DataStoreCachepublic void unpinAll(java.util.Collection oids)
unpinAll in interface javax.jdo.datastore.DataStoreCachepublic void unpinAll(java.lang.Object[] oids)
unpinAll in interface javax.jdo.datastore.DataStoreCachepublic ProxyManager lookup()
ProxyManagerFactory
lookup in interface ProxyManagerFactorypublic void bindPM2Thread(ProxyManager pm)
ProxyManagerFactory
bindPM2Thread in interface ProxyManagerFactorypm - public void unbindPM()
ProxyManagerFactory
unbindPM in interface ProxyManagerFactorypublic void proxyManagerClosed(ProxyManager pr)
ProxyManagerFactory
proxyManagerClosed in interface ProxyManagerFactorypr - the closed PM.public SequenceManager getSequenceManager()
ProxyManagerFactory
getSequenceManager in interface ProxyManagerFactorypublic void setSequenceManager(SequenceManager sequenceManager)
ProxyManagerFactory
setSequenceManager in interface ProxyManagerFactorypublic javax.jdo.PersistenceManager getPersistenceManager()
init at the first call.
getPersistenceManager in interface javax.jdo.PersistenceManagerFactorypublic void close()
close in interface javax.jdo.PersistenceManagerFactory
public javax.jdo.PersistenceManager getPersistenceManager(java.lang.String userid,
java.lang.String password)
init at the first call.
getPersistenceManager in interface javax.jdo.PersistenceManagerFactoryuserid - the userid for the connectionpassword - the password for the connection
public javax.jdo.PersistenceManager getPersistenceManager(java.lang.Object cs)
public javax.jdo.datastore.DataStoreCache getDataStoreCache()
getDataStoreCache in interface javax.jdo.PersistenceManagerFactorypublic boolean isClosed()
isClosed in interface javax.jdo.PersistenceManagerFactorypublic java.lang.String getMapping()
getMapping in interface javax.jdo.PersistenceManagerFactorypublic void setMapping(java.lang.String arg0)
setMapping in interface javax.jdo.PersistenceManagerFactorypublic void setConnectionUserName(java.lang.String userName)
setConnectionUserName in interface javax.jdo.PersistenceManagerFactoryuserName - the user name for the data store connection.public java.lang.String getConnectionUserName()
getConnectionUserName in interface javax.jdo.PersistenceManagerFactorypublic void setConnectionPassword(java.lang.String password)
setConnectionPassword in interface javax.jdo.PersistenceManagerFactorypassword - the password for the data store connection.protected java.lang.String getConnectionPassword()
public void setConnectionURL(java.lang.String URL)
setConnectionURL in interface javax.jdo.PersistenceManagerFactoryURL - the URL for the data store connection.public java.lang.String getConnectionURL()
getConnectionURL in interface javax.jdo.PersistenceManagerFactorypublic void setConnectionDriverName(java.lang.String driverName)
setConnectionDriverName in interface javax.jdo.PersistenceManagerFactorydriverName - the driver name for the data store connection.public java.lang.String getConnectionDriverName()
getConnectionDriverName in interface javax.jdo.PersistenceManagerFactorypublic void setConnectionFactoryName(java.lang.String connectionFactoryName)
setConnectionFactoryName in interface javax.jdo.PersistenceManagerFactoryconnectionFactoryName - the name of the data store connection factory.public java.lang.String getConnectionFactoryName()
getConnectionFactoryName in interface javax.jdo.PersistenceManagerFactorypublic void setConnectionFactory(java.lang.Object connectionFactory)
setConnectionFactory in interface javax.jdo.PersistenceManagerFactoryconnectionFactory - the data store connection factory.public java.lang.Object getConnectionFactory()
getConnectionFactory in interface javax.jdo.PersistenceManagerFactorypublic void setConnectionFactory2Name(java.lang.String connectionFactoryName)
setConnectionFactory2Name in interface javax.jdo.PersistenceManagerFactoryconnectionFactoryName - the name of the data store connection factory.public java.lang.String getConnectionFactory2Name()
getConnectionFactory2Name in interface javax.jdo.PersistenceManagerFactorypublic void setConnectionFactory2(java.lang.Object connectionfactory)
setConnectionFactory2 in interface javax.jdo.PersistenceManagerFactoryconnectionfactory - the data store connection factory.public java.lang.Object getConnectionFactory2()
getConnectionFactory2 in interface javax.jdo.PersistenceManagerFactorypublic void setMultithreaded(boolean flag)
setMultithreaded in interface javax.jdo.PersistenceManagerFactoryflag - the default Multithreaded setting.public boolean getMultithreaded()
getMultithreaded in interface javax.jdo.PersistenceManagerFactorypublic void setOptimistic(boolean flag)
setOptimistic in interface javax.jdo.PersistenceManagerFactoryflag - the default Optimistic setting.public boolean getOptimistic()
getOptimistic in interface javax.jdo.PersistenceManagerFactorypublic void setRetainValues(boolean flag)
setRetainValues in interface javax.jdo.PersistenceManagerFactoryflag - the default RetainValues setting.public boolean getRetainValues()
getRetainValues in interface javax.jdo.PersistenceManagerFactorypublic void setNontransactionalRead(boolean flag)
setNontransactionalRead in interface javax.jdo.PersistenceManagerFactoryflag - the default NontransactionalRead setting.public boolean getNontransactionalRead()
getNontransactionalRead in interface javax.jdo.PersistenceManagerFactorypublic void setNontransactionalWrite(boolean flag)
setNontransactionalWrite in interface javax.jdo.PersistenceManagerFactoryflag - the default NontransactionalWrite setting.public boolean getNontransactionalWrite()
getNontransactionalWrite in interface javax.jdo.PersistenceManagerFactorypublic void setIgnoreCache(boolean flag)
setIgnoreCache in interface javax.jdo.PersistenceManagerFactoryflag - the default IgnoreCache setting.public boolean getIgnoreCache()
getIgnoreCache in interface javax.jdo.PersistenceManagerFactorypublic int getMaxPool()
public void setMaxPool(int maxPool)
maxPool - the MaxPool setting.public int getMinPool()
public void setMinPool(int minPool)
minPool - the MinPool setting.public int getMsWait()
public void setMsWait(int msWait)
msWait - the MsWait setting.public java.util.Properties getProperties()
getProperties in interface javax.jdo.PersistenceManagerFactorypublic java.util.Collection supportedOptions()
Each supported JDO optional feature is represented by a String with one of the following values:
javax.jdo.option.TransientTransactional
javax.jdo.option.NontransactionalRead
javax.jdo.option.NontransactionalWrite
javax.jdo.option.RetainValues
javax.jdo.option.Optimistic
javax.jdo.option.ApplicationIdentity
javax.jdo.option.DatastoreIdentity
javax.jdo.option.NonDatastoreIdentity
javax.jdo.option.ArrayList
javax.jdo.option.HashMap
javax.jdo.option.Hashtable
javax.jdo.option.LinkedList
javax.jdo.option.TreeMap
javax.jdo.option.TreeSet
javax.jdo.option.Vector
javax.jdo.option.Map
javax.jdo.option.List
javax.jdo.option.Array
javax.jdo.option.NullCollection
The standard JDO query language is represented by a String:
javax.jdo.query.JDOQL
supportedOptions in interface javax.jdo.PersistenceManagerFactorypublic void setRestoreValues(boolean b)
setRestoreValues in interface javax.jdo.PersistenceManagerFactorypublic boolean getRestoreValues()
getRestoreValues in interface javax.jdo.PersistenceManagerFactory
public void addInstanceLifecycleListener(javax.jdo.listener.InstanceLifecycleListener l,
java.lang.Class[] classes)
addInstanceLifecycleListener in interface javax.jdo.PersistenceManagerFactorypublic void removeInstanceLifecycleListener(javax.jdo.listener.InstanceLifecycleListener l)
removeInstanceLifecycleListener in interface javax.jdo.PersistenceManagerFactorypublic org.objectweb.perseus.pool.api.Pool getPool()
Pool
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||