Package org.openspaces.pu.container
Class ProcessingUnitContainerProvider
java.lang.Object
org.openspaces.pu.container.ProcessingUnitContainerProvider
- All Implemented Interfaces:
ClusterInfoAware,BeanLevelPropertiesAware
- Direct Known Subclasses:
ApplicationContextProcessingUnitContainerProvider
public abstract class ProcessingUnitContainerProvider
extends Object
implements ClusterInfoAware, BeanLevelPropertiesAware
A processing unit container provider is responsible for creating
ProcessingUnitContainer. Usually concrete implementation will have
additional parameters controlling the nature of how specific container will be created.- Author:
- kimchy
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ProcessingUnitContainerCreates a processing unit container.voidsetBeanLevelProperties(BeanLevelProperties beanLevelProperties) Sets theBeanLevelProperties.voidsetClassLoader(ClassLoader classLoader) voidsetClusterInfo(ClusterInfo clusterInfo) Sets the cluster information.voidsetDeployPath(File deployPath) Sets the path where the processing unit deployment was extracted to.voidsetManifestUrls(Iterable<URL> libs) voidsetMetricRegistrator(MetricRegistrator metricRegistrator) voidsetSpaceName(String spaceName)
-
Field Details
-
CONTAINER_CLASS_PROP
- See Also:
-
CONTEXT_PROPERTY_DEPLOY_PATH
- See Also:
-
SPACE_NAME_PROPERTY_KEY
- See Also:
-
-
Constructor Details
-
ProcessingUnitContainerProvider
public ProcessingUnitContainerProvider()
-
-
Method Details
-
createContainer
Creates a processing unit container.- Returns:
- A newly created processing unit container.
- Throws:
CannotCreateContainerException
-
setDeployPath
Sets the path where the processing unit deployment was extracted to. -
setManifestUrls
-
setClassLoader
-
getClusterInfo
-
setClusterInfo
Description copied from interface:ClusterInfoAwareSets the cluster information.Note, the cluster information is obtained externally from the application context which means that this feature need to be supported by specific containers (and is not supported by plain Spring application context). This means that beans that implement
ClusterInfoAwareshould take into account the fact that the cluster info provided might be null.- Specified by:
setClusterInfoin interfaceClusterInfoAware- Parameters:
clusterInfo- The cluster information to be injected
-
getBeanLevelProperties
-
setBeanLevelProperties
Description copied from interface:BeanLevelPropertiesAwareSets theBeanLevelProperties.- Specified by:
setBeanLevelPropertiesin interfaceBeanLevelPropertiesAware
-
setMetricRegistrator
-
getConfig
-
setSpaceName
-