public class DispatchingHandlerSpecification extends TieSystemObject
Modifier and Type | Field and Description |
---|---|
static String |
ACTIVEWORKERCOUNT_ATTRIBUTE
The name of the attribute that holds the number of
working handlers that are active.
|
static String |
CLASS_NAME
The name of the ClassObject representing this class.
|
static String |
DESCRIPTION_ATTRIBUTE
The name of the attribute that holds a textual description
of the DispatchingHandlerSpecification.
|
static String |
MAXWORKERCOUNT_ATTRIBUTE
The name of the attribute that holds the maximum number of
working handlers that can be active.
|
static String |
NAME_ATTRIBUTE
The name of the attribute that holds the name of this
DispatchingHandlerSpecification.
|
static String |
SETTINGS_ATTRIBUTE
The name of the Attribute representing
the settings used to perform dispatching.
|
static String |
WORKERS_ATTRIBUTE
The name of the attribute that holds the complete set
of Working handlers defined.
|
static String |
WORKERTEMPLATE_ATTRIBUTE
The name of the attribute that holds the AuditSpecification that
is used as the template for the working handlers.
|
ACTIVE_ATTRIBUTE, POLICYBUNDLE_ATTRIBUTE, POLICYLISTS_ATTRIBUTE, PROPERTYBUNDLE_ATTRIBUTE
DOMAIN_UNIQUENAME_DEFAULT_DELIMITER, m_ClassId, m_Id, m_Session
Modifier | Constructor and Description |
---|---|
protected |
DispatchingHandlerSpecification(LibrarySession session,
Long id,
Long classId,
S_LibraryObjectData data)
Constructs a DispatchingHandlerSpecification object.
|
Modifier and Type | Method and Description |
---|---|
void |
addSetting(String key,
AttributeValue value)
Adds a setting (SimpleProperty) for this object.
|
static DispatchingHandlerSpecification[] |
findAll(LibrarySession session)
Returns the set of defined DispatchingHandlerSpecifications.
|
static DispatchingHandlerSpecification |
findByName(LibrarySession session,
String name)
Returns the a DispatchingHandlerSpecification matching the
specified name.
|
int |
getActiveWorkerCount()
Gets the number of working handlers that are active.
|
AuditSpecification[] |
getActiveWorkers()
Gets the set of active Working handlers defined.
|
String |
getDescription()
Gets the description of this DispatchingHandlerSpecification.
|
static LibraryObjectLookupCache |
getLibraryObjectLookupCache(LibrarySession session)
Returns the LibraryObjectLookupCache used by find
DispatchingHandlerSpecification instances by name.
|
int |
getMaxWorkerCount()
Gets the maximum number of working handlers that can be active.
|
AttributeValue |
getSetting(String key)
Gets the setting on this object for the specified key.
|
SimpleProperty[] |
getSettings()
Gets the settings used to describe the instance.
|
AuditSpecification[] |
getWorkers()
Gets the complete set of Working handlers defined.
|
AuditSpecification |
getWorkerTemplate()
Returns the AuditSpecification that
is used as the template for the working handlers.
|
boolean |
hasNameAttribute()
Returns true if this object is an instance of a class
that has a NAME attribute, and false otherwise.
|
boolean |
isActiveWorkerRebalanceRequested()
See if there is a pending request for the dispatching handler
associated with this instance to perform a rebalancing operation
for its active workers.
|
boolean |
isInactiveWorkerRebalanceRequested()
See if there is a pending request for the dispatching handler
associated with this instance to perform a rebalancing operation
for its inactive workers.
|
protected void |
postCreate(LibraryObjectDefinition lodef)
Extensibility point to perform actions after the
creation of a SystemObject.
|
protected void |
preFree(LibraryObjectDefinition lodef)
Extensibility point to perform actions prior to the
permanent deletion ("free") of a object.
|
protected void |
preUpdate(LibraryObjectDefinition lodef)
Extensibility point to perform actions prior to the update of
a PublicObject.
|
void |
removeSetting(String key)
Removes a setting (SimpleProperty) for this object.
|
void |
setActiveWorkerRebalanceRequested(boolean val)
Set or clear a request for the dispatching handler associated with
this instance to perform a rebalancing operation
for its active workers.
|
void |
setInactiveWorkerRebalanceRequested(boolean val)
Set or clear a request for the dispatching handler associated with
this instance to perform a rebalancing operation
for its inactive workers.
|
addCategory, constructSystemObject, constructSystemObjectVector, free, freeCategories, getCategories, getCategories, getCategories, getCategories, getPolicyBundle, getPolicyLists, handleCreate, hasPropertyBundleAttribute, isActive, postUpdate, preCreate, putPolicy, removeAllPolicies, removePolicy, removePolicy, setActive, setPolicyBundle, setPolicyLists
added, addSimpleProperty, addSimpleProperty, applyProperties, auditCreated, auditUpdated, canPurge, checkIfPropertyBundleSupported, checkRequiredAttributeSet, clearCopyContext, clearFreeContext, clearUpdateContext, compareTo, constructIdArray, constructIdArray, constructLibraryObject, constructLibraryObjectVector, createDedicatedPropertyBundle, createInstance, deriveDomainUniqueName, dispose, equals, equals, free, freeAll, get, getAttribute, getAttributeByUpperCaseName, getAttributes, getAttributesByUpperCaseNames, getAuditDomainContext, getAuditEventFolderContext, getClassId, getClassname, getClassName, getClassObject, getCommonName, getCommonNameAndClass, getCopyContext, getCreateContext, getData, getDefinition, getDefinitionForSimplePropertyUpdates, getEffectivePolicyListElements, getEventualAttributeByUpperCaseName, getFreeContext, getId, getLabel, getName, getObjectReferenceAttribute, getOperationActionSpecificationContext, getPropertyBundle, getPropertyValue, getPublicObjectAttribute, getResourceString, getResourceString, getSchemaObjectAttribute, getSession, getSessionInterface, getSharedStateFactory, getSimpleObjectAttribute, getSimpleProperties, getSimpleProperty, getSimplePropertyValue, getStringIdentifier, getSystemObjectAttribute, getTraceLogger, getUpdateContext, handleAdminModeChange, handleEvent, handleFree, handleUpdate, hashCode, invalidateState, invokeOperation, invokeOperation, invokeServerMethod, isConnected, isCoreEventPostingEnabled, isInstanceOf, isPersistent, isTraced, isValidEventType, lockRows, lookupInstanceLabel, performPostCreateExtensions, performPostFreeExtensions, performPostUpdateExtensions, performPreCreateExtensions, performPreFreeExtensions, performPreUpdateExtensions, postEvent, postEvent, postFree, prePostAuditEvent, putProperty, putProperty, removeAllProperties, removeAllSimpleProperties, removeAllSimpleProperties, removed, removeProperty, removeSimpleProperty, removeSimpleProperty, renderAsRandomAccessContent, renderAsReader, renderAsStream, setAttribute, setAttribute, setAttributes, setAttributes, setCopyContext, setFreeContext, setId, setName, setPropertyBundle, setPropertyValue, setUpdateContext, toString, trace, trustHandleCreate, trustHandleCreateAsAdmin, trustHandleFree, trustHandleFreeAsAdmin, trustHandleUpdate, trustHandleUpdateAsAdmin, update, updateAndExposeDefinition, validatePropertyValues, vectorLibraryObjectElement, vectorToLibraryObjectArray, verifyAdministrationMode, verifyConnected, verifyPersistent, verifySystemUserAccess, verifyTargetObject
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAttributeByUpperCaseName, getClassId, getId, getSessionInterface
getTraceLogger, isTraced, trace
public static final String CLASS_NAME
public static final String NAME_ATTRIBUTE
public static final String DESCRIPTION_ATTRIBUTE
public static final String MAXWORKERCOUNT_ATTRIBUTE
public static final String ACTIVEWORKERCOUNT_ATTRIBUTE
public static final String WORKERTEMPLATE_ATTRIBUTE
public static final String WORKERS_ATTRIBUTE
public static final String SETTINGS_ATTRIBUTE
protected DispatchingHandlerSpecification(LibrarySession session, Long id, Long classId, S_LibraryObjectData data) throws IfsException
session
- current LibrarySessionid
- object idclassId
- class iddata
- data componentIfsException
- if the operation failspublic boolean hasNameAttribute() throws IfsException
LibraryObject
hasNameAttribute
in class LibraryObject
IfsException
- if operation fails.public String getDescription() throws IfsException
IfsException
- if operation failspublic int getMaxWorkerCount() throws IfsException
IfsException
- if the operation failspublic int getActiveWorkerCount() throws IfsException
IfsException
- if the operation failspublic AuditSpecification getWorkerTemplate() throws IfsException
IfsException
- if the operation fails.public AuditSpecification[] getWorkers() throws IfsException
IfsException
- if the operation failspublic AuditSpecification[] getActiveWorkers() throws IfsException
IfsException
- if the operation failspublic SimpleProperty[] getSettings() throws IfsException
IfsException
- if the operation failspublic AttributeValue getSetting(String key) throws IfsException
key
- the keyIfsException
- if the operation failspublic void addSetting(String key, AttributeValue value) throws IfsException
key
- the setting property's keyvalue
- the setting property's valueIfsException
- if the operation failspublic void removeSetting(String key) throws IfsException
key
- the setting property's keyIfsException
- if the operation failspublic boolean isActiveWorkerRebalanceRequested() throws IfsException
IfsException
- if the operation failspublic void setActiveWorkerRebalanceRequested(boolean val) throws IfsException
val
- true to make the request; false to clear itIfsException
- if the operation failspublic boolean isInactiveWorkerRebalanceRequested() throws IfsException
IfsException
- if the operation failspublic void setInactiveWorkerRebalanceRequested(boolean val) throws IfsException
val
- true to make the request; false to clear itIfsException
- if the operation failspublic static LibraryObjectLookupCache getLibraryObjectLookupCache(LibrarySession session) throws IfsException
session
- the session contextIfsException
- if the operation fails.public static DispatchingHandlerSpecification[] findAll(LibrarySession session) throws IfsException
The instances will be sorted by name.
session
- the session contextIfsException
- if the operation fails.public static DispatchingHandlerSpecification findByName(LibrarySession session, String name) throws IfsException
DispatchingHandlerSpecification names are case sensitive, so this operations requires an exact match with respect to case.
session
- the session contextname
- the DispatchingHandlerSpecification nameIfsException
- if the operation fails.protected void postCreate(LibraryObjectDefinition lodef) throws IfsException
SystemObject
This assumes that a transaction context has already been established.
postCreate
in class SystemObject
lodef
- object definition that was used to create the objectIfsException
- if operation failsprotected void preUpdate(LibraryObjectDefinition lodef) throws IfsException
SystemObject
Set an option that indicates that Categories are NOT to be created from within S_SystemObject.
preUpdate
in class SystemObject
lodef
- definition used to define how the target object
will be updatedIfsException
- if operation failsprotected void preFree(LibraryObjectDefinition lodef) throws IfsException
LibraryObject
This method is typically overridden by subclasses that
perform other operations prior to the target object
being freed in order to all delete or modify objects related
to the target object.
Subclasses are expected to invoke super.preFree
.
preFree
in class LibraryObject
lodef
- object definition used to hold options related to the free
operationIfsException
- if operation fails.Copyright © 2025. All rights reserved.