Hitachi

In-Memory Data Grid Hitachi Elastic Application Data Store


17.4 Creating a function property file (optional)

Create a function property file, if necessary.

There are two ways to create function property files:

Creating a function property file that is applied to all user functions

The file name is eads_function.properties.

If no function property file is provided, default values are assumed for all parameters required for execution.

For details about the parameters of function properties, see 9.2.3 Parameters related to thread pools and connection pools.

Creating a function property file for each user function's jar file

The file name is in the following format:

any-character-string_function.properties

For any-character-string, specify the name of the jar file that you want to apply but without the _function.jar part.

Example: The jar file name is sample_function.jar

The function property file name is sample_function.properties.

You can specify eads_function.properties together with any-character-string_function.properties. When they are specified together and the same parameters are defined in both property files, the parameters in any-character-string_function.properties are applied.

If no function property file is provided, the contents of eads_function.properties are applied.

Important note

In the case of the jar file name (user-function.jar) of a user function whose version is 03-00 or earlier, the function property file name is user_function.properties.

In the function properties, you can specify the maximum number of simultaneous threads for each user function by using the eads.function.user-function-name.maxExecuteThreads parameter.

You can also define user-specific parameters.

For details about designing the maximum number of simultaneous threads for each user function, see 9.2.2 Setting the maximum number of simultaneous threads.

You can acquire the parameters specified in the function properties within the user function by using the InitConfig interface.

To create a function property file:

  1. Edit the function property file.

  2. Store the function property file in the following directory:

    management-directory/app

The following shows an example of a function property file.

eads.function.com.abc.def.outputGroupKeys.max_execute_threads=10
eads.function.com.abc.def.getSpectialKey.max_execute_threads=5
eads.function.com.abc.def.updateInstance.max_execute_threads=2
 
# User-specific parameters
com.FunctionSample.def.version=0100
com.FunctionSample.def.isUpdateEnabled=true
Important note

The name of a user-specific parameter cannot begin with eads.. If a user-specific parameter whose name begins with eads. is used, operation is not guaranteed.