GigaSpaces XAP 9.7.2 API

org.openspaces.pu.container.integrated
Class IntegratedProcessingUnitContainer

java.lang.Object
  extended by org.openspaces.pu.container.integrated.IntegratedProcessingUnitContainer
All Implemented Interfaces:
ProcessingUnitContainer, ApplicationContextProcessingUnitContainer

public class IntegratedProcessingUnitContainer
extends Object
implements ApplicationContextProcessingUnitContainer

The integrated processing unit container wraps Spring ApplicationContext. It is created using IntegratedProcessingUnitContainerProvider.

An integrated processing unit container can be used to run a processing unit within an existing environment. An example of what this existing environment will provide is the classpath that the processing unit will run with. Examples for using the integrated processing unit container can be integration tests or running the processing unit from within an IDE.

The integrated processing unit container also provides a a main method (main(String[]) which uses the IntegratedProcessingUnitContainerProvider and the provided parameters create itself. Please see the javadoc for the main method for a full list of the possible parameters values.

Author:
kimchy

Constructor Summary
IntegratedProcessingUnitContainer(ApplicationContext applicationContext)
          Constructs a new integrated processing unit container based on the provided Spring ApplicationContext.
 
Method Summary
 void close()
          Closes the processing unit container by destroying the Spring application context.
static ProcessingUnitContainer createContainer(String[] args)
           
 ApplicationContext getApplicationContext()
          Returns the spring application context this processing unit container wraps.
static void main(String[] args)
          Allows to run the integrated processing unit container.
static void printUsage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegratedProcessingUnitContainer

public IntegratedProcessingUnitContainer(ApplicationContext applicationContext)
Constructs a new integrated processing unit container based on the provided Spring ApplicationContext.

Method Detail

getApplicationContext

public ApplicationContext getApplicationContext()
Returns the spring application context this processing unit container wraps.

Specified by:
getApplicationContext in interface ApplicationContextProcessingUnitContainer

close

public void close()
           throws CannotCloseContainerException
Closes the processing unit container by destroying the Spring application context.

Specified by:
close in interface ProcessingUnitContainer
Throws:
CannotCloseContainerException

main

public static void main(String[] args)
                 throws Exception
Allows to run the integrated processing unit container. Uses the IntegratedProcessingUnitContainerProvider and the parameters provided in order to configure it.

The following parameters are allowed:

Throws:
Exception

createContainer

public static ProcessingUnitContainer createContainer(String[] args)
                                               throws Exception
Throws:
Exception

printUsage

public static void printUsage()

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.