@PublicAPI public enum PAResourceManagerProperties extends Enum<PAResourceManagerProperties> implements PACommonProperties
Enum Constant and Description |
---|
JSCH_ADDITIONAL_CIPHERS
Ciphers added to jsch defaults in order to support legacy SSH servers
|
JSCH_ADDITIONAL_KEX_ALGORITHMS
Key exchange algorithms added to jsch defaults in order to support legacy SSH servers
|
JSCH_ADDITIONAL_MACS
Key exchange algorithms added to jsch defaults in order to support legacy SSH servers
|
JSCH_ADDITIONAL_SERVER_HOST_KEYS
Server Host Key algorithms added to jsch defaults in order to support legacy SSH servers
|
LO4J_FILE_APPENDER_PATTERN
Defines the log4j pattern used for all file appenders (used by the scheduler for job/task log files
|
LOG4J_ASYNC_APPENDER_BUFFER_SIZE
Defines the buffer size used in asynchronous appenders
|
LOG4J_ASYNC_APPENDER_CACHE_ENABLED
When asynchronous logging is enabled, also cache file appenders inside a cache structure (leaves file descriptors open while a job or task is running)
|
LOG4J_ASYNC_APPENDER_ENABLED
Enables or disables asynchronous logging for server
|
LOG4J_ASYNC_APPENDER_FLUSH_TIMOUT
Defines the AsynchFileAppender flush timeout
|
POLICY_RELOAD_FREQUENCY_IN_SECONDS
Refresh time to reload the security policy file (security.java.policy-server)
|
RM_ACCOUNT_REFRESH_RATE
Accounting refresh rate from the database in seconds
|
RM_ALIVE_EVENT_FREQUENCY
The period of sending "alive" event to resource manager's listeners.
|
RM_ALLOWED_DOMAINS
List of domain names that can be used during a login (can be a list of windows domain names or a list of tenants in Multi-LDAP configuration)
|
RM_AUTH_JAAS_PATH
Path to the Jaas configuration file which defines what modules are available for
internal authentication
|
RM_AUTH_PRIVKEY_PATH
Path to the private key file which is used to decrypt credentials passed to the jaas module
|
RM_AUTH_PUBKEY_PATH
Path to the public key file which is used to encrypt credentials for authentication
|
RM_CLEANING_MAX_THREAD_NUMBER
Max number of threads in the core for cleaning nodes after computations
|
RM_CLIENT_PING_FREQUENCY
Ping frequency used by resource manager to ping connected clients (in ms)
|
RM_CLOUD_INFRASTRUCTURES_DESTROY_INSTANCES_ON_SHUTDOWN
Defines whether all the resources of the deployed cloud instances
should be destroyed along with the nodes termination when the scheduler
is shut down.
|
RM_CREDS
Path to the Resource Manager credentials for adding local nodes
|
RM_DB_HIBERNATE_CONFIG
Resource Manager hibernate configuration file
|
RM_DB_HIBERNATE_DROPDB
Drop database before creating a new one
If this value is true, the database will be dropped and then re-created
If this value is false, database will be updated from the existing one.
|
RM_DB_HIBERNATE_DROPDB_NODESOURCES
Drop only node sources from the database.
|
RM_DB_ITEMS_MAX_SIZE |
RM_EC2_PATH_PROPERTY_NAME
Path to the Amazon EC2 account credentials properties file,
mandatory when using the EC2 Infrastructure
|
RM_EXECUTE_SCRIPT_AUTHORIZED_DIR
If set to non-null value the resource manager executes only selection scripts from
this directory.
|
RM_EXECUTE_SCRIPT_AUTHORIZED_DIR_REFRESHPERIOD
The pa.rm.select.script.authorized.dir is browsed every refreshperiod time to load authorized scripts.
|
RM_EXECUTE_SCRIPT_TIMEOUT
Timeout in ms for remote script execution using
SelectionManager#executeScript(org.ow2.proactive.scripting.Script, java.util.HashMap)
Default is 10 minutes for the script execution to complete. |
RM_GCM_TEMPLATE_APPLICATION_FILE
Deprecated.
|
RM_GCMD_PATH_PROPERTY_NAME
Deprecated.
|
RM_GROUP_FILE
Resource Manager group file name
|
RM_HISTORY_MAX_PERIOD
Maximum node history period in seconds (Default: disabled)
|
RM_HISTORY_REMOVAL_CRONPERIOD
Frequency of node history removal (cron expression)
|
RM_HOME
Resource Manager home directory
|
RM_INFRASTRUCTURE_PROCESS_OUTPUT_MAX_LINES
Max number of lines stored from the infrastructure processes output
|
RM_JMX_CONNECTOR_NAME
Name of the JMX MBean for the RM
|
RM_JMX_PORT
Port of the JMX service.
|
RM_KEYCLOAK_CONFIG
Resource Manager Keycloak configuration file path
|
RM_LDAP_CONFIG
Resource Manager ldap configuration file
|
RM_LEGACY_ENCRYPTION
When using legacy encryption, passwords are stored in login.cfg using symmetric key encryption, instead of hash/salt.
|
RM_LOGIN_FILE
Resource Manager login file name
|
RM_LOGIN_METHOD
Resource Manager authentication method
|
RM_MONITORING_MAX_THREAD_NUMBER
Max number of threads in node source for parallel task execution
|
RM_MULTI_LDAP_CONFIG
Support for multi-ldap login configuration.
|
RM_NB_LOCAL_NODES |
RM_NODE_NAME
Name of the ProActive Node containing RM's active objects
|
RM_NODE_SOURCE_PING_FREQUENCY
Ping frequency in ms used by node source for keeping a watch on handled nodes
|
RM_NODELOOKUP_TIMEOUT
Timeout in ms for node lookup
|
RM_NODES_DB_OPERATIONS_DELAY
Defines the minimum inter-time in MILLISECONDS between database
operations before a database transaction is triggered.
|
RM_NODES_DB_SYNCHRONOUS_UPDATES
Defines if, in the presence of a delay to execute node-related database
operations, the node update database operations must still be run
synchronously whenever possible.
|
RM_NODES_LOCK_RESTORATION
Defines if the lock restoration feature is enabled on RM startup.
|
RM_NODES_RECOVERY
Defines whether the node recovery mechanism is enabled on RM startup.
|
RM_NODESOURCE_INFRA_POLICY_MAPPING
Resource Manager node source infrastructures to node source policies mapping file
|
RM_NODESOURCE_INFRASTRUCTURE_FILE
Resource Manager node source infrastructures file
|
RM_NODESOURCE_MAX_THREAD_NUMBER
Max number of threads in node source for parallel task execution
|
RM_NODESOURCE_POLICY_FILE
Resource Manager node source policies file
|
RM_PRESERVE_NODES_ON_SHUTDOWN
Defines if the nodes should be kept when the resource manager exits.
|
RM_REST_MONITORING_MAXIMUM_CHUNK_SIZE
Defines the maximum number of RMEvents which can be sent to the client in one request.
|
RM_RRD_DATABASE_NAME
RRD data base with statistic history
|
RM_RRD_STEP
RRD data base step in seconds
|
RM_SCHEDULER_AWARE_POLICY_NODESOURCE_RECOVERY_TIMEOUT
Timeout (ms) for the resource manager to recover a broken node source in scheduler aware policy
|
RM_SCHEDULER_AWARE_POLICY_NODESOURCE_RECOVERY_TRIAL_NUMBER
Number of trials for the resource manager to recover a broken node source in scheduler aware policy
|
RM_SELECT_SCRIPT_CACHE_SIZE
The number of selection script digests stored in the cache to predict the execution results
|
RM_SELECT_SCRIPT_NODE_DYNAMICITY
The time period when a node has the same dynamic characteristics (in ms).
|
RM_SELECT_SCRIPT_TIMEOUT
Timeout in ms for selection script execution
|
RM_SELECTION_LOGS_LOCATION
Resource Manager selection process logs
|
RM_SELECTION_LOGS_MAX_SIZE |
RM_SELECTION_MAX_THREAD_NUMBER
Max number of threads in node source for parallel task execution
|
RM_SELECTION_POLICY
The full class name of the policy selected nodes
|
RM_SHUTDOWN_KILL_RUNTIME
Kill Runtime when shutting down the Resource Manager.
|
RM_SHUTDOWN_TIMEOUT
Timeout in seconds for trying to shutdown the resource manager properly
|
RM_TENANT_FILE
Resource Manager tenant file name
|
RM_TOPOLOGY_DISTANCE_ENABLED
If this is true, the topology mechanism will compute distances between hosts using ping
|
RM_TOPOLOGY_ENABLED
Topology feature enable option
|
RM_TOPOLOGY_PINGER |
RM_UNAVAILABLE_NODES_MAX_PERIOD
Defines the period, in minutes, after which a
NodeState.DOWN or
NodeState.LOST node is eligible to automatic removal. |
RM_UNAVAILABLE_NODES_REMOVAL_FREQUENCY
Defines the frequency of attempts to remove
NodeState.DOWN or
NodeState.LOST node (cron expression). |
Modifier and Type | Field and Description |
---|---|
static String |
PA_RM_PROPERTIES_FILEPATH |
static String |
PA_RM_PROPERTIES_RELATIVE_FILEPATH |
Modifier and Type | Method and Description |
---|---|
static String |
getAbsolutePath(String userPath)
Get the absolute path of the given path.
It the path is absolute, then it is returned. |
String |
getCmdLine()
Returns the string to be passed on the command line
The property surrounded by '-D' and '='
|
String |
getConfigurationDefaultRelativeFilePath()
Returns the default relative path used to store the property file
|
String |
getConfigurationFilePathPropertyName()
Returns the System property name used to store the configuration file path
|
String |
getKey()
Get the key.
|
static Map<String,Object> |
getPropertiesAsHashMap()
Return all properties as a HashMap.
|
PropertyType |
getType()
Return the type of the given properties.
|
boolean |
getValueAsBoolean()
Returns the value of this property as a boolean.
|
int |
getValueAsInt()
Returns the value of this property as an integer.
|
List<String> |
getValueAsList(String separator)
Returns the value of this property as a List of strings.
|
List<String> |
getValueAsList(String separator,
boolean allowEmpty)
Returns the value of this property as a List of strings.
|
long |
getValueAsLong()
Returns the value of this property as a long integer.
|
String |
getValueAsString()
Returns the value of this property as a string.
|
String |
getValueAsStringOrNull()
Returns the value of this property as a string.
|
boolean |
isSet()
Return true if this property is set or has a default value, false otherwise.
|
protected static void |
loadProperties(String filename)
Load the properties from the given file.
|
void |
loadPropertiesFromFile(String filename)
Load the properties from the given file.
|
static void |
reload() |
void |
reloadConfiguration()
Reload the properties using the default property file configuration
This method will clean every loaded properties before.
|
String |
toString() |
void |
unSet()
Unset this property, if this property has a default value, calling unSet will revert to the default.
|
static void |
updateProperties(String filename)
Override properties defined in the default configuration file,
by properties defined in another file.
|
void |
updateProperty(String value)
Set the value of this property to the given one.
|
static PAResourceManagerProperties |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PAResourceManagerProperties[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PAResourceManagerProperties RM_NODE_NAME
public static final PAResourceManagerProperties RM_NODE_SOURCE_PING_FREQUENCY
public static final PAResourceManagerProperties RM_CLIENT_PING_FREQUENCY
public static final PAResourceManagerProperties RM_SELECT_SCRIPT_TIMEOUT
public static final PAResourceManagerProperties RM_SELECT_SCRIPT_CACHE_SIZE
public static final PAResourceManagerProperties RM_SELECT_SCRIPT_NODE_DYNAMICITY
public static final PAResourceManagerProperties RM_EXECUTE_SCRIPT_TIMEOUT
SelectionManager#executeScript(org.ow2.proactive.scripting.Script, java.util.HashMap)
Default is 10 minutes for the script execution to complete.public static final PAResourceManagerProperties RM_EXECUTE_SCRIPT_AUTHORIZED_DIR
public static final PAResourceManagerProperties RM_EXECUTE_SCRIPT_AUTHORIZED_DIR_REFRESHPERIOD
public static final PAResourceManagerProperties RM_NODELOOKUP_TIMEOUT
@Deprecated public static final PAResourceManagerProperties RM_GCM_TEMPLATE_APPLICATION_FILE
@Deprecated public static final PAResourceManagerProperties RM_GCMD_PATH_PROPERTY_NAME
public static final PAResourceManagerProperties RM_EC2_PATH_PROPERTY_NAME
public static final PAResourceManagerProperties RM_HOME
public static final PAResourceManagerProperties RM_AUTH_JAAS_PATH
public static final PAResourceManagerProperties RM_AUTH_PRIVKEY_PATH
public static final PAResourceManagerProperties RM_AUTH_PUBKEY_PATH
public static final PAResourceManagerProperties RM_LOGIN_METHOD
public static final PAResourceManagerProperties RM_LDAP_CONFIG
public static final PAResourceManagerProperties RM_KEYCLOAK_CONFIG
public static final PAResourceManagerProperties RM_MULTI_LDAP_CONFIG
public static final PAResourceManagerProperties RM_LOGIN_FILE
public static final PAResourceManagerProperties RM_GROUP_FILE
public static final PAResourceManagerProperties RM_TENANT_FILE
public static final PAResourceManagerProperties RM_ALLOWED_DOMAINS
public static final PAResourceManagerProperties RM_JMX_CONNECTOR_NAME
public static final PAResourceManagerProperties RM_JMX_PORT
public static final PAResourceManagerProperties RM_RRD_DATABASE_NAME
public static final PAResourceManagerProperties RM_RRD_STEP
public static final PAResourceManagerProperties RM_NODESOURCE_INFRASTRUCTURE_FILE
public static final PAResourceManagerProperties RM_NODESOURCE_POLICY_FILE
public static final PAResourceManagerProperties RM_NODESOURCE_INFRA_POLICY_MAPPING
public static final PAResourceManagerProperties RM_SCHEDULER_AWARE_POLICY_NODESOURCE_RECOVERY_TIMEOUT
public static final PAResourceManagerProperties RM_SCHEDULER_AWARE_POLICY_NODESOURCE_RECOVERY_TRIAL_NUMBER
public static final PAResourceManagerProperties RM_NODESOURCE_MAX_THREAD_NUMBER
public static final PAResourceManagerProperties RM_SELECTION_POLICY
public static final PAResourceManagerProperties RM_SELECTION_MAX_THREAD_NUMBER
public static final PAResourceManagerProperties RM_MONITORING_MAX_THREAD_NUMBER
public static final PAResourceManagerProperties RM_CLEANING_MAX_THREAD_NUMBER
public static final PAResourceManagerProperties RM_HISTORY_MAX_PERIOD
public static final PAResourceManagerProperties RM_HISTORY_REMOVAL_CRONPERIOD
public static final PAResourceManagerProperties RM_UNAVAILABLE_NODES_REMOVAL_FREQUENCY
NodeState.DOWN
or
NodeState.LOST
node (cron expression). If this property is not
set, these nodes will never be removed automatically.public static final PAResourceManagerProperties RM_UNAVAILABLE_NODES_MAX_PERIOD
NodeState.DOWN
or
NodeState.LOST
node is eligible to automatic removal. If this
property is not set, or not greater than 0, these nodes will never be
removed automatically.public static final PAResourceManagerProperties RM_INFRASTRUCTURE_PROCESS_OUTPUT_MAX_LINES
public static final PAResourceManagerProperties RM_LEGACY_ENCRYPTION
public static final PAResourceManagerProperties RM_CREDS
public static final PAResourceManagerProperties RM_DB_HIBERNATE_CONFIG
public static final PAResourceManagerProperties POLICY_RELOAD_FREQUENCY_IN_SECONDS
public static final PAResourceManagerProperties RM_DB_HIBERNATE_DROPDB
public static final PAResourceManagerProperties RM_DB_HIBERNATE_DROPDB_NODESOURCES
public static final PAResourceManagerProperties RM_ALIVE_EVENT_FREQUENCY
public static final PAResourceManagerProperties RM_ACCOUNT_REFRESH_RATE
public static final PAResourceManagerProperties RM_TOPOLOGY_ENABLED
public static final PAResourceManagerProperties RM_TOPOLOGY_DISTANCE_ENABLED
public static final PAResourceManagerProperties RM_TOPOLOGY_PINGER
public static final PAResourceManagerProperties RM_SELECTION_LOGS_LOCATION
public static final PAResourceManagerProperties RM_SELECTION_LOGS_MAX_SIZE
public static final PAResourceManagerProperties RM_NB_LOCAL_NODES
public static final PAResourceManagerProperties RM_SHUTDOWN_KILL_RUNTIME
public static final PAResourceManagerProperties RM_SHUTDOWN_TIMEOUT
public static final PAResourceManagerProperties RM_NODES_LOCK_RESTORATION
When set to true
, the RM will try to lock per Node Source
as many Nodes as there were on the previous run.
The approach is best effort and Node hostname is not considered. As a result, Nodes are not necessarily locked on the same host.
public static final PAResourceManagerProperties RM_PRESERVE_NODES_ON_SHUTDOWN
public static final PAResourceManagerProperties RM_NODES_RECOVERY
true
, it indicates that the node states and the node
source infrastructure states should be reloaded from database.
This flag is only taken into account if the database cleaner indicators
(RM_DB_HIBERNATE_DROPDB
and
RM_DB_HIBERNATE_DROPDB_NODESOURCES
)
are not set to true
.public static final PAResourceManagerProperties RM_NODES_DB_OPERATIONS_DELAY
RM_NODES_DB_SYNCHRONOUS_UPDATES
property.
updates will be batched together In milliseconds. If this property is
set to 0, then database operations are not delayed and are synchronous.public static final PAResourceManagerProperties RM_NODES_DB_SYNCHRONOUS_UPDATES
public static final PAResourceManagerProperties RM_DB_ITEMS_MAX_SIZE
public static final PAResourceManagerProperties RM_CLOUD_INFRASTRUCTURES_DESTROY_INSTANCES_ON_SHUTDOWN
public static final PAResourceManagerProperties RM_REST_MONITORING_MAXIMUM_CHUNK_SIZE
public static final PAResourceManagerProperties LOG4J_ASYNC_APPENDER_ENABLED
public static final PAResourceManagerProperties LOG4J_ASYNC_APPENDER_CACHE_ENABLED
public static final PAResourceManagerProperties LOG4J_ASYNC_APPENDER_BUFFER_SIZE
public static final PAResourceManagerProperties LOG4J_ASYNC_APPENDER_FLUSH_TIMOUT
public static final PAResourceManagerProperties LO4J_FILE_APPENDER_PATTERN
public static final PAResourceManagerProperties JSCH_ADDITIONAL_CIPHERS
public static final PAResourceManagerProperties JSCH_ADDITIONAL_KEX_ALGORITHMS
public static final PAResourceManagerProperties JSCH_ADDITIONAL_MACS
public static final PAResourceManagerProperties JSCH_ADDITIONAL_SERVER_HOST_KEYS
public static final String PA_RM_PROPERTIES_FILEPATH
public static final String PA_RM_PROPERTIES_RELATIVE_FILEPATH
public static PAResourceManagerProperties[] values()
for (PAResourceManagerProperties c : PAResourceManagerProperties.values()) System.out.println(c);
public static PAResourceManagerProperties valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullprotected static void loadProperties(String filename)
filename
- the file containing the properties to be loaded.public static void reload()
public static void updateProperties(String filename)
filename
- path of file containing some properties to overridepublic static Map<String,Object> getPropertiesAsHashMap()
public static String getAbsolutePath(String userPath)
userPath
- the path to check transform.public String getConfigurationFilePathPropertyName()
PACommonProperties
getConfigurationFilePathPropertyName
in interface PACommonProperties
public String getConfigurationDefaultRelativeFilePath()
PACommonProperties
getConfigurationDefaultRelativeFilePath
in interface PACommonProperties
public void loadPropertiesFromFile(String filename)
PACommonProperties
loadPropertiesFromFile
in interface PACommonProperties
filename
- the file containing the properties to be loaded.public void reloadConfiguration()
PACommonProperties
reloadConfiguration
in interface PACommonProperties
public String getKey()
PACommonProperties
getKey
in interface PACommonProperties
public void updateProperty(String value)
PACommonProperties
updateProperty
in interface PACommonProperties
value
- the new value to set.public boolean isSet()
PACommonProperties
isSet
in interface PACommonProperties
public void unSet()
PACommonProperties
unSet
in interface PACommonProperties
public String getCmdLine()
PACommonProperties
getCmdLine
in interface PACommonProperties
public int getValueAsInt()
PACommonProperties
getValueAsInt
in interface PACommonProperties
public long getValueAsLong()
PACommonProperties
getValueAsLong
in interface PACommonProperties
public String getValueAsString()
PACommonProperties
getValueAsString
in interface PACommonProperties
public String getValueAsStringOrNull()
PACommonProperties
getValueAsStringOrNull
in interface PACommonProperties
public boolean getValueAsBoolean()
PACommonProperties
Boolean.parseBoolean(String s)
.getValueAsBoolean
in interface PACommonProperties
public List<String> getValueAsList(String separator)
PACommonProperties
getValueAsList
in interface PACommonProperties
separator
- the separator to usepublic List<String> getValueAsList(String separator, boolean allowEmpty)
PACommonProperties
getValueAsList
in interface PACommonProperties
separator
- the separator to useallowEmpty
- allow empty values in the listpublic PropertyType getType()
PACommonProperties
getType
in interface PACommonProperties
public String toString()
toString
in class Enum<PAResourceManagerProperties>
Enum.toString()