|
|||||||||||
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 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 static class |
ProActiveMetaObjectFactory.RequestReceiverFactoryImpl
|
protected static class |
ProActiveMetaObjectFactory.ThreadStoreFactoryImpl
|
Field Summary | |
static java.lang.String |
COMPONENT_PARAMETERS_KEY
|
protected ProActiveComponentFactory |
componentFactoryInstance
|
protected static org.apache.log4j.Logger |
logger
|
protected MigrationManagerFactory |
migrationManagerFactoryInstance
|
java.util.Hashtable |
parameters
|
protected ProActiveSecurityManager |
proActiveSecurityManager
|
protected ProActiveSPMDGroupManagerFactory |
proActiveSPMDGroupManagerFactoryInstance
|
protected RemoteBodyFactory |
remoteBodyFactoryInstance
|
protected ReplyReceiverFactory |
replyReceiverFactoryInstance
|
protected RequestFactory |
requestFactoryInstance
|
protected RequestQueueFactory |
requestQueueFactoryInstance
|
protected RequestReceiverFactory |
requestReceiverFactoryInstance
|
protected ThreadStoreFactory |
threadStoreFactoryInstance
|
Constructor Summary | |
protected |
ProActiveMetaObjectFactory()
|
|
ProActiveMetaObjectFactory(java.util.Hashtable parameters)
Constructor with parameters It is used for per-active-object configurations of ProActive factories |
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 COMPONENT_PARAMETERS_KEY
protected static org.apache.log4j.Logger logger
public java.util.Hashtable 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
Constructor Detail |
protected ProActiveMetaObjectFactory()
public ProActiveMetaObjectFactory(java.util.Hashtable 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.Hashtable 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
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)
public void setProActiveSecurityManager(ProActiveSecurityManager psm)
setProActiveSecurityManager
in interface MetaObjectFactory
public ProActiveSecurityManager getProActiveSecurityManager()
MetaObjectFactory
getProActiveSecurityManager
in interface MetaObjectFactory
ProActiveSecurityManager
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |