public class FreeClassObjectAction extends LibrarySessionUpgradeAction
Instead of using this class, new upgrade actions should use FreeClassObjectAction
, which
is more data driven (often eliminating the need for a subclass) and
supports online upgrade.
Modifier and Type | Field and Description |
---|---|
static int |
SELECTOR_MAXITEM_COUNT |
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 |
---|
FreeClassObjectAction() |
Modifier and Type | Method and Description |
---|---|
protected void |
clearClassNames(LibrarySession sess,
ClassObject co)
Clear the attributes BeanClassPath, ServerClassPath, and
SelectorClassPath for the specified ClassObject.
|
void |
execute(LibrarySession sess)
Frees the ClassObject with the name specified by the
ClassObject property. |
protected void |
freeAllInstancesOfClass(LibrarySession sess,
String className)
Frees all instances of a class.
|
protected void |
freeAttributeBundles(LibrarySession sess,
Attribute attr)
Free the bundles associated with the attribute
|
protected void |
freeBundles(LibrarySession sess,
ClassObject co)
Free the bundles associated with the class and its
Attributes.
|
protected void |
freeClassObjectIfNecessary(LibrarySession sess,
String className)
Do the real work of freeing the ClassObject, after checking to see
if the classobject exists already first.
|
failed, getTimestamp, log, log, printStackTrace, stop
perform, setDomain, setForSchemaUpgrade, setPassword, setRestartService, setSchemaPassword, setUser
getDescription, getName, getValue, isContinueOnError, isPostgres, putValue, setDefaultOptions, setDescription, setName, setOptions
public static final int SELECTOR_MAXITEM_COUNT
public void execute(LibrarySession sess) throws IfsException, ActionFailedException
ClassObject
property.
If the FreeInstances
property is true or omitted, all
instances of that ClassObject are first freed; if false, the action
will fail if any instances of the ClassObject exist.
execute
in class LibrarySessionAction
sess
- the connected LibrarySession (in admin mode if possible).IfsException
- if a database error occurs.ActionFailedException
- if any other error occurs.protected void freeClassObjectIfNecessary(LibrarySession sess, String className) throws IfsException, ActionFailedException
IfsException
ActionFailedException
protected void clearClassNames(LibrarySession sess, ClassObject co) throws IfsException
IfsException
protected void freeAllInstancesOfClass(LibrarySession sess, String className) throws IfsException
IfsException
protected void freeBundles(LibrarySession sess, ClassObject co) throws IfsException
IfsException
protected void freeAttributeBundles(LibrarySession sess, Attribute attr) throws IfsException
IfsException
Copyright © 2023. All rights reserved.