public class PutPolicyAction extends LibrarySessionAction
Modifier and Type | Field and Description |
---|---|
static String |
CLASSOBJECT_NAME
Name of the ClassObject onto which to set the Policy: "classObjectName".
|
static String |
POLICY_NAME
Name of the Policy to set: "policyName".
|
RESTART_SERVICE
CONTINUE_ON_ERROR, m_defaultOptions, m_options
APPEND_LOG, DATABASE_TYPE, DATABASE_URL, DB_USER_NAME, DB_USER_PASSWORD, DOMAIN_TYPE, ENABLE_SSL_SUPPORT, FOR_SCHEMA_UPGRADE, IFS_DOMAIN_DISPLAY_NAME, IFS_DOMAIN_NAME, IFS_SCHEMA_NAME, IFS_SCHEMA_PASSWORD, IFS_SERVICE_NAME, IFS_USER_NAME, IFS_USER_PASSWORD, INCLUDE_PATH, INITIAL_CONTEXT_FACTORY, LDAP_URL_DAS_LOOKUP, LDAP_USER_NAME, LDAP_USER_PASSWORD, OUTPUT_FILE, PARAMETER_FILE, REGISTRY, SCHEMA_VERSION_KEY, SECURITY_PROTOCOL_NAME, SERVICE_CONFIGURATION_NAME
Constructor and Description |
---|
PutPolicyAction() |
Modifier and Type | Method and Description |
---|---|
void |
execute(LibrarySession session)
Executes iFS methods.
|
void |
failed(Throwable error)
Invoked if this Action has failed.
|
void |
stop()
Stops this Action.
|
perform, setDomain, setForSchemaUpgrade, setPassword, setRestartService, setSchemaPassword, setUser
getDescription, getName, getValue, isContinueOnError, isPostgres, putValue, setDefaultOptions, setDescription, setName, setOptions
public static final String POLICY_NAME
public static final String CLASSOBJECT_NAME
public void execute(LibrarySession session) throws IfsException, ActionFailedException
LibrarySessionAction
execute
in class LibrarySessionAction
session
- the connected LibrarySession (in admin mode if possible).IfsException
- if a database error occurs.ActionFailedException
- if any other error occurs.public void stop()
Action
perform
will return as soon as possible.
This method should do nothing if this Action has already been stopped.
This method will probably be invoked from within the Thread that created
the ActionQueue that this Action is being executed in, rather than from
within the Thread that is invoking the perform
method
(the ActionQueue's Action processing Thread).
Because of this, clients implementing this interface should
provide a way of canceling what is happening in the perform
method when this stop
method is invoked.
Note: this is especially important when the perform
method
executes a tight loop or creates new Threads.
public void failed(Throwable error)
Action
perform
method has executed.error
- the error that occurred.Copyright © 2023. All rights reserved.