GigaSpaces XAP 9.7.2 API

org.openspaces.admin.pu.config
Class ProcessingUnitConfig

java.lang.Object
  extended by org.openspaces.admin.pu.config.ProcessingUnitConfig
All Implemented Interfaces:
ProcessingUnitConfigHolder

public class ProcessingUnitConfig
extends Object
implements ProcessingUnitConfigHolder

Since:
9.0.1
Author:
itaif

Constructor Summary
ProcessingUnitConfig()
           
 
Method Summary
 void addZone(String zone)
           
 boolean equals(Object obj)
           
 String getClusterSchema()
           
 Map<String,String> getContextProperties()
           
 ProcessingUnitDependencies<ProcessingUnitDependency> getDependencies()
           
 ProcessingUnitDependency[] getDeploymentDependencies()
           
 Map<String,String> getElasticProperties()
           
 Integer getMaxInstancesPerMachine()
           
 Integer getMaxInstancesPerVM()
           
 Map<String,Integer> getMaxInstancesPerZone()
           
 String getName()
           
 Integer getNumberOfBackups()
           
 Integer getNumberOfInstances()
           
 String getPrimaryZone()
           
 String getProcessingUnit()
           
 Boolean getSecured()
           
 String getSlaLocation()
           
 UserDetailsConfig getUserDetails()
           
 String[] getZones()
           
 int hashCode()
           
 void setClusterSchema(String clusterSchema)
           
 void setContextProperties(Map<String,String> contextProperties)
           
 void setContextProperty(String key, String value)
           
 void setContextPropertyConfig(ContextPropertyConfig propertyConfig)
           
 void setDependencies(ProcessingUnitDependencies<ProcessingUnitDependency> dependencies)
           
 void setDeploymentDependencies(ProcessingUnitDependency[] dependencies)
          A helper method for setting conditions for processing unit deployment.
 void setElasticProperties(Map<String,String> elasticProperties)
           
 void setMaxInstancesPerMachine(Integer maxInstancesPerMachine)
           
 void setMaxInstancesPerVM(Integer maxInstancesPerVM)
           
 void setMaxInstancesPerZone(Map<String,Integer> maxInstancesPerZone)
           
 void setMaxInstancesPerZone(String zone, int maxInstancesPerZone)
           
 void setMaxInstancesPerZoneConfig(MaxInstancesPerZoneConfig maxInstancesPerZoneConfig)
           
 void setName(String name)
           
 void setNumberOfBackups(Integer numberOfBackups)
           
 void setNumberOfInstances(Integer numberOfInstances)
           
 void setPrimaryZone(String primaryZone)
           
 void setProcessingUnit(String processingUnit)
           
 void setSecured(Boolean secured)
           
 void setSlaLocation(String slaLocation)
           
 void setUserDetails(UserDetailsConfig userDetails)
           
 void setZones(String[] zones)
           
 String[] toDeploymentOptions()
           
 ProcessingUnitConfig toProcessingUnitConfig()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProcessingUnitConfig

public ProcessingUnitConfig()
Method Detail

getProcessingUnit

public String getProcessingUnit()

setProcessingUnit

public void setProcessingUnit(String processingUnit)
See Also:
ProcessingUnitDeployment.ProcessingUnitDeployment(String)

getName

public String getName()
Specified by:
getName in interface ProcessingUnitConfigHolder

setName

public void setName(String name)
Specified by:
setName in interface ProcessingUnitConfigHolder
See Also:
ProcessingUnitDeployment.name(String)

getClusterSchema

public String getClusterSchema()

setClusterSchema

public void setClusterSchema(String clusterSchema)
See Also:
ProcessingUnitDeployment.clusterSchema(String)

getNumberOfInstances

public Integer getNumberOfInstances()

setNumberOfInstances

public void setNumberOfInstances(Integer numberOfInstances)
See Also:
ProcessingUnitDeployment.numberOfInstances(int)

getNumberOfBackups

public Integer getNumberOfBackups()

setNumberOfBackups

public void setNumberOfBackups(Integer numberOfBackups)
See Also:
ProcessingUnitDeployment.numberOfBackups(int)

getMaxInstancesPerVM

public Integer getMaxInstancesPerVM()

setMaxInstancesPerVM

