Class StandaloneProcessingUnitContainer
java.lang.Object
org.openspaces.pu.container.ProcessingUnitContainer
org.openspaces.pu.container.spi.ApplicationContextProcessingUnitContainer
org.openspaces.pu.container.standalone.StandaloneProcessingUnitContainer
A
StandaloneProcessingUnitContainer provider. A standalone processing unit container is a
container that understands a processing unit archive structure (both when working with an
"exploded" directory and when working with a zip/jar archive of it).
The standalone processing unit container also provides a a main method (main(String[]) which uses the StandaloneProcessingUnitContainerProvider and the
provided parameters to create itself. Please see the javadoc for the main method for a full list
of the possible parameters values.
- Author:
- kimchy
-
Constructor Summary
ConstructorsConstructorDescriptionStandaloneProcessingUnitContainer(StandaloneContainerRunnable containerRunnable) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the given processing unit container.static ProcessingUnitContainercreateContainer(String[] args) org.springframework.context.ApplicationContextstatic voidAllows to run the standalone processing unit container.static voidMethods inherited from class org.openspaces.pu.container.spi.ApplicationContextProcessingUnitContainer
getDumpProcessors, getInvocableServices, getMemberAliveIndicators, getQuiesceStateChangedListeners, getServiceDetailsProviders, getServiceMonitorsProviders, getUndeployListeners
-
Constructor Details
-
StandaloneProcessingUnitContainer
-
-
Method Details
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext()- Specified by:
getApplicationContextin classApplicationContextProcessingUnitContainer
-
close
Description copied from class:ProcessingUnitContainerCloses the given processing unit container.- Overrides:
closein classProcessingUnitContainer- Throws:
CannotCloseContainerException
-
main
Allows to run the standalone processing unit container. Uses theStandaloneProcessingUnitContainerProviderand the parameters provided in order to configure it.The following parameters are allowed:
- [location]: The location of the
processing unit archive. See
StandaloneProcessingUnitContainerProvider(String). This parameter is required and must be at the end of the command line. - -config
[configLocation]: Allows to add a Spring application context config location. See
IntegratedProcessingUnitContainerProvider.addConfigLocation(String). This is an optional parameter and it can be provided multiple times. - -properties
[beanName] [properties]: Allows to inject
BeanLevelProperties, seeProcessingUnitContainerProvider.setBeanLevelProperties(org.openspaces.core.properties.BeanLevelProperties). [beanName] is optional, if not used, the properties will set theBeanLevelProperties.setContextProperties(java.util.Properties). If used, will inject properties only to the bean registered under the provided beanName within the Spring context (seeBeanLevelProperties.setBeanProperties(String, java.util.Properties)). The [properties] can either start withembed://which mean they will be provided within the command line (for example:embed://propName1=propVal1;propName2=propVal2) or they can follow SpringResourcelookup based on URL syntax or Spring extendedclasspathprefix (seeDefaultResourceLoader). - -cluster [cluster parameters]: Allows to configure
ClusterInfo, seeProcessingUnitContainerProvider.setClusterInfo(org.openspaces.core.cluster.ClusterInfo).
The following parameters are allowed:
total_members=1,1(1,1 is an example value),id=1(1 is an example value),backup_id=1(1 is an example value) andschema=primary_backup(primary_backup is an example value). No parameter is required. For more information regarding the Space meaning of this parameters please consult GigaSpaces reference documentation within the Space URL section.- Throws:
Exception
- [location]: The location of the
processing unit archive. See
-
createContainer
- Throws:
Exception
-
printUsage
public static void printUsage()
-