public class CustomResourceWrapper extends Object
Constructor and Description |
---|
CustomResourceWrapper(Map<String,Object> customResource) |
Modifier and Type | Method and Description |
---|---|
void |
createOrUpdateResource(Integer partitionId,
String memory,
String cpu,
boolean isReverted) |
void |
createResource(Integer partitionId,
String memory,
String cpu) |
Map<String,Object> |
get() |
Integer |
getPartitions() |
Map<String,Object> |
getResources() |
Map<String,String> |
getResourcesLimits() |
LinkedHashMap<String,Object> |
getServiceResources(List<Map> resourcesList) |
Map<String,Object> |
getSpec() |
void |
removeResource(Integer partitionId) |
void |
setPartitions(int partitionsNumber) |
public Integer getPartitions()
public void setPartitions(int partitionsNumber)
public void removeResource(Integer partitionId)
public void createOrUpdateResource(Integer partitionId, String memory, String cpu, boolean isReverted)
public LinkedHashMap<String,Object> getServiceResources(List<Map> resourcesList)
Copyright © GigaSpaces.