public void setMaxInstancesPerVM(Integer maxInstancesPerVM)
See Also:
ProcessingUnitDeployment.maxInstancesPerVM(int)

getMaxInstancesPerMachine

public Integer getMaxInstancesPerMachine()

setMaxInstancesPerMachine

public void setMaxInstancesPerMachine(Integer maxInstancesPerMachine)
See Also:
ProcessingUnitDeployment.maxInstancesPerMachine(int)

getContextProperties

public Map<String,String> getContextProperties()
Specified by:
getContextProperties in interface ProcessingUnitConfigHolder

getUserDetails

public UserDetailsConfig getUserDetails()
Specified by:
getUserDetails in interface ProcessingUnitConfigHolder

setUserDetails

public void setUserDetails(UserDetailsConfig userDetails)
Specified by:
setUserDetails in interface ProcessingUnitConfigHolder
See Also:
ProcessingUnitDeployment.userDetails(UserDetails)

getSlaLocation

public String getSlaLocation()

setSlaLocation

public void setSlaLocation(String slaLocation)
See Also:
ProcessingUnitDeployment.slaLocation(String)

getSecured

public Boolean getSecured()
Specified by:
getSecured in interface ProcessingUnitConfigHolder
See Also:
ProcessingUnitDeployment.secured(boolean)

setSecured

public void setSecured(Boolean secured)
Specified by:
setSecured in interface ProcessingUnitConfigHolder
See Also:
ProcessingUnitDeployment.secured(boolean)

getElasticProperties

public Map<String,String> getElasticProperties()

getMaxInstancesPerZone

public Map<String,Integer> getMaxInstancesPerZone()

setMaxInstancesPerZone

public void setMaxInstancesPerZone(Map<String,Integer> maxInstancesPerZone)
See Also:
ProcessingUnitDeployment.maxInstancesPerZone(String, int)

setMaxInstancesPerZone

public void setMaxInstancesPerZone(String zone,
                                   int maxInstancesPerZone)
See Also:
ProcessingUnitDeployment.maxInstancesPerZone(String, int)

setMaxInstancesPerZoneConfig

public void setMaxInstancesPerZoneConfig(MaxInstancesPerZoneConfig maxInstancesPerZoneConfig)

setContextProperties

public void setContextProperties(Map<String,String> contextProperties)
Specified by:
setContextProperties in interface ProcessingUnitConfigHolder
See Also:
ProcessingUnitDeployment.setContextProperty(String, String)

setContextProperty

public void setContextProperty(String key,
                               String value)
See Also:
ProcessingUnitDeployment.setContextProperty(String, String)

setContextPropertyConfig

public void setContextPropertyConfig(ContextPropertyConfig propertyConfig)

setElasticProperties

public void setElasticProperties(Map<String,String> elasticProperties)
See Also:
ProcessingUnitDeployment.setElasticProperty(String, String)

toDeploymentOptions

public String[] toDeploymentOptions()
See Also:
ProcessingUnitDeployment.getDeploymentOptions()

getZones

public String[] getZones()

setZones

public void setZones(String[] zones)
See Also:
ProcessingUnitDeployment.addZone(String)

addZone

public void addZone(String zone)
See Also:
ProcessingUnitDeployment.addZone(String)

getDependencies

public ProcessingUnitDependencies<ProcessingUnitDependency> getDependencies()
Specified by:
getDependencies in interface ProcessingUnitConfigHolder
See Also:
ProcessingUnitDeployment.addDependencies(org.openspaces.admin.internal.pu.dependency.ProcessingUnitDetailedDependencies)

setDependencies

public void setDependencies(ProcessingUnitDependencies<ProcessingUnitDependency> dependencies)
Specified by:
setDependencies in interface ProcessingUnitConfigHolder

setDeploymentDependencies

public void setDeploymentDependencies(ProcessingUnitDependency[] dependencies)
A helper method for setting conditions for processing unit deployment.


getDeploymentDependencies

public ProcessingUnitDependency[] getDeploymentDependencies()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

getPrimaryZone

public String getPrimaryZone()

setPrimaryZone

public void setPrimaryZone(String primaryZone)

toProcessingUnitConfig

public ProcessingUnitConfig toProcessingUnitConfig()
Specified by:
toProcessingUnitConfig in interface ProcessingUnitConfigHolder

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.