GigaSpaces XAP 10.0.1 API

org.openspaces.admin.application
Interface Application


public interface Application

Describes a group of processing units that interact together as an application.

Since:
8.0.3
Author:
itaif

Method Summary
 ProcessingUnit deployProcessingUnit(ProcessingUnitDeploymentTopology puDeployment)
          Deploys the specified processing unit adding it to this application
 ProcessingUnit deployProcessingUnit(ProcessingUnitDeploymentTopology puDeployment, long timeout, TimeUnit timeUnit)
          Deploys the specified processing unit adding it to this application
 String getName()
           
 ProcessingUnits getProcessingUnits()
           
 void setStatisticsHistorySize(int historySize)
          Sets the history size of number for the processing units
 void undeployAndWait()
          Undeploys all Processing Units that are part of the application and waits until all instances have been undeployed.
 boolean undeployAndWait(long timeout, TimeUnit timeUnit)
          Undeploys all Processing Units that are part of the application and waits until all instances have been undeployed.
 

Method Detail

getProcessingUnits

ProcessingUnits getProcessingUnits()
Returns:
the processing units associated with the application
Since:
8.0.3

getName

String getName()
Returns:
the name of the application.
Since:
8.0.3

deployProcessingUnit

ProcessingUnit deployProcessingUnit(ProcessingUnitDeploymentTopology puDeployment)
Deploys the specified processing unit adding it to this application


deployProcessingUnit

ProcessingUnit deployProcessingUnit(ProcessingUnitDeploymentTopology puDeployment,
                                    long timeout,
                                    TimeUnit timeUnit)
Deploys the specified processing unit adding it to this application


undeployAndWait

void undeployAndWait()
Undeploys all Processing Units that are part of the application and waits until all instances have been undeployed. In case of an Elastic processing unit, also waits for containers to shutdown. The processing units are undeployed in the reverse dependency order (if feeder depends on space, then space is undeployed and only then space is undeployed)

The undeployment process will wait indefinitely and return when all processing units have undeployed.

Since:
8.0.6

undeployAndWait

boolean undeployAndWait(long timeout,
                        TimeUnit timeUnit)
Undeploys all Processing Units that are part of the application and waits until all instances have been undeployed. In case of an Elastic processing unit, also waits for containers to shutdown. The processing units are undeployed in the reverse dependency order (if feeder depends on space, then space is undeployed and only then space is undeployed)

The undeployment process waits for the specified timeout and return when all processing units of the application has been undeployed or timeout expired. * @return true if all processing units have undeployed, false if undeployment process is incomplete and the timeout expired.

Since:
8.0.6

setStatisticsHistorySize

void setStatisticsHistorySize(int historySize)
Sets the history size of number for the processing units


GigaSpaces XAP 10.0.1 API

Copyright © GigaSpaces.