public class ProcessingUnitDependencyConfig extends Object implements org.openspaces.admin.internal.pu.dependency.InternalProcessingUnitDependency
Constructor and Description |
---|
ProcessingUnitDependencyConfig()
For spring injection
|
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
boolean |
equals(Object obj) |
int |
getMinimumNumberOfDeployedInstances() |
int |
getMinimumNumberOfDeployedInstancesPerPartition() |
String |
getRequiredProcessingUnitName() |
boolean |
getWaitForDeploymentToComplete() |
int |
hashCode() |
void |
mergeDependency(ProcessingUnitDependency otherDependency)
Merges the specified dependencies with existing dependencies.
|
void |
mergeDependency(org.jini.rio.core.RequiredDependency otherRequiredDependency)
Merges the specified dependencies (received from the GSM) with existing dependencies.
|
void |
setMinimumNumberOfDeployedInstances(int minimumNumberOfDeployedInstances)
When bigger than 0 the dependant processing unit waits until the required processing unit has at least the specified number of instances.
|
void |
setMinimumNumberOfDeployedInstancesPerPartition(int minimumNumberOfDeployedInstancesPerPartition)
When bigger than 0 the dependant processing unit waits until the required processing unit has at least the specified number of instances per partition.
1 means at least one instance per partition (each partition has at least one primary instance)
2 means at least two instances per partition (each partition has at least one primary instance and one backup instance)
When 0 this dependency is disabled
|
void |
setRequiredProcessingUnitName(String requiredProcessingUnitName) |
void |
setWaitForDeploymentToComplete(boolean waitForDeploymentToComplete)
When true the dependant processing unit waits until the required processing unit completes deployment.
|
org.jini.rio.core.RequiredDependency |
toRequiredDependency()
Converts this to the GSM implementation equivalent
|
String |
toString() |
public ProcessingUnitDependencyConfig()
public boolean getWaitForDeploymentToComplete()
getWaitForDeploymentToComplete
in interface ProcessingUnitDependency
public void setWaitForDeploymentToComplete(boolean waitForDeploymentToComplete)
org.openspaces.admin.internal.pu.dependency.InternalProcessingUnitDependency
setWaitForDeploymentToComplete
in interface org.openspaces.admin.internal.pu.dependency.InternalProcessingUnitDependency
public int getMinimumNumberOfDeployedInstancesPerPartition()
getMinimumNumberOfDeployedInstancesPerPartition
in interface ProcessingUnitDependency
public void setMinimumNumberOfDeployedInstancesPerPartition(int minimumNumberOfDeployedInstancesPerPartition)
org.openspaces.admin.internal.pu.dependency.InternalProcessingUnitDependency
setMinimumNumberOfDeployedInstancesPerPartition
in interface org.openspaces.admin.internal.pu.dependency.InternalProcessingUnitDependency
public int getMinimumNumberOfDeployedInstances()
getMinimumNumberOfDeployedInstances
in interface ProcessingUnitDependency
public void setMinimumNumberOfDeployedInstances(int minimumNumberOfDeployedInstances)
org.openspaces.admin.internal.pu.dependency.InternalProcessingUnitDependency
setMinimumNumberOfDeployedInstances
in interface org.openspaces.admin.internal.pu.dependency.InternalProcessingUnitDependency
public String getRequiredProcessingUnitName()
getRequiredProcessingUnitName
in interface ProcessingUnitDependency
public void setRequiredProcessingUnitName(String requiredProcessingUnitName)
@PostConstruct public void afterPropertiesSet()
public void mergeDependency(ProcessingUnitDependency otherDependency)
org.openspaces.admin.internal.pu.dependency.InternalProcessingUnitDependency
mergeDependency
in interface org.openspaces.admin.internal.pu.dependency.InternalProcessingUnitDependency
public void mergeDependency(org.jini.rio.core.RequiredDependency otherRequiredDependency)
org.openspaces.admin.internal.pu.dependency.InternalProcessingUnitDependency
mergeDependency
in interface org.openspaces.admin.internal.pu.dependency.InternalProcessingUnitDependency
public org.jini.rio.core.RequiredDependency toRequiredDependency()
org.openspaces.admin.internal.pu.dependency.InternalProcessingUnitDependency
toRequiredDependency
in interface org.openspaces.admin.internal.pu.dependency.InternalProcessingUnitDependency
Copyright © GigaSpaces.