public abstract class ProcessingUnitContainerProvider extends Object implements ClusterInfoAware, BeanLevelPropertiesAware
ProcessingUnitContainer
. Usually concrete implementation
will have additional parameters controlling the nature of how specific container will be created.Modifier and Type | Field and Description |
---|---|
static String |
CONTAINER_CLASS_PROP |
static String |
CONTEXT_PROPERTY_DEPLOY_PATH |
Constructor and Description |
---|
ProcessingUnitContainerProvider() |
Modifier and Type | Method and Description |
---|---|
abstract ProcessingUnitContainer |
createContainer()
Creates a processing unit container.
|
BeanLevelProperties |
getBeanLevelProperties() |
ClusterInfo |
getClusterInfo() |
ProcessingUnitContainerConfig |
getConfig() |
void |
setBeanLevelProperties(BeanLevelProperties beanLevelProperties)
Sets the
BeanLevelProperties . |
void |
setClassLoader(ClassLoader classLoader) |
void |
setClusterInfo(ClusterInfo clusterInfo)
Sets the cluster information.
|
void |
setDeployPath(File deployPath)
Sets the path where the processing unit deployment was extracted to.
|
void |
setManifestUrls(Iterable<URL> libs) |
void |
setMetricRegistrator(com.gigaspaces.metrics.MetricRegistrator metricRegistrator) |
public static final String CONTAINER_CLASS_PROP
public static final String CONTEXT_PROPERTY_DEPLOY_PATH
public abstract ProcessingUnitContainer createContainer() throws CannotCreateContainerException
CannotCreateContainerException
public void setDeployPath(File deployPath)
public void setClassLoader(ClassLoader classLoader)
public ClusterInfo getClusterInfo()
public void setClusterInfo(ClusterInfo clusterInfo)
ClusterInfoAware
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 ClusterInfoAware
should take into account the fact that the cluster info provided might be null.
setClusterInfo
in interface ClusterInfoAware
clusterInfo
- The cluster information to be injectedpublic BeanLevelProperties getBeanLevelProperties()
public void setBeanLevelProperties(BeanLevelProperties beanLevelProperties)
BeanLevelPropertiesAware
BeanLevelProperties
.setBeanLevelProperties
in interface BeanLevelPropertiesAware
public void setMetricRegistrator(com.gigaspaces.metrics.MetricRegistrator metricRegistrator)
public ProcessingUnitContainerConfig getConfig()
Copyright © GigaSpaces.