|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.proactive.core.body.ProActiveMetaObjectFactory
THIS JAVADOC SHOULD BE REWRITTEN
This class provides singleton instances of all default factories creating MetaObjects used in the Body.
Since version 1.8, it is also possible to parameterized the factories on a per-object basis. In that case, public ProActiveMetaObjectFactory(Hashtable parameters) is the constructor to use.One can inherit from this class in order to provide custom implementation of one or several factories. This class provide a default implementation that makes the factories a singleton. One instance of each mata object factory is created when this object is built and the same instance is returned each time somebody ask for an instance.
In order to change one meta object factory following that singleton pattern,
only the protected method newXXXSingleton
has to be overwritten.
The method newXXXSingleton
is guarantee to be called only once at
construction time of this object.
In order to change one meta object factory that does not follow the singleton
pattern, the public method newXXX
has to be overwritten in order
to return a new instance of the factory each time. The default implementation
of each newXXX
method if to return the singleton instance of the
factory created from newXXXSingleton
method call.
Each sub class of this class should be implemented as a singleton and provide
a static method newInstance
for this purpose.
Nested Class Summary | |
protected class |
ProActiveMetaObjectFactory.FTManagerFactoryImpl
|
protected static class |
ProActiveMetaObjectFactory.MigrationManagerFactoryImpl
|
protected class |
ProActiveMetaObjectFactory.ProActiveComponentFactoryImpl
|
protected static class |
ProActiveMetaObjectFactory.ProActiveSPMDGroupManagerFactoryImpl
|
protected static class |
ProActiveMetaObjectFactory.RemoteBodyFactoryImpl
|
protected static class |
ProActiveMetaObjectFactory.ReplyReceiverFactoryImpl
|
protected static class |
ProActiveMetaObjectFactory.RequestFactoryImpl
|
protected class |
ProActiveMetaObjectFactory.RequestQueueFactoryImpl
|
protected class |
ProActiveMetaObjectFactory.RequestReceiverFactoryImpl
|
protected static class |
ProActiveMetaObjectFactory.ThreadStoreFactoryImpl
|
Field Summary | |
static java.lang.String |
COMPONENT_PARAMETERS_KEY
|
protected ProActiveComponentFactory |
componentFactoryInstance
|
protected FTManagerFactory |
ftmanagerFactoryInstance
|
protected static org.apache.log4j.Logger |
logger
|
protected MigrationManagerFactory |
migrationManagerFactoryInstance
|
java.util.Map |
parameters
|
protected ProActiveSecurityManager |
proActiveSecurityManager
|
protected ProActiveSPMDGroupManagerFactory |
proActiveSPMDGroupManagerFactoryInstance
|
protected RemoteBodyFactory |
remoteBodyFactoryInstance
|
protected ReplyReceiverFactory |
replyReceiverFactoryInstance
|
protected RequestFactory |
requestFactoryInstance
|
protected RequestQueueFactory |
requestQueueFactoryInstance
|
protected RequestReceiverFactory |
requestReceiverFactoryInstance
|
static java.lang.String |
SYNCHRONOUS_COMPOSITE_COMPONENT_KEY
|
protected ThreadStoreFactory |
threadStoreFactoryInstance
|
Constructor Summary | |
protected |
ProActiveMetaObjectFactory()
|
|
ProActiveMetaObjectFactory(java.util.Map parameters)
Constructor with parameters It is used for per-active-object configurations of ProActive factories |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String COMPONENT_PARAMETERS_KEY
public static final java.lang.String SYNCHRONOUS_COMPOSITE_COMPONENT_KEY
protected static org.apache.log4j.Logger logger
public java.util.Map parameters
protected RequestFactory requestFactoryInstance
protected ReplyReceiverFactory replyReceiverFactoryInstance
protected RequestReceiverFactory requestReceiverFactoryInstance
protected RequestQueueFactory requestQueueFactoryInstance
protected MigrationManagerFactory migrationManagerFactoryInstance
protected RemoteBodyFactory remoteBodyFactoryInstance
protected ThreadStoreFactory threadStoreFactoryInstance
protected ProActiveSPMDGroupManagerFactory proActiveSPMDGroupManagerFactoryInstance
protected ProActiveComponentFactory componentFactoryInstance
protected ProActiveSecurityManager proActiveSecurityManager
protected FTManagerFactory ftmanagerFactoryInstance
Constructor Detail |
protected ProActiveMetaObjectFactory()
public ProActiveMetaObjectFactory(java.util.Map parameters)
parameters
- the parameters of the factories; these parameters can be of any typeMethod Detail |
public static MetaObjectFactory newInstance()
public static void setNewInstance(MetaObjectFactory mo)
public java.util.Map getParameters()
getParameters
in interface MetaObjectFactory
public RequestFactory newRequestFactory()
MetaObjectFactory
newRequestFactory
in interface MetaObjectFactory
RequestFactory
public ReplyReceiverFactory newReplyReceiverFactory()
MetaObjectFactory
newReplyReceiverFactory
in interface MetaObjectFactory
ReplyReceiverFactory
public RequestReceiverFactory newRequestReceiverFactory()
MetaObjectFactory
newRequestReceiverFactory
in interface MetaObjectFactory
RequestReceiverFactory
public RequestQueueFactory newRequestQueueFactory()
MetaObjectFactory
newRequestQueueFactory
in interface MetaObjectFactory
RequestQueueFactory
public MigrationManagerFactory newMigrationManagerFactory()
MetaObjectFactory
newMigrationManagerFactory
in interface MetaObjectFactory
MigrationManagerFactory
public RemoteBodyFactory newRemoteBodyFactory()
MetaObjectFactory
newRemoteBodyFactory
in interface MetaObjectFactory
RemoteBodyFactory
public ThreadStoreFactory newThreadStoreFactory()
MetaObjectFactory
newThreadStoreFactory
in interface MetaObjectFactory
ThreadStoreFactory
public ProActiveSPMDGroupManagerFactory newProActiveSPMDGroupManagerFactory()
MetaObjectFactory
newProActiveSPMDGroupManagerFactory
in interface MetaObjectFactory
public ProActiveComponentFactory newComponentFactory()
MetaObjectFactory
newComponentFactory
in interface MetaObjectFactory
public FTManagerFactory newFTManagerFactory()
MetaObjectFactory
newFTManagerFactory
in interface MetaObjectFactory
protected RequestFactory newRequestFactorySingleton()
protected ReplyReceiverFactory newReplyReceiverFactorySingleton()
protected RequestReceiverFactory newRequestReceiverFactorySingleton()
protected RequestQueueFactory newRequestQueueFactorySingleton()
protected MigrationManagerFactory newMigrationManagerFactorySingleton()
protected RemoteBodyFactory newRemoteBodyFactorySingleton()
protected ThreadStoreFactory newThreadStoreFactorySingleton()
protected ProActiveSPMDGroupManagerFactory newProActiveSPMDGroupManagerFactorySingleton()
protected ProActiveComponentFactory newComponentFactorySingleton(ComponentParameters initialComponentParameters)
protected FTManagerFactory newFTManagerFactorySingleton()
public void setProActiveSecurityManager(ProActiveSecurityManager psm)
setProActiveSecurityManager
in interface MetaObjectFactory
public ProActiveSecurityManager getProActiveSecurityManager()
MetaObjectFactory
getProActiveSecurityManager
in interface MetaObjectFactory
ProActiveSecurityManager
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface MetaObjectFactory
java.lang.CloneNotSupportedException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |