|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.speedo.AbstractSpeedo
public abstract class AbstractSpeedo
This class is a client helper which permits to create a new speedo instance. Due to the personality constraint the POManagerFactoryItf implementation must have a public empty contructor. But the use of the fractal components (www.objectweb.org/fractal) needs to use a fractal implementation (Julia) to initialize the speedo component. This class is an implementation of the POManagerFactoryItf interface which delegates all calls on a delegate, the real component. This class is responsible of the Speedo configuration from a set of property specified by a Map (String optionName, Object value). Configuring Speedo means to assign parameter to some components or maybe change the architecture of Speedo (change some component). This class must be subclassed for each personality of Speedo.
Field Summary | |
---|---|
static java.lang.String |
COMPOSITE_TPM_PATH
|
static java.lang.String |
CONNECTION_POOL_PATH
|
protected POManagerFactoryItf |
delegate
The persistence manager factory delegate |
static java.lang.String |
DEPENDENCY_GRAPH_PATH
|
static java.lang.String |
HTML_JMX_AGENT_PATH
|
protected boolean |
isPropertiesInitialized
|
static java.lang.String |
JMX_AGENT_PATH
|
protected boolean |
jmxOn
|
static java.lang.String |
JORM_FACTORY_PATH
|
protected org.objectweb.util.monolog.api.Logger |
logger
|
static java.lang.String |
MEMORY_CACHE_PATH
|
static java.lang.String |
MIM_PATH
|
static java.lang.String |
MONOLOG_FACTORY_PATH
|
static java.lang.String |
PM_POOL_PATH
|
static java.lang.String |
PMF_PATH
|
static java.lang.String |
PMI_PATH
|
static java.lang.String |
PRIMITIVE_MAPPER_PATH
|
static java.lang.String |
QUERY_CACHE_PATH
|
static java.lang.String |
QUERY_MANAGER
|
protected Component |
speedo
|
static java.lang.String |
TPM_PATH
|
Constructor Summary | |
---|---|
AbstractSpeedo()
|
|
AbstractSpeedo(java.util.Map props)
It creates and initializes a real POManagerFactory with Julia (Fractal implementation). |
Method Summary | |
---|---|
protected void |
applyProperties(java.util.Map props,
java.util.Map pmfProps)
|
void |
bindPM2Thread(POManagerItf pm)
Ask to the PMS to bind a particular PM to the Thread. |
void |
clean()
Clean the POManagerFactory: - it enables to forget all persistent classes previously loaded. |
protected void |
configure(java.util.Map pmfProps)
|
java.lang.Object |
getConcurrencyManagerComponent()
|
POManagerFactoryItf |
getDelegate()
|
org.objectweb.perseus.dependency.api.DependencyGraph |
getDependencyGraph()
|
static byte |
getMappingStructure(java.lang.String strval)
|
static java.lang.String |
getMappingStructureString(byte b)
|
java.util.Collection |
getMemoryCacheEntries()
|
abstract Personality |
getPersonality()
|
POManagerFactoryItf |
getPMFComponent()
|
POManagerItf |
getPOManager()
|
java.util.Properties |
getProperties()
|
protected java.lang.String |
getProperty(java.util.Map m,
java.lang.String propName,
java.lang.String defaultValue,
boolean remove)
|
QueryManager |
getQueryManager()
Get the query manager. |
SequenceManager |
getSequenceManager()
Get the sequence manager associated to the pmf. |
protected Component |
getSpeedoComponent(java.util.Map props)
|
void |
init(java.util.Map pmfProps)
|
protected abstract boolean |
isOptimisticTransaction(java.util.Map props)
|
POManagerItf |
lookup()
Finds in the associated POManagerSwitchItf a POManagerItf managed by the POManagerFactoryItf. |
void |
poManagerClosed(POManagerItf pr)
Indicates when a PM has been closed. |
protected boolean |
removeProps(java.util.Map props,
java.lang.String[] wanted)
|
void |
setQueryManager(QueryManager queryManager)
Set the query manager |
void |
setSequenceManager(SequenceManager sequenceManager)
Set the sequence manager. |
void |
stopComponent()
|
protected abstract void |
throwUserException(java.lang.String msg)
|
void |
unbindPM()
It call pms.unbind(this) in order to unbind a POManagerItf managed by this POManagerFactoryItf, from the thread. |
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 PM_POOL_PATH
public static final java.lang.String PMI_PATH
public static final java.lang.String MIM_PATH
public static final java.lang.String MEMORY_CACHE_PATH
public static final java.lang.String DEPENDENCY_GRAPH_PATH
public static final java.lang.String QUERY_CACHE_PATH
public static final java.lang.String QUERY_MANAGER
public static final java.lang.String CONNECTION_POOL_PATH
public static final java.lang.String MONOLOG_FACTORY_PATH
public static final java.lang.String PRIMITIVE_MAPPER_PATH
public static final java.lang.String JORM_FACTORY_PATH
public static final java.lang.String COMPOSITE_TPM_PATH
public static final java.lang.String TPM_PATH
public static final java.lang.String PMF_PATH
public static final java.lang.String JMX_AGENT_PATH
public static final java.lang.String HTML_JMX_AGENT_PATH
protected POManagerFactoryItf delegate
protected org.objectweb.util.monolog.api.Logger logger
protected Component speedo
protected boolean isPropertiesInitialized
protected boolean jmxOn
Constructor Detail |
---|
public AbstractSpeedo()
public AbstractSpeedo(java.util.Map props) throws java.lang.Throwable
java.lang.Throwable
Method Detail |
---|
public abstract Personality getPersonality()
getPersonality
in interface POManagerFactoryItf
protected abstract void throwUserException(java.lang.String msg)
protected abstract boolean isOptimisticTransaction(java.util.Map props)
public void stopComponent()
public POManagerFactoryItf getPMFComponent() throws java.lang.Exception
java.lang.Exception
public java.lang.Object getConcurrencyManagerComponent() throws java.lang.Exception
java.lang.Exception
public org.objectweb.perseus.dependency.api.DependencyGraph getDependencyGraph() throws java.lang.Exception
java.lang.Exception
public java.util.Collection getMemoryCacheEntries() throws java.lang.Exception
java.lang.Exception
public POManagerFactoryItf getDelegate()
public POManagerItf getPOManager()
getPOManager
in interface POManagerFactoryItf
public POManagerItf lookup()
POManagerFactoryItf
lookup
in interface POManagerFactoryItf
public SequenceManager getSequenceManager()
POManagerFactoryItf
getSequenceManager
in interface POManagerFactoryItf
public void setSequenceManager(SequenceManager sequenceManager)
POManagerFactoryItf
setSequenceManager
in interface POManagerFactoryItf
public QueryManager getQueryManager()
POManagerFactoryItf
getQueryManager
in interface POManagerFactoryItf
public void setQueryManager(QueryManager queryManager)
POManagerFactoryItf
setQueryManager
in interface POManagerFactoryItf
public void unbindPM()
POManagerFactoryItf
unbindPM
in interface POManagerFactoryItf
public void bindPM2Thread(POManagerItf pm)
POManagerFactoryItf
bindPM2Thread
in interface POManagerFactoryItf
public void poManagerClosed(POManagerItf pr)
POManagerFactoryItf
poManagerClosed
in interface POManagerFactoryItf
pr
- the closed PM.public void clean()
POManagerFactoryItf
clean
in interface POManagerFactoryItf
public java.util.Properties getProperties()
getProperties
in interface POManagerFactoryItf
protected Component getSpeedoComponent(java.util.Map props) throws java.lang.Throwable
java.lang.Throwable
public void init(java.util.Map pmfProps) throws java.lang.Throwable
java.lang.Throwable
protected void configure(java.util.Map pmfProps) throws java.lang.Throwable
java.lang.Throwable
protected void applyProperties(java.util.Map props, java.util.Map pmfProps) throws java.lang.Throwable
java.lang.Throwable
protected java.lang.String getProperty(java.util.Map m, java.lang.String propName, java.lang.String defaultValue, boolean remove)
protected boolean removeProps(java.util.Map props, java.lang.String[] wanted)
public static java.lang.String getMappingStructureString(byte b)
public static byte getMappingStructure(java.lang.String strval)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |