public class SetLimitsCustomizer extends BasicMachineLocationCustomizer implements Configurable
For example:
brooklyn.catalog:
...
item:
type: org.apache.brooklyn.entity.machine.MachineEntity
brooklyn.parameters:
- name: ulimits
type: java.util.List
description: |
Contents to add to the limits config file
default:
- "* soft nofile 16384"
- "* hard nofile 16384"
- "* soft nproc 16384"
- "* hard nproc 16384"
brooklyn.config:
provisioning.properties:
machineCustomizers:
- $brooklyn:object:
type: org.apache.brooklyn.entity.machine.SetLimitsCustomizer
brooklyn.config:
contents: $brooklyn:config("ulimits")
Configurable.ConfigurationSupport
Modifier and Type | Field and Description |
---|---|
static ConfigKey<java.util.List<java.lang.String>> |
CONTENTS |
static ConfigKey<java.lang.String> |
FILE_NAME |
static org.slf4j.Logger |
log |
Constructor and Description |
---|
SetLimitsCustomizer() |
Modifier and Type | Method and Description |
---|---|
Configurable.ConfigurationSupport |
config() |
void |
customize(MachineLocation machine)
Override to configure the given machine once it has been created (prior to any use).
|
<T> T |
getConfig(ConfigKey<T> key)
Convenience for calling
Configurable.ConfigurationSupport.get(ConfigKey) ,
via code like config().get(key) . |
preRelease
public static final org.slf4j.Logger log
public static final ConfigKey<java.lang.String> FILE_NAME
public static final ConfigKey<java.util.List<java.lang.String>> CONTENTS
public Configurable.ConfigurationSupport config()
config
in interface Configurable
public <T> T getConfig(ConfigKey<T> key)
Configurable
Configurable.ConfigurationSupport.get(ConfigKey)
,
via code like config().get(key)
.getConfig
in interface Configurable
public void customize(MachineLocation machine)
MachineLocationCustomizer
customize
in interface MachineLocationCustomizer
customize
in class BasicMachineLocationCustomizer