GigaSpaces XAP 7.0 API

org.openspaces.pu.container.standalone
Class StandaloneProcessingUnitContainer

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

public class StandaloneProcessingUnitContainer
extends Object
implements ApplicationContextProcessingUnitContainer

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
StandaloneProcessingUnitContainer(StandaloneContainerRunnable containerRunnable)
           
 
Method Summary
 void close()
          Closes the given processing unit container.
static ProcessingUnitContainer createContainer(String[] args)
           
 ApplicationContext getApplicationContext()
           
static void main(String[] args)
          Allows to run the standalone 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

StandaloneProcessingUnitContainer

public StandaloneProcessingUnitContainer(StandaloneContainerRunnable containerRunnable)
Method Detail

getApplicationContext

public ApplicationContext getApplicationContext()
Specified by:
getApplicationContext in interface ApplicationContextProcessingUnitContainer

close

public void close()
           throws CannotCloseContainerException
Description copied from interface: ProcessingUnitContainer
Closes the given processing unit container.

Specified by:
close in interface ProcessingUnitContainer
Throws:
CannotCloseContainerException

main

public static void main(String[] args)
                 throws Exception
Allows to run the standalone processing unit container. Uses the StandaloneProcessingUnitContainerProvider 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 7.0 API

Copyright © GigaSpaces.