|
GigaSpaces XAP 10.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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. |
RequiredZonesConfig |
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. |
CapacityRequirements |
getReservedCapacityPerManagementMachine()
Gets the expected amount of memory,cpu,disk,etc... per management 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()
Deprecated. |
void |
setDedicatedManagementMachines(boolean isDedicatedManagementMachines)
A false value indicates that Grid Service Agents may run a management process. |
void |
setGridServiceAgentZoneMandatory(boolean zoneMandatory)
Deprecated. |
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. |
void |
setReservedMemoryCapacityPerManagementMachineInMB(long reservedInMB)
Sets the expected amount of memory per management 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()
BeanConfig
Bean
implementation class name corresponding to this BeanConfig.
getBeanClassName
in interface BeanConfig
public void setProperties(Map<String,String> properties)
BeanConfig
setProperties
in interface BeanConfig
properties
- the properties to configure this bean object.public Map<String,String> getProperties()
BeanConfig
getProperties
in interface BeanConfig
public double getMinimumNumberOfCpuCoresPerMachine()
ElasticMachineProvisioningConfig
getMinimumNumberOfCpuCoresPerMachine
in interface ElasticMachineProvisioningConfig
public void setMinimumNumberOfCpuCoresPerMachine(double minimumNumberOfCpuCoresPerMachine)
detectMinimumNumberOfCpuCoresPerMachine(org.openspaces.admin.Admin)
to get an assessment of minimum number of CPU cores per machine.
public RequiredZonesConfig getGridServiceAgentZones()
ElasticMachineProvisioningConfig
getGridServiceAgentZones
in interface ElasticMachineProvisioningConfig
public 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 void setReservedMemoryCapacityPerManagementMachineInMB(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 ElasticMachineProvisioningConfig
public CapacityRequirements getReservedCapacityPerManagementMachine()
ElasticMachineProvisioningConfig
getReservedCapacityPerManagementMachine
in interface ElasticMachineProvisioningConfig
public void setReservedCapacityPerMachine(CapacityRequirements capacityRequirements)
capacityRequirements
- - specifies the reserved memory/cpu/disk spacesetReservedCpuCapacityPerMachineInMB(double)
,
setReservedMemoryCapacityPerMachineInMB(long)
,
setReservedDriveCapacityPerMachineInMB(Map)
public boolean isDedicatedManagementMachines()
ElasticMachineProvisioningConfig
GridServiceManager
nor LookupService
nor ElasticServiceManager
Usually setting this value to true means that ElasticMachineProvisioningConfig.getReservedCapacityPerMachine()
memory can be decreased,
since no memory needs to be reserved for management processes.
isDedicatedManagementMachines
in interface ElasticMachineProvisioningConfig
public 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.
@Deprecated public boolean isGridServiceAgentZoneMandatory()
ElasticMachineProvisioningConfig
ElasticMachineProvisioningConfig.getGridServiceAgentZones()
This flag is deprecated since 9.1.0 since the zones behavior of agents and containers are the same. Meaning
an elastic pu that has a zone defined will not deploy on a GSA without zone anyhow.
isGridServiceAgentZoneMandatory
in interface ElasticMachineProvisioningConfig
@Deprecated public void setGridServiceAgentZoneMandatory(boolean zoneMandatory)
setGridServiceAgentZones(String[])
This flag is deprecated since 9.1.0 since the zones behavior of agents and containers are the same. Meaning
an elastic pu that has a zone defined will not deploy on a GSA without zone anyhow.
public static double detectMinimumNumberOfCpuCoresPerMachine(Admin admin)
|
GigaSpaces XAP 10.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |