public class HandlerState extends TieRuntimeState
RuntimeState.Status
Modifier and Type | Field and Description |
---|---|
static String |
ASSIGNED_ATTRIBUTE
Name of the Assigned Attribute.
|
static String |
AUDITSPECIFICATION_ATTRIBUTE
Name of the AuditSpecification Attribute.
|
static String |
CLASS_NAME
The name of the ClassObject representing this class.
|
static String |
NODESTATE_ATTRIBUTE
Name of the NodeState Attribute
|
static String |
RUNTIMECLASSIFICATION_ATTRIBUTE
Name of the RuntimeClassification Attribute.
|
static String |
SERVERSTATE_ATTRIBUTE
Name of the ServerState Attribute for the EventhandlerAgent.
|
static String |
SERVICESTATE_ATTRIBUTE
Name of the ServiceState Attribute
|
CONFIGURATIONBUNDLE_ATTRIBUTE, CONFIGURATIONNAME_ATTRIBUTE, CONFIGURATIONOVERRIDEBUNDLE_ATTRIBUTE, CONTROLLERALERT_ATTRIBUTE, CONTROLLERREPLY_ATTRIBUTE, CONTROLLERREQUEST_ATTRIBUTE, CREATEDATE_ATTRIBUTE, DISPOSEDATE_ATTRIBUTE, MANAGINGNODESTATE_ATTRIBUTE, NAME_ATTRIBUTE, RUNTIMESTATEBUNDLE_ATTRIBUTE, STATEPROPERTYTABLE_ATTRIBUTE, STATUS_ATTRIBUTE, STATUSCODE_DISPOSED, STATUSCODE_FINALIZED, STATUSCODE_RUNNING, STATUSCODE_STARTING, STATUSCODE_STOPPED, STATUSCODE_STOPPING, STATUSCODE_SUSPENDED, STATUSCODE_UNKNOWN, STATUSDATE_ATTRIBUTE
ACTIVE_ATTRIBUTE, POLICYBUNDLE_ATTRIBUTE, POLICYLISTS_ATTRIBUTE, PROPERTYBUNDLE_ATTRIBUTE
DOMAIN_UNIQUENAME_DEFAULT_DELIMITER, m_ClassId, m_Id, m_Session
Modifier | Constructor and Description |
---|---|
protected |
HandlerState(LibrarySession session,
Long id,
Long classId,
S_LibraryObjectData data)
Constructs a HandlerState object.
|
Modifier and Type | Method and Description |
---|---|
static HandlerState |
create(AuditSpecification spec,
NodeState ns,
boolean assigned,
String classif)
Create a HandlerState based on the specified inputs.
|
HandlerState |
createCopy(NodeState ns)
Create a HandlerState based on the target object,
using the specified NodeState as the managing Node.
|
AuditSpecification |
getAuditSpecification()
Returns the AuditSpecification that was used to created this instance,
as indicated by the Controller.
|
Long |
getAuditSpecificationId()
Returns the AuditSpecification ID that was used to created this instance,
as indicated by the Controller.
|
protected String |
getConfigurationOverrideAuditEventKey()
Gets the Audit Event key to use for posting configuration overrides.
|
NodeState |
getNodeState()
Returns the NodeState for the node associated with the handler
that is reflected by this instance.
|
String |
getRuntimeClassification()
Returns the runtime classification fragment used by the Controller to
assign this instance.
|
ServerState |
getServerState()
Returns the ServerState for the server associated with the handler
that is reflected by this instance.
|
ServiceState |
getServiceState()
Returns the ServiceState for the service associated with the handler
that is reflected by this instance.
|
boolean |
isAssigned()
Gets indication as to whether this instance was assigned by the Controller.
|
protected boolean |
isValidEventType(AuditEvent event)
Checks to see if the event type in the process of being posted on the
target LibraryObject is consistent with the target.
|
void |
postDisposeHandlerRequest()
Posts a request to Dispose the Handler.
|
void |
setNodeState(NodeState ns)
Sets the NodeState that manages this instance.
|
addStateProperty, getAuditEvents, getConfigurationBundle, getConfigurationName, getConfigurationOverrideBundle, getConfigurationOverridePropertyValue, getConfigurationPropertyValue, getControllerAlert, getControllerReply, getControllerRequest, getCreateDate, getDisposeDate, getManagingNodeState, getRuntimeStateBundle, getRuntimeStatePropertyValue, getRuntimeStates, getStateProperty, getStatePropertyTable, getStatePropertyTableSnapshot, getStatus, getStatusCode, getStatusDate, getStatusName, hasNameAttribute, isControllerReplyActive, isControllerRequestActive, isDisposed, isFinalized, isRunning, isStopped, isStopping, postAuditEvent, postAuditEvent, postAuditEvent, postAuditEvent, postAuditEvent, postConfigurationOverrideRequest, preFree, putConfigurationOverrideProperty, putConfigurationProperty, putRuntimeStateProperty, removeAllConfigurationOverrideProperties, removeAllConfigurationProperties, removeAllRuntimeStateProperties, removeAllStateProperties, removeConfigurationOverrideProperty, removeConfigurationProperty, removeRuntimeStateProperty, removeStateProperty, setConfigurationBundle, setConfigurationOverrideBundle, setStatus, setStatusCode, setStatusDisposed, setStatusFinalized, setStatusRunning, setStatusStarting, setStatusStopped, setStatusStopping, setStatusSuspended, updateControllerReplyForAcknowledge, updateControllerReplyForNonAcknowledge, updateForSimpleControllerAlert, updateForSimpleControllerAlert, updateForSimpleControllerJob, updateForSimpleControllerReply, updateForSimpleControllerRequest, updateForSimpleControllerRequest
addCategory, constructSystemObject, constructSystemObjectVector, free, freeCategories, getCategories, getCategories, getCategories, getCategories, getPolicyBundle, getPolicyLists, handleCreate, hasPropertyBundleAttribute, isActive, postCreate, postUpdate, preCreate, preUpdate, 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, 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 SERVICESTATE_ATTRIBUTE
public static final String NODESTATE_ATTRIBUTE
public static final String SERVERSTATE_ATTRIBUTE
public static final String AUDITSPECIFICATION_ATTRIBUTE
public static final String ASSIGNED_ATTRIBUTE
public static final String RUNTIMECLASSIFICATION_ATTRIBUTE
protected HandlerState(LibrarySession session, Long id, Long classId, S_LibraryObjectData data) throws IfsException
session
- current LibrarySessionid
- object idclassId
- class iddata
- data componentIfsException
- if the operation failspublic static HandlerState create(AuditSpecification spec, NodeState ns, boolean assigned, String classif) throws IfsException
spec
- the AuditSpecificationns
- the Node to assignassigned
- whether the HandlerState was assigned by the Controllerclassif
- the RuntimeClassification value used to assignIfsException
- if the operation failspublic HandlerState createCopy(NodeState ns) throws IfsException
ns
- the Node to manage the instanceIfsException
- if the operation failspublic ServiceState getServiceState() throws IfsException
IfsException
- if operation failspublic NodeState getNodeState() throws IfsException
getNodeState
in class RuntimeState
IfsException
- if operation failspublic ServerState getServerState() throws IfsException
IfsException
- if operation failspublic AuditSpecification getAuditSpecification() throws IfsException
IfsException
- if operation failspublic Long getAuditSpecificationId() throws IfsException
Useful variant to get the AuditSpecification ID even if the AuditSpecification object has been freed.
IfsException
- if operation failspublic boolean isAssigned() throws IfsException
isAssigned
in class RuntimeState
IfsException
- if operation failspublic String getRuntimeClassification() throws IfsException
getRuntimeClassification
in class RuntimeState
IfsException
- if the operation fails.public void setNodeState(NodeState ns) throws IfsException
This is issued by the Node that takes over management of this Handler.
ns
- the managing NodeStateIfsException
- if operation failspublic void postDisposeHandlerRequest() throws IfsException
IfsException
- if the operation failsprotected String getConfigurationOverrideAuditEventKey() throws IfsException
getConfigurationOverrideAuditEventKey
in class RuntimeState
IfsException
- if the operation failsprotected boolean isValidEventType(AuditEvent event) throws IfsException
isValidEventType
in class LibraryObject
event
- the event being posted on this objectIfsException
- if the operation failsCopyright © 2023. All rights reserved.