public class DefaultApplication extends Object implements InternalApplication
Constructor and Description |
---|
DefaultApplication(InternalAdmin admin,
String name) |
Modifier and Type | Method and Description |
---|---|
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
|
boolean |
equals(Object o) |
String |
getName() |
ProcessingUnits |
getProcessingUnits() |
int |
hashCode() |
void |
setStatisticsHistorySize(int historySize) |
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.
|
public DefaultApplication(InternalAdmin admin, String name)
public ProcessingUnits getProcessingUnits()
getProcessingUnits
in interface Application
public String getName()
getName
in interface Application
public void setStatisticsHistorySize(int historySize)
setStatisticsHistorySize
in interface Application
historySize
- the amount of statistics objects to keep.public void undeployAndWait()
Application
The undeployment process will wait indefinitely and return when all processing units have undeployed.
undeployAndWait
in interface Application
public boolean undeployAndWait(long timeout, TimeUnit timeUnit)
Application
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.
undeployAndWait
in interface Application
public ProcessingUnit deployProcessingUnit(ProcessingUnitDeploymentTopology puDeployment, long timeout, TimeUnit timeUnit)
Application
deployProcessingUnit
in interface Application
public ProcessingUnit deployProcessingUnit(ProcessingUnitDeploymentTopology puDeployment)
Application
deployProcessingUnit
in interface Application
Copyright © GigaSpaces.