GigaSpaces XAP 9.7.2 API

org.openspaces.admin.pu.elastic.config
Class CapacityRequirementsConfigurer

java.lang.Object
  extended by org.openspaces.admin.pu.elastic.config.CapacityRequirementsConfigurer
All Implemented Interfaces:
ScaleStrategyCapacityRequirementConfigurer

public class CapacityRequirementsConfigurer
extends Object
implements ScaleStrategyCapacityRequirementConfigurer

Fluent API for creating a new CapacityRequirementsConfig object.

Since:
9.0.0
Author:
itaif

Constructor Summary
CapacityRequirementsConfigurer()
           
 
Method Summary
 CapacityRequirementsConfig create()
           
 CapacityRequirementsConfigurer driveCapacity(String drive, int size, MemoryUnit unit)
          Specifies the disk and network drive capacity.
 CapacityRequirementsConfigurer driveCapacity(String drive, String size)
          Specifies the disk and network drive capacity.
 CapacityRequirementsConfigurer memoryCapacity(int memory, MemoryUnit unit)
          Specifies the memory capacity (RAM).
 CapacityRequirementsConfigurer memoryCapacity(String memory)
          Specifies the memory capacity (RAM).
 CapacityRequirementsConfigurer numberOfCpuCores(double cpuCores)
          Specifies the number of CPU cores (as reported by the operating system) This includes both real cores and hyper-threaded cores.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CapacityRequirementsConfigurer

public CapacityRequirementsConfigurer()
Method Detail

memoryCapacity

public CapacityRequirementsConfigurer memoryCapacity(String memory)
Description copied from interface: ScaleStrategyCapacityRequirementConfigurer
Specifies the memory capacity (RAM).

Specified by:
memoryCapacity in interface ScaleStrategyCapacityRequirementConfigurer
Parameters:
memory - - the RAM size as a string (For example :50m" or "50g" or "50t") See also MemoryUnit.getPostfix()

memoryCapacity

public CapacityRequirementsConfigurer memoryCapacity(int memory,
                                                     MemoryUnit unit)
Description copied from interface: ScaleStrategyCapacityRequirementConfigurer
Specifies the memory capacity (RAM).

Specified by:
memoryCapacity in interface ScaleStrategyCapacityRequirementConfigurer

numberOfCpuCores

public CapacityRequirementsConfigurer numberOfCpuCores(double cpuCores)
Description copied from interface: ScaleStrategyCapacityRequirementConfigurer
Specifies the number of CPU cores (as reported by the operating system) This includes both real cores and hyper-threaded cores.

Specified by:
numberOfCpuCores in interface ScaleStrategyCapacityRequirementConfigurer

driveCapacity

public CapacityRequirementsConfigurer driveCapacity(String drive,
                                                    int size,
                                                    MemoryUnit unit)
Description copied from interface: ScaleStrategyCapacityRequirementConfigurer
Specifies the disk and network drive capacity.

Specified by:
driveCapacity in interface ScaleStrategyCapacityRequirementConfigurer
Parameters:
drive - - the file system directory representing the drive
size - - the drive size
unit - - the drive size memory unit. For example: driveCapacity("/",50,MemoryUnit.MEGABYTES) - the drive "/" (on linux) has the size of 50*1024MBs driveCapacity("c:\\",50,MemoryUnit.MEGABYTES) - the drive "c:\" (on windows) has the size of 50*1024MBs

driveCapacity

public CapacityRequirementsConfigurer driveCapacity(String drive,
                                                    String size)
Description copied from interface: ScaleStrategyCapacityRequirementConfigurer
Specifies the disk and network drive capacity.

Specified by:
driveCapacity in interface ScaleStrategyCapacityRequirementConfigurer
Parameters:
drive - - the file system directory representing the drive
size - - the drive size as a string (For example :50m" or "50g" or "50t") See also MemoryUnit.getPostfix() For example: driveCapacity("/","50m") - the drive "/" (on linux) has the size of 50*1024MBs driveCapacity("c:\\","50m") - the drive "c:\" (on windows) has the size of 50*1024MBs

create

public CapacityRequirementsConfig create()

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.