|
GigaSpaces XAP 8.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openspaces.admin.pu.elastic.config.DiscoveredMachineProvisioningConfig
public class DiscoveredMachineProvisioningConfig
Allows to configure an Elastic Processing Unit machine provisioning that discovers existing machines.
DiscoveredMachineProvisioningConfigurer,
ElasticDeploymentTopology.dedicatedMachineProvisioning(org.openspaces.admin.pu.elastic.ElasticMachineProvisioningConfig),
ElasticDeploymentTopology.sharedMachineProvisioning(String, org.openspaces.admin.pu.elastic.ElasticMachineProvisioningConfig)| Constructor Summary | |
|---|---|
DiscoveredMachineProvisioningConfig()
|
|
DiscoveredMachineProvisioningConfig(Map<String,String> properties)
|
|
| Method Summary | |
|---|---|
static double |
detectMinimumNumberOfCpuCoresPerMachine(Admin admin)
|
String |
getBeanClassName()
The Bean implementation class name corresponding to this BeanConfig. |
String[] |
getGridServiceAgentZones()
Gets the list of zones that can be discovered and started by this machine provisioning. |
double |
getMinimumNumberOfCpuCoresPerMachine()
Gets the minimum number of CPU cores per machine. |
Map<String,String> |
getProperties()
Get the String key-value pairs properties used to configure this bean. |
CapacityRequirements |
getReservedCapacityPerMachine()
Gets the expected amount of memory,cpu,disk,etc... per machine that is reserved for processes other than grid containers. |
double |
getReservedCpuCapacityPerMachine()
|
Map<String,Long> |
getReservedDriveCapacityPerMachineInMB()
|
long |
getReservedMemoryCapacityPerMachineInMB()
|
boolean |
isDedicatedManagementMachines()
By default is false, which means that a Grid Service Agents may run a management process. |
boolean |
isGridServiceAgentZoneMandatory()
By default is false, which means that Grid Service Agents without a zone can be started and discovered by this machine provisioning. |
void |
setDedicatedManagementMachines(boolean isDedicatedManagementMachines)
A false value indicates that Grid Service Agents may run a management process. |
void |
setGridServiceAgentZoneMandatory(boolean zoneMandatory)
A false value indicates that Grid Service Agents without a zone can be started and discovered by this machine provisioning. |
void |
setGridServiceAgentZones(String[] zones)
Sets the list of zones that can be discovered and started by this machine provisioning. |
void |
setMinimumNumberOfCpuCoresPerMachine(double minimumNumberOfCpuCoresPerMachine)
Sets an assessment for the minimum number of CPU cores per machine. |
void |
setProperties(Map<String,String> properties)
Set with String key-value pairs to configure properties belonging to this bean. |
void |
setReservedCapacityPerMachine(CapacityRequirements capacityRequirements)
Sets the expected amount of memory, cpu, drive space (per machine) that is reserved for processes other than processing units. |
void |
setReservedCpuCapacityPerMachineInMB(double reservedCpu)
Sets the expected CPU cores per machine that is reserved for processes other than grid containers. |
void |
setReservedDriveCapacityPerMachineInMB(Map<String,Long> reservedInMB)
Sets the expected amount of disk drive size per machine that is reserved for processes other than grid containers. |
void |
setReservedMemoryCapacityPerMachineInMB(long reservedInMB)
Sets the expected amount of memory per machine that is reserved for processes other than grid containers. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DiscoveredMachineProvisioningConfig(Map<String,String> properties)
public DiscoveredMachineProvisioningConfig()
| Method Detail |
|---|
public String getBeanClassName()
BeanConfigBean implementation class name corresponding to this BeanConfig.
getBeanClassName in interface BeanConfigpublic void setProperties(Map<String,String> properties)
BeanConfig
setProperties in interface BeanConfigproperties - the properties to configure this bean object.public Map<String,String> getProperties()
BeanConfig
getProperties in interface BeanConfigpublic double getMinimumNumberOfCpuCoresPerMachine()
ElasticMachineProvisioningConfig
getMinimumNumberOfCpuCoresPerMachine in interface ElasticMachineProvisioningConfigpublic void setMinimumNumberOfCpuCoresPerMachine(double minimumNumberOfCpuCoresPerMachine)
detectMinimumNumberOfCpuCoresPerMachine(org.openspaces.admin.Admin)
to get an assessment of minimum number of CPU cores per machine.
public String[] getGridServiceAgentZones()
ElasticMachineProvisioningConfigElasticMachineProvisioningConfig.isGridServiceAgentZoneMandatory() is false)
String[] {"zoneA"} - Grid Service Agents are started with -Dcom.gs.zones=zoneA (or without -Dcom.gs.zones if ElasticMachineProvisioningConfig.isGridServiceAgentZoneMandatory() is false)
String[] {"zoneA","zoneB"} - Grid Service Agents are started with -Dcom.gs.zones=zoneA or -Dcom.gs.zones=zoneB or -Dcom.gs.zones=zoneA,zoneB (or without -Dcom.gs.zones if ElasticMachineProvisioningConfig.isGridServiceAgentZoneMandatory() is false)
getGridServiceAgentZones in interface ElasticMachineProvisioningConfigpublic void setGridServiceAgentZones(String[] zones)
isGridServiceAgentZoneMandatory() is false)
String[] {"zoneA"} - Grid Service Agents are started with -Dcom.gs.zones=zoneA (or without -Dcom.gs.zones if isGridServiceAgentZoneMandatory() is false)
String[] {"zoneA","zoneB"} - Grid Service Agents are started with -Dcom.gs.zones=zoneA or -Dcom.gs.zones=zoneB or -Dcom.gs.zones=zoneA,zoneB (or without -Dcom.gs.zones if isGridServiceAgentZoneMandatory() is false)
public void setReservedMemoryCapacityPerMachineInMB(long reservedInMB)
reservedInMB - - amount of reserved memory in MBsetReservedCapacityPerMachine(CapacityRequirements)public Map<String,Long> getReservedDriveCapacityPerMachineInMB()
public void setReservedDriveCapacityPerMachineInMB(Map<String,Long> reservedInMB)
reservedInMB - - amount of reserved disk drive in MBsetReservedCapacityPerMachine(CapacityRequirements)public long getReservedMemoryCapacityPerMachineInMB()
public double getReservedCpuCapacityPerMachine()
public void setReservedCpuCapacityPerMachineInMB(double reservedCpu)
reservedCpu - - number of reserved CPU coressetReservedCapacityPerMachine(CapacityRequirements)public CapacityRequirements getReservedCapacityPerMachine()
ElasticMachineProvisioningConfig
getReservedCapacityPerMachine in interface ElasticMachineProvisioningConfigpublic void setReservedCapacityPerMachine(CapacityRequirements capacityRequirements)
capacityRequirements - - specifies the reserved memory/cpu/disk spacesetReservedCpuCapacityPerMachineInMB(double),
setReservedMemoryCapacityPerMachineInMB(long),
setReservedDriveCapacityPerMachineInMB(Map)public boolean isDedicatedManagementMachines()
ElasticMachineProvisioningConfigGridServiceManager nor LookupService
nor ElasticServiceManager
Usually setting this value to true means that #getReservedCapacityPerMachineInMB() memory can be decreased,
since no memory needs to be reserved for management processes.
isDedicatedManagementMachines in interface ElasticMachineProvisioningConfigpublic void setDedicatedManagementMachines(boolean isDedicatedManagementMachines)
GridServiceManager nor LookupService
nor ElasticServiceManager
Usually setting this value to true means that setReservedMemoryCapacityPerMachineInMB(long) can be decreased,
since no memory needs to be reserved for management processes.
public boolean isGridServiceAgentZoneMandatory()
ElasticMachineProvisioningConfigElasticMachineProvisioningConfig.getGridServiceAgentZones()
isGridServiceAgentZoneMandatory in interface ElasticMachineProvisioningConfigpublic void setGridServiceAgentZoneMandatory(boolean zoneMandatory)
setGridServiceAgentZones(String[])
public static double detectMinimumNumberOfCpuCoresPerMachine(Admin admin)
|
GigaSpaces XAP 8.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||