Class DefaultApplication
java.lang.Object
org.openspaces.admin.internal.application.DefaultApplication
- All Implemented Interfaces:
Application,InternalApplication
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeployProcessingUnit(ProcessingUnitDeploymentTopology puDeployment) Deploys the specified processing unit adding it to this applicationdeployProcessingUnit(ProcessingUnitDeploymentTopology puDeployment, long timeout, TimeUnit timeUnit) Deploys the specified processing unit adding it to this applicationbooleangetName()inthashCode()voidsetStatisticsHistorySize(int historySize) voidUndeploys all Processing Units that are part of the application and waits until all instances have been undeployed.booleanundeployAndWait(long timeout, TimeUnit timeUnit) Undeploys all Processing Units that are part of the application and waits until all instances have been undeployed.
-
Constructor Details
-
DefaultApplication
-
-
Method Details
-
getProcessingUnits
- Specified by:
getProcessingUnitsin interfaceApplication- Returns:
- the processing units associated with the application
-
getName
- Specified by:
getNamein interfaceApplication- Returns:
- the name of the application.
-
equals
-
hashCode
public int hashCode() -
setStatisticsHistorySize
public void setStatisticsHistorySize(int historySize) - Specified by:
setStatisticsHistorySizein interfaceApplication- Parameters:
historySize- the amount of statistics objects to keep.
-
undeployAndWait
public void undeployAndWait()Description copied from interface:ApplicationUndeploys 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.
- Specified by:
undeployAndWaitin interfaceApplication
-
undeployAndWait
Description copied from interface:ApplicationUndeploys 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.
- Specified by:
undeployAndWaitin interfaceApplication
-
deployProcessingUnit
public ProcessingUnit deployProcessingUnit(ProcessingUnitDeploymentTopology puDeployment, long timeout, TimeUnit timeUnit) Description copied from interface:ApplicationDeploys the specified processing unit adding it to this application- Specified by:
deployProcessingUnitin interfaceApplication
-
deployProcessingUnit
Description copied from interface:ApplicationDeploys the specified processing unit adding it to this application- Specified by:
deployProcessingUnitin interfaceApplication
